Skip to content

Commit 0a2b818

Browse files
committed
Add package.include to Cargo.toml
This reduces package size and notably prevents any bash files from landing on a users device.
1 parent 0d29930 commit 0a2b818

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

android-activity/Cargo.toml

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ repository = "https://github.com/rust-mobile/android-activity"
99
documentation = "https://docs.rs/android-activity"
1010
description = "Glue for building Rust applications on Android with NativeActivity or GameActivity"
1111
license = "MIT OR Apache-2.0"
12+
include = [
13+
"/build.rs",
14+
"/docs",
15+
"/game-activity-csrc",
16+
"/LICENSE",
17+
"/src/**/*.rs",
18+
]
1219

1320
# 1.69 was when Rust last updated the Android NDK version used to build the
1421
# standard library which avoids needing the -lunwind workaround in build tools.

0 commit comments

Comments
 (0)