From af0288ed83689eeb891efd5a2a87cbb5488a326f Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Tue, 16 Dec 2025 11:40:14 +0100 Subject: [PATCH] Exclude development scripts from published package During a dependency review we noticed that the netcdf-src crate includes various development scripts. These development scripts shouldn't be there as they might, at some point become problematic. As of now they prevent any downstream user from enabling the `[bans.build.interpreted]` option of cargo deny. I opted for using an explicit include list instead of an exclude list to prevent these files from beeing included in the published packages to make sure that everything that's included is an conscious choice. --- netcdf-src/Cargo.toml | 55 ++++++++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/netcdf-src/Cargo.toml b/netcdf-src/Cargo.toml index 351fc0c..479a5d8 100644 --- a/netcdf-src/Cargo.toml +++ b/netcdf-src/Cargo.toml @@ -11,28 +11,39 @@ links = "netcdfsrc" categories = ["filesystem"] keywords = ["netcdf"] readme = "README.md" -exclude = [ - "source/docs/doxygen-awesome-css/**", - "source/docs/images/**", - "source/docs/old/**", - "source/NUG/**", - "source/dap4_test/**", - "source/examples/**", - "source/nc_test/**", - # "source/unit_test/**", https://github.com/Unidata/netcdf-c/pull/3133 - # "source/nc_test4/**", https://github.com/Unidata/netcdf-c/pull/3133 - "source/nc_test4/**.nc", - "source/h5_test/**", - "source/nc_perf/**", - "source/nczarr_test/**", - "source/hdf5_test/**", - "source/ncdump/**", - "source/hdf4_test/**", - "source/ncgen/**", - "source/ncgen3/**", - "source/nctest/**", - "source/ncdap_test/**", - "source/nc_perf/**", +include = [ + "README.md", + "Cargo.toml", + "src/**/*.rs", + "build.rs", + "source/**/CMakeLists.txt", + "source/**/*.cmake", + "source/**/*.c", + "source/**/*.h", + "source/**/*.in", + "source/libsrc/*.m4", + "source/docs/netcdf.m4", + "!source/docs/doxygen-awesome-css/**", + "!source/docs/images/**", + "!source/docs/old/**", + "!source/NUG/**", + "!source/dap4_test/**", + "!source/examples/**", + "!source/nc_test/**", + # "!source/unit_test/**", https://github.com/Unidata/netcdf-c/pull/3133 + # "!source/nc_test4/**", https://github.com/Unidata/netcdf-c/pull/3133 + "!source/nc_test4/**.nc", + "!source/h5_test/**", + "!source/nc_perf/**", + "!source/nczarr_test/**", + "!source/hdf5_test/**", + "!source/ncdump/**", + "!source/hdf4_test/**", + "!source/ncgen/**", + "!source/ncgen3/**", + "!source/nctest/**", + "!source/ncdap_test/**", + "!source/nc_perf/**", ] rust-version = "1.77.0"