rust/config_proc_macro
Yacin Tmimi a21f1b6c2a Conditionally compile tests based on CFG_RELEASE_CHANNEL env var
Adds the ``nightly_only_test`` and ``stable_only_test`` attribute macros
that prevent or allow certain tests to compile on nightly and stable
respectively. This is achieved through conditionally outputting the
tests TokenStream.

If CFG_RELEASE_CHANNEL is not set, it's assumed that we're running in a
nightly environment.

To mark a test as nightly only:

    #[nightly_only_test]
    #[test]
    fn only_run_on_nightly() {
        ...
    }

To mark a test a stable only:

    #[stable_only_test]
    #[test]
    fn only_run_on_stable() {
        ...
    }
2021-11-27 17:36:18 -06:00
..
src Conditionally compile tests based on CFG_RELEASE_CHANNEL env var 2021-11-27 17:36:18 -06:00
tests Update rustfmt-config_proc_macro to 0.1.2 2019-06-30 13:10:16 +09:00
.gitignore Add config_proc_macro 2019-04-27 18:55:13 +09:00
Cargo.lock Update deps (#3788) 2019-09-08 23:33:21 +09:00
Cargo.toml rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00