diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0d6919..7b8011a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --all ${{ matrix.features }} + args: --all --unstable ${{ matrix.features }} test-msrv: name: Test Suite @@ -79,7 +79,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: test - args: --all ${{ matrix.features }} + args: --all --unstable ${{ matrix.features }} test-os: name: Test Suite diff --git a/color-spantrace/Cargo.toml b/color-spantrace/Cargo.toml index e1510d8..9d89d8c 100644 --- a/color-spantrace/Cargo.toml +++ b/color-spantrace/Cargo.toml @@ -11,6 +11,12 @@ repository = { workspace = true } readme = { workspace = true } rust-version = { workspace = true } +[features] +default = ["auto-install", "track-caller"] +auto-install = [] +track-caller = [] +unstable = [] + [dependencies] tracing-error = "0.2.0" tracing-core = "0.1.21" diff --git a/color-spantrace/src/lib.rs b/color-spantrace/src/lib.rs index 61fc923..6d84d03 100644 --- a/color-spantrace/src/lib.rs +++ b/color-spantrace/src/lib.rs @@ -61,7 +61,7 @@ //! [`color-backtrace`]: https://github.com/athre0z/color-backtrace #![doc(html_root_url = "https://docs.rs/color-spantrace/0.2.0")] #![cfg_attr( - nightly, + all(nightly, feature = "unstable"), feature(rustdoc_missing_doc_code_examples), warn(rustdoc::missing_doc_code_examples) )] diff --git a/eyre/Cargo.toml b/eyre/Cargo.toml index 982d9b2..717eecc 100644 --- a/eyre/Cargo.toml +++ b/eyre/Cargo.toml @@ -16,6 +16,7 @@ rust-version = { workspace = true } default = ["auto-install", "track-caller"] auto-install = [] track-caller = [] +unstable = [] [dependencies] indenter = { workspace = true } diff --git a/eyre/src/lib.rs b/eyre/src/lib.rs index bce3b23..87a9ca8 100644 --- a/eyre/src/lib.rs +++ b/eyre/src/lib.rs @@ -316,7 +316,7 @@ //! [`color-backtrace`]: https://github.com/athre0z/color-backtrace #![doc(html_root_url = "https://docs.rs/eyre/0.6.8")] #![cfg_attr( - nightly, + all(nightly, feature = "unstable"), feature(rustdoc_missing_doc_code_examples), warn(rustdoc::missing_doc_code_examples) )] diff --git a/eyre/tests/compiletest.rs b/eyre/tests/compiletest.rs index 7974a62..303e8d6 100644 --- a/eyre/tests/compiletest.rs +++ b/eyre/tests/compiletest.rs @@ -1,4 +1,4 @@ -#[rustversion::attr(not(nightly), ignore)] +#[cfg_attr(any(not(nightly), not(feature = "unstable")), ignore)] #[cfg_attr(miri, ignore)] #[test] fn ui() {