You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.
^ This expands to #[ignore] if there is no cargo-expand on the PATH. Ignored tests are logged by the test runner and is friendlier than considering the test failed or silently passing it.
More...
Potentially other ideas.
The text was updated successfully, but these errors were encountered:
I really wanted to implement checks for dependencies as well (installed, exact version, version since, version before, source from registry/git/path), but I don't think it's possible for Realia's proc macros to discover the dependencies of a crate using Realia. If I check the crate metadata in Realia's build.rs, then it only sees Realia's dependencies, and if I check the crate metadata in the parent crate's build.rs, then there's no way to reference it in the proc macro because of hygiene.
Similar idea to what https://github.com/dtolnay/rustversion does for compiler version selection, but for lots of other things people want to be conditional on.
Environment variables
Conditional compilation based on whether an environment variable is defined at build time.
For example you could use this to disable or enable specific code when building in CI:
https://docs.travis-ci.com/user/environment-variables/#default-environment-variables
PATH
Conditional compilation based on whether some binary is available on the system's PATH.
For example you could conditionally ignore a test case that requires some specific binary.
^ This expands to #[ignore] if there is no cargo-expand on the PATH. Ignored tests are logged by the test runner and is friendlier than considering the test failed or silently passing it.
More...
Potentially other ideas.
The text was updated successfully, but these errors were encountered: