diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 307a9af..fb434f9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -34,3 +34,25 @@ jobs: - name: Run tests run: ./ci/script.sh + verify_package: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + [ + ubuntu-latest, + windows-latest, + macos-15, + macos-15-intel, + ubuntu-24.04-arm, + windows-11-arm, + ] + steps: + - uses: actions/checkout@v4 + + - name: Install Rust + run: | + rustup toolchain install stable + rustup default stable + - name: Verify that the package includes all necessary files + run: cargo +stable package --all-features diff --git a/Cargo.toml b/Cargo.toml index 40a3549..ed6fe42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,17 @@ name = "libfuzzer-sys" readme = "./README.md" repository = "https://github.com/rust-fuzz/libfuzzer" version = "0.4.10" +exclude = [ + ".github", + "ci", + "libfuzzer/CMakeLists.txt", # no cmake used + "libfuzzer/build.sh", # we use the cc crate for building + "libfuzzer/scripts/unbalanced_allocs.py", + "libfuzzer/standalone/StandaloneFuzzTargetMain.c", # that's the main function, we don't want it + "libfuzzer/tests/CMakeLists.txt", + "rust-toolchain", # downstream crates will ignore it anyway + "update-libfuzzer.sh", # there is no need for downstream crates to execute this script +] [dependencies] arbitrary = "1"