Skip to content

Commit 80e86d7

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 80e86d7

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

android-activity/Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ 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+
"/game-activity-csrc",
15+
"/LICENSE*",
16+
"/src",
17+
]
1218

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

android-activity/LICENSE

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
The third-party glue code, under the game-activity-csrc/ directory is covered by
66
the Apache 2.0 license only:
77

8-
Apache License, Version 2.0 (docs/LICENSE-APACHE or <http://www.apache.org/licenses/LICENSE-2.0>)
8+
Apache License, Version 2.0 (LICENSE-APACHE or <http://www.apache.org/licenses/LICENSE-2.0>)
99

1010
## SDK Documentation
1111

1212
Documentation for APIs that are direct bindings of Android platform APIs are covered
1313
by the Apache 2.0 license only:
1414

15-
Apache License, Version 2.0 (docs/LICENSE-APACHE or <http://www.apache.org/licenses/LICENSE-2.0>)
15+
Apache License, Version 2.0 (LICENSE-APACHE or <http://www.apache.org/licenses/LICENSE-2.0>)
1616

1717
## android-activity
1818

1919
All other code is dual-licensed under either
2020

21-
- MIT License (docs/LICENSE-MIT or <http://opensource.org/licenses/MIT>)
22-
- Apache License, Version 2.0 (docs/LICENSE-APACHE or <http://www.apache.org/licenses/LICENSE-2.0>)
21+
- MIT License (LICENSE-MIT or <http://opensource.org/licenses/MIT>)
22+
- Apache License, Version 2.0 (LICENSE-APACHE or <http://www.apache.org/licenses/LICENSE-2.0>)
2323

2424
at your option.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)