Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support cargo:rustc-env #2

Closed
kennytm opened this issue Jun 7, 2017 · 1 comment
Closed

Support cargo:rustc-env #2

kennytm opened this issue Jun 7, 2017 · 1 comment

Comments

@kennytm
Copy link

kennytm commented Jun 7, 2017

Starting from Rust 1.19 (cargo 0.20.0) (next beta), one may use

println!("cargo:rustc-env=ENVVAR=value");

in the build.rs to define a variable for rustc, allowing code to use

env!("ENVVAR")

vergen could be extended to support this, so user could read the variables without including OUT_DIR.

@CraZySacX
Copy link
Member

Version 2.0.0 now supports passing of build information for use with the env! macro. Closing.

CraZySacX pushed a commit that referenced this issue Feb 9, 2021
CraZySacX pushed a commit that referenced this issue Feb 9, 2021
CraZySacX added a commit that referenced this issue Feb 9, 2021
* Attempt #2 to fix code coverage with kcov

* Fixed scripts issue

* testing

* typo in travis.yml

* using tarpaulin

* fixed up scripts a bit

* removed unused script

* some code coverage

* testing

* testing

* moar testing

* worktree testing

* worktree testing

* debugging worktree test in CI

* debugging worktree test in CI

* debugging worktree test in CI

* testing refactor

* more testing

* more test coverage

* last test for coverage

* better detached head test

* run against beta, nightly also

Co-authored-by: Jason Ozias <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants