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 3, 2024
1 parent 0d29930 commit 0a2b818
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android-activity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ 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",
"/docs",
"/game-activity-csrc",
"/LICENSE",
"/src/**/*.rs",
]

# 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

0 comments on commit 0a2b818

Please sign in to comment.