diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1a60cba9..ba92123d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -141,7 +141,7 @@ jobs: - name: Rust (default features) run: cargo test - name: Rust (all features) - run: cargo test --all-features + run: cargo test -F v1_0_4 clang-format: runs-on: ubuntu-24.04 steps: diff --git a/rust/composefs-sys/Cargo.toml b/rust/composefs-sys/Cargo.toml index bda05ecf..82c7653b 100644 --- a/rust/composefs-sys/Cargo.toml +++ b/rust/composefs-sys/Cargo.toml @@ -9,11 +9,15 @@ build = "build.rs" license = "MIT OR Apache-2.0" readme = "README.md" +[package.metadata.docs.rs] +features = ["dox"] + [package.metadata.system-deps.composefs] name = "composefs" version = "1" [features] +dox = [] # Depend on 1.0.4 APIs v1_0_4 = [] diff --git a/rust/composefs-sys/build.rs b/rust/composefs-sys/build.rs index d66b1a5a..54331fb7 100644 --- a/rust/composefs-sys/build.rs +++ b/rust/composefs-sys/build.rs @@ -1,4 +1,5 @@ fn main() { + #[cfg(not(feature = "dox"))] if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); std::process::exit(1); diff --git a/rust/composefs/Cargo.toml b/rust/composefs/Cargo.toml index fdf3fbf5..64c1fba9 100644 --- a/rust/composefs/Cargo.toml +++ b/rust/composefs/Cargo.toml @@ -14,6 +14,7 @@ name = "composefs" path = "src/lib.rs" [features] +dox = ["composefs-sys/dox"] # Depend on 1.0.4 APIs v1_0_4 = ["composefs-sys/v1_0_4"]