Skip to content

Commit

Permalink
cargo-apk: Upgrade to cargo-subcommand 0.7.0 for [env] support (#249
Browse files Browse the repository at this point in the history
)

Environment variables can be set and override the process environment
through `.cargo/config.toml`'s `[env]` section:
https://doc.rust-lang.org/cargo/reference/config.html#env

These config variables have specific precedence rules with regards to
overriding the environment set in the process, and can optionally
represent paths relative to the parent of the containing `.cargo/`
folder.  The entire handling of these variables is implemented in
rust-mobile/cargo-subcommand#12 and
rust-mobile/cargo-subcommand#16 which immediately
populate the process environment with these variables when
`Subcommand::new()` is called by `cargo-apk`.
  • Loading branch information
MarijnS95 authored Mar 25, 2022
1 parent 8133095 commit 6e0189a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cargo-apk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Add `MAIN` intent filter in `from_subcommand` instead of relying on a custom serialization function in `ndk-build`. ([#241](https://github.com/rust-windowing/android-ndk-rs/pull/241))
- Export the sole `NativeActivity` (through `android:exported="true"`) to allow it to be started by default if targeting Android S or higher. ([#242](https://github.com/rust-windowing/android-ndk-rs/pull/242))
- `cargo-apk` version can now be queried through `cargo apk version`
- Environment variables from `.cargo/config.toml`'s `[env]` section are now propagated to the process environment. ([#249](https://github.com/rust-windowing/android-ndk-rs/pull/249))

# 0.8.2 (2021-11-22)

Expand Down
2 changes: 1 addition & 1 deletion cargo-apk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repository = "https://github.com/rust-windowing/android-ndk-rs"

[dependencies]
anyhow = "1.0.38"
cargo-subcommand = "0.5.0"
cargo-subcommand = "0.7.0"
dunce = "1.0.1"
env_logger = "0.8.2"
log = "0.4.14"
Expand Down

0 comments on commit 6e0189a

Please # to comment.