Skip to content

Commit 72a4b1b

Browse files
authored
Merge pull request #137 from GiGainfosystems/exclude_scripts
Exclude development scripts from published package
2 parents 217dc97 + c84395b commit 72a4b1b

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,25 @@ jobs:
3434

3535
- name: Run tests
3636
run: ./ci/script.sh
37+
verify_package:
38+
runs-on: ${{ matrix.os }}
39+
strategy:
40+
matrix:
41+
os:
42+
[
43+
ubuntu-latest,
44+
windows-latest,
45+
macos-15,
46+
macos-15-intel,
47+
ubuntu-24.04-arm,
48+
windows-11-arm,
49+
]
50+
steps:
51+
- uses: actions/checkout@v4
52+
53+
- name: Install Rust
54+
run: |
55+
rustup toolchain install stable
56+
rustup default stable
57+
- name: Verify that the package includes all necessary files
58+
run: cargo +stable package --all-features

Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ name = "libfuzzer-sys"
77
readme = "./README.md"
88
repository = "https://github.com/rust-fuzz/libfuzzer"
99
version = "0.4.10"
10+
exclude = [
11+
".github",
12+
"ci",
13+
"libfuzzer/CMakeLists.txt", # no cmake used
14+
"libfuzzer/build.sh", # we use the cc crate for building
15+
"libfuzzer/scripts/unbalanced_allocs.py",
16+
"libfuzzer/standalone/StandaloneFuzzTargetMain.c", # that's the main function, we don't want it
17+
"libfuzzer/tests/CMakeLists.txt",
18+
"rust-toolchain", # downstream crates will ignore it anyway
19+
"update-libfuzzer.sh", # there is no need for downstream crates to execute this script
20+
]
1021

1122
[dependencies]
1223
arbitrary = "1"

0 commit comments

Comments
 (0)