From 1e583161c50f902574a22ed203cb77de1edc7920 Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Tue, 16 Dec 2025 11:44:28 +0100 Subject: [PATCH] Exclude development scripts from published package During a dependency review we noticed that the ndk-sys 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 being included in the published packages to make sure that everything that's included is an conscious choice. --- ndk-sys/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/ndk-sys/Cargo.toml b/ndk-sys/Cargo.toml index a17bae36..42043727 100644 --- a/ndk-sys/Cargo.toml +++ b/ndk-sys/Cargo.toml @@ -12,6 +12,7 @@ homepage = "https://github.com/rust-mobile/ndk" repository = "https://github.com/rust-mobile/ndk" rust-version = "1.60" categories = ["os", "os::android-apis", "external-ffi-bindings"] +include = ["Cargo.toml", "CHANGELOG.md", "src/**/*.rs", "../README.md"] [dependencies] jni-sys = "0.3.0"