-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1314,6 +1314,7 @@ fn crate_env_vars() { | |
authors = ["[email protected]"] | ||
license = "MIT OR Apache-2.0" | ||
license-file = "license.txt" | ||
rust-version = "1.61.0" | ||
[[bin]] | ||
name = "foo-bar" | ||
|
@@ -1338,6 +1339,7 @@ fn crate_env_vars() { | |
static LICENSE: &'static str = env!("CARGO_PKG_LICENSE"); | ||
static LICENSE_FILE: &'static str = env!("CARGO_PKG_LICENSE_FILE"); | ||
static DESCRIPTION: &'static str = env!("CARGO_PKG_DESCRIPTION"); | ||
static RUST_VERSION: &'static str = env!("CARGO_PKG_RUST_VERSION"); | ||
static BIN_NAME: &'static str = env!("CARGO_BIN_NAME"); | ||
static CRATE_NAME: &'static str = env!("CARGO_CRATE_NAME"); | ||
|
@@ -1356,6 +1358,7 @@ fn crate_env_vars() { | |
assert_eq!("MIT OR Apache-2.0", LICENSE); | ||
assert_eq!("license.txt", LICENSE_FILE); | ||
assert_eq!("This is foo", DESCRIPTION); | ||
assert_eq!("1.61.0", RUST_VERSION); | ||
let s = format!("{}.{}.{}-{}", VERSION_MAJOR, | ||
VERSION_MINOR, VERSION_PATCH, VERSION_PRE); | ||
assert_eq!(s, VERSION); | ||
|