diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0d69191..cd8db8c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,9 +44,9 @@ jobs: features: - # default - --no-default-features - - --features track-caller - - --features pyo3 - - --features auto-install + - --features unstable track-caller + - --features unstable pyo3 + - --features unstable auto-install - --all-features steps: - uses: actions/checkout@v1 diff --git a/color-spantrace/Cargo.toml b/color-spantrace/Cargo.toml index e1510d85..9d89d8c8 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 61fc9231..e7ace85a 100644 --- a/color-spantrace/src/lib.rs +++ b/color-spantrace/src/lib.rs @@ -61,11 +61,10 @@ //! [`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) )] -#![cfg_attr(stable, warn(private_in_public))] #![warn( missing_debug_implementations, missing_docs, diff --git a/eyre/Cargo.toml b/eyre/Cargo.toml index 982d9b29..717eecc0 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 bce3b23a..0cf7df1f 100644 --- a/eyre/src/lib.rs +++ b/eyre/src/lib.rs @@ -316,11 +316,10 @@ //! [`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) )] -#![cfg_attr(stable, warn(private_in_public))] #![warn( missing_debug_implementations, missing_docs, diff --git a/eyre/tests/compiletest.rs b/eyre/tests/compiletest.rs index 7974a624..303e8d62 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() {