diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 87a5ff52f4..ac50c9855f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -217,6 +217,9 @@ jobs: features-stable: # Feature flag tests that run on stable Rust. + # TODO(david): once tracing's MSRV goes up to Rust 1.51, we should be able to switch to + # using cargo's V2 feature resolver (https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions) + # and avoid cd'ing into each crate's directory. needs: check runs-on: ubuntu-latest steps: @@ -234,6 +237,10 @@ jobs: run: (cd tracing-core && cargo test --no-default-features) - name: "Test tracing no-std support" run: (cd tracing && cargo test --no-default-features) + # this skips running doctests under the `--no-default-features` flag, + # as rustdoc isn't aware of cargo's feature flags. + - name: "Test tracing-subscriber with all features disabled" + run: (cd tracing-subscriber && cargo test --lib --tests --no-default-features) style: # Check style.