Skip to content

Commit

Permalink
cargo-apk: Upgrade to cargo-subcommand 0.7.0 for [env] support
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 committed Mar 22, 2022
1 parent 65a5ef6 commit 3e0a850
Showing 1 changed file with 1 addition and 1 deletion.
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 3e0a850

Please sign in to comment.