Fixing cbindgen compilation

This commit is contained in:
Jan Horak 2018-10-19 16:12:34 +02:00
parent 5ae399b673
commit f2d7e6f5c2

View File

@ -462,7 +462,8 @@ chmod -x third_party/rust/itertools/src/lib.rs
%if 0%{?use_bundled_cbindgen}
cd third_party/rust
mkdir -p my_rust_vendor
cd my_rust_vendor
%{__tar} xf %{SOURCE2}
cd -
mkdir -p .cargo
@ -471,7 +472,7 @@ cat > .cargo/config <<EOL
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "`pwd`/third_party/rust"
directory = "`pwd`/my_rust_vendor"
EOL
env CARGO_HOME=.cargo cargo install cbindgen