Skip to content

Commit

Permalink
cargo-make now defines env vars based on project Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
sagiegurari committed Jul 6, 2017
1 parent 4b980ea commit 6960f05
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ rust:
env:
global:
- RUST_BACKTRACE=1
- RUST_TEST_THREADS=1
- RUSTFLAGS="-C link-dead-code"
- KCOV_VERSION=33
before_install:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-make"
version = "0.3.9"
version = "0.3.10"
authors = ["Sagie Gur-Ari <[email protected]>"]
description = "Rust task runner and build tool."
license = "Apache-2.0"
Expand Down
3 changes: 3 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

[env]
RUST_TEST_THREADS = "1"

[tasks.outdated]
#do not break build due to child outdated dependencies also used as root dependencies
force = true
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,12 @@ In addition, cargo-make will also add few environment variables that can be help
* **CARGO_MAKE** - Set to "true" to help sub processes identify they are running from cargo make.
* **CARGO_MAKE_TASK** - Holds the name of the main task being executed.
* **CARGO_MAKE_CRATE_NAME** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_VERSION** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_DESCRIPTION** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_LICENSE** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_DOCUMENTATION** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_HOMEPAGE** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_REPOSITORY** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_VERSION** - Holds the crate version from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_DESCRIPTION** - Holds the crate description from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_LICENSE** - Holds the crate license from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_DOCUMENTATION** - Holds the crate documentation link from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_HOMEPAGE** - Holds the crate homepage link from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_REPOSITORY** - Holds the crate repository link from the Cargo.toml file found in the cwd (only if file exists and value is defined).

<a name="usage-ci"></a>
### Continues Integration
Expand Down Expand Up @@ -646,7 +646,7 @@ See [contributing guide](.github/CONTRIBUTING.md)

| Date | Version | Description |
| ----------- | ------- | ----------- |
| 2017-07-06 | v0.3.9 | cargo-make now defines env vars based on project Cargo.toml |
| 2017-07-06 | v0.3.10 | cargo-make now defines env vars based on project Cargo.toml |
| 2017-07-05 | v0.3.6 | Added --cwd cli arg to enable setting working directory |
| 2017-07-04 | v0.3.5 | Added clippy task |
| 2017-07-03 | v0.3.4 | Added --print-steps cli arg |
Expand Down
14 changes: 7 additions & 7 deletions docs/_includes/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,12 @@ In addition, cargo-make will also add few environment variables that can be help
* **CARGO_MAKE** - Set to "true" to help sub processes identify they are running from cargo make.
* **CARGO_MAKE_TASK** - Holds the name of the main task being executed.
* **CARGO_MAKE_CRATE_NAME** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_VERSION** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_DESCRIPTION** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_LICENSE** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_DOCUMENTATION** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_HOMEPAGE** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_REPOSITORY** - Holds the crate name from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_VERSION** - Holds the crate version from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_DESCRIPTION** - Holds the crate description from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_LICENSE** - Holds the crate license from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_DOCUMENTATION** - Holds the crate documentation link from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_HOMEPAGE** - Holds the crate homepage link from the Cargo.toml file found in the cwd (only if file exists and value is defined).
* **CARGO_MAKE_CRATE_REPOSITORY** - Holds the crate repository link from the Cargo.toml file found in the cwd (only if file exists and value is defined).

<a name="usage-ci"></a>
### Continues Integration
Expand Down Expand Up @@ -619,7 +619,7 @@ See [contributing guide](https://github.com/sagiegurari/cargo-make/blob/master/.

| Date | Version | Description |
| ----------- | ------- | ----------- |
| 2017-07-06 | v0.3.9 | cargo-make now defines env vars based on project Cargo.toml |
| 2017-07-06 | v0.3.10 | cargo-make now defines env vars based on project Cargo.toml |
| 2017-07-05 | v0.3.6 | Added --cwd cli arg to enable setting working directory |
| 2017-07-04 | v0.3.5 | Added clippy task |
| 2017-07-03 | v0.3.4 | Added --print-steps cli arg |
Expand Down
1 change: 0 additions & 1 deletion src/default.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

[env]
RUST_BACKTRACE = "full"
RUST_TEST_THREADS = "1"

[tasks.default]
# Default task points to the development testing flow
Expand Down

0 comments on commit 6960f05

Please sign in to comment.