Skip to content

Commit

Permalink
Add package.include to Cargo.toml
Browse files Browse the repository at this point in the history
This reduces package size and notably prevents any bash files from landing on a users device.
  • Loading branch information
daxpedda committed Aug 5, 2024
1 parent 0d29930 commit 80e86d7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions android-activity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ repository = "https://github.com/rust-mobile/android-activity"
documentation = "https://docs.rs/android-activity"
description = "Glue for building Rust applications on Android with NativeActivity or GameActivity"
license = "MIT OR Apache-2.0"
include = [
"/build.rs",
"/game-activity-csrc",
"/LICENSE*",
"/src",
]

# 1.69 was when Rust last updated the Android NDK version used to build the
# standard library which avoids needing the -lunwind workaround in build tools.
Expand Down
8 changes: 4 additions & 4 deletions android-activity/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
The third-party glue code, under the game-activity-csrc/ directory is covered by
the Apache 2.0 license only:

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

## SDK Documentation

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

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

## android-activity

All other code is dual-licensed under either

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

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

0 comments on commit 80e86d7

Please sign in to comment.