From 80e86d71edf6c6375dcb4735742abbb78696f67c Mon Sep 17 00:00:00 2001 From: daxpedda Date: Mon, 5 Aug 2024 10:34:50 +0200 Subject: [PATCH] Add `package.include` to `Cargo.toml` This reduces package size and notably prevents any bash files from landing on a users device. --- android-activity/Cargo.toml | 6 ++++++ android-activity/LICENSE | 8 ++++---- android-activity/{docs => }/LICENSE-APACHE | 0 android-activity/{docs => }/LICENSE-MIT | 0 4 files changed, 10 insertions(+), 4 deletions(-) rename android-activity/{docs => }/LICENSE-APACHE (100%) rename android-activity/{docs => }/LICENSE-MIT (100%) diff --git a/android-activity/Cargo.toml b/android-activity/Cargo.toml index 59b0b54..5f7dffa 100644 --- a/android-activity/Cargo.toml +++ b/android-activity/Cargo.toml @@ -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. diff --git a/android-activity/LICENSE b/android-activity/LICENSE index 47bdfd8..dba60f7 100644 --- a/android-activity/LICENSE +++ b/android-activity/LICENSE @@ -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 ) +Apache License, Version 2.0 (LICENSE-APACHE or ) ## 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 ) +Apache License, Version 2.0 (LICENSE-APACHE or ) ## android-activity All other code is dual-licensed under either -- MIT License (docs/LICENSE-MIT or ) -- Apache License, Version 2.0 (docs/LICENSE-APACHE or ) +- MIT License (LICENSE-MIT or ) +- Apache License, Version 2.0 (LICENSE-APACHE or ) at your option. diff --git a/android-activity/docs/LICENSE-APACHE b/android-activity/LICENSE-APACHE similarity index 100% rename from android-activity/docs/LICENSE-APACHE rename to android-activity/LICENSE-APACHE diff --git a/android-activity/docs/LICENSE-MIT b/android-activity/LICENSE-MIT similarity index 100% rename from android-activity/docs/LICENSE-MIT rename to android-activity/LICENSE-MIT