thunderbird/gen_cbindgen-vendor.sh

33 lines
482 B
Bash
Raw Normal View History

2019-09-03 12:44:53 +00:00
#!/bin/bash
set -x
# Dummy Cargo.toml file with cbindgen dependency
cat > Cargo.toml <<EOL
[package]
name = "dummy"
version = "0.0.1"
description = """
This is a dummy package which contains dependency on cbindgen
to be used with 'cargo vendor' commmand.
"""
[dependencies]
2022-08-04 09:36:26 +00:00
cbindgen = "0.24.3"
2019-09-03 12:44:53 +00:00
[[bin]]
name = "dummy"
path = "dummy.rs"
doc = false
EOL
cargo install cargo-vendor
cargo vendor
cd vendor
tar -cJf ../cbindgen-vendor.tar.xz *
cd ..
rm -f Cargo.toml
rm -rf vendor