Debian Codegraph @

debian/patches/1001_fence_test.patch

raw
1 Description: feature-fence tests
2 Author: Jonas Smedegaard <[email protected]>
3 Last-Update: 2026-04-05
4 ---
5 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
6 --- a/crates/wasm-metadata/tests/component.rs
7 +++ b/crates/wasm-metadata/tests/component.rs
8 @@ -1,3 +1,5 @@
9 +#![cfg(feature = "oci")]
10 +
11 use std::{str::FromStr, vec};
12
13 use auditable_serde::VersionInfo;
14 --- a/crates/wasm-metadata/tests/module.rs
15 +++ b/crates/wasm-metadata/tests/module.rs
16 @@ -1,3 +1,5 @@
17 +#![cfg(feature = "oci")]
18 +
19 use std::{str::FromStr, vec};
20
21 use auditable_serde::VersionInfo;
22 --- a/crates/wasm-metadata/src/producers.rs
23 +++ b/crates/wasm-metadata/src/producers.rs
24 @@ -170,6 +170,7 @@
25 }
26
27 #[cfg(test)]
28 +#[cfg(feature = "oci")]
29 mod test {
30 use super::*;
31 use crate::{Metadata, Payload};
32 --- a/crates/wasm-wave/tests/ui.rs
33 +++ b/crates/wasm-wave/tests/ui.rs
34 @@ -1,3 +1,5 @@
35 +#![cfg(feature = "wit")]
36 +
37 use anyhow::{Context, Result};
38 use std::{collections::HashMap, fmt::Write, fs, path::Path, sync::OnceLock};
39
40 --- a/crates/wit-component/tests/linking.rs
41 +++ b/crates/wit-component/tests/linking.rs
42 @@ -249,6 +249,7 @@
43 "#;
44
45 #[test]
46 +#[cfg(feature = "wasmtime")]
47 fn linking_got_weak() -> Result<()> {
48 let component = [
49 ("libfoo.so", GOT_IMPORT, Some(GOT_IMPORT_WIT)),
50 --- a/crates/wit-encoder/tests/parse-to-encoder.rs
51 +++ b/crates/wit-encoder/tests/parse-to-encoder.rs
52 @@ -1,3 +1,5 @@
53 +#![cfg(feature = "from-parser")]
54 +
55 use pretty_assertions::assert_eq;
56 use wit_encoder::packages_from_parsed;
57
58 --- a/crates/wit-encoder/tests/deps.rs
59 +++ b/crates/wit-encoder/tests/deps.rs
60 @@ -1,3 +1,5 @@
61 +#![cfg(feature = "from-parser")]
62 +
63 use anyhow::Result;
64 use pretty_assertions::assert_eq;
65 use wit_encoder::{Package, packages_from_parsed};