Skip to content

Commit 2bb88d8

Browse files
committed
wasmtime: fix auditable builds
See rust-secure-code/cargo-auditable#124 for details, but TL;DR `dep:foo` in a features list generates a private feature named "foo". `cargo-auditable` can't distinguish between private and public features in its place as a wrapper, so believes it should pass "foo" as a feature to `rustc` when performing compilation; as "foo" is private, `rustc` rejects this, failing the build.
1 parent ff07c2e commit 2bb88d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wasmtime.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ pipeline:
3737
cargo update url --precise 2.5.4
3838
cargo update idna --precise 1.0.3
3939
40+
# Fix auditable builds: we're tripping over
41+
# https://github.com/rust-secure-code/cargo-auditable/issues/124 so need
42+
# to fix up the `dep:` features causing it
43+
find . -name Cargo.toml | xargs sed -i 's/dep:pulley-interpreter/pulley-interpreter/'
44+
4045
cargo auditable build --release -vv
4146
mkdir -p ${{targets.destdir}}/usr/bin/
4247
mv target/release/wasmtime ${{targets.destdir}}/usr/bin/

0 commit comments

Comments
 (0)