diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3033336..48e8c6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,9 +55,21 @@ jobs: test: name: Run tests runs-on: ubuntu-latest + strategy: + matrix: + # Ensure both MSRV and stable work + rust-version: + - "1.71.0" + - stable steps: - uses: actions/checkout@v4 - uses: Swatinem/rust-cache@v2 + - name: Delete rust-toolchain.toml + run: rm rust-toolchain.toml + - name: Install toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust-version }} - name: Run unit tests run: cargo test --all-features -- --nocapture - name: Run examples diff --git a/README.md b/README.md index e261112..3164982 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,14 @@ [![Crates.io][crates-badge]][crates-url] [![Documentation][docs-badge]][docs-url] +[![MSRV 1.71][msrv-badge]](https://www.whatrustisit.com) [![Apache 2.0 licensed][license-badge]][license-url] [![Build Status][actions-badge]][actions-url] [crates-badge]: https://img.shields.io/crates/v/logforth.svg [crates-url]: https://crates.io/crates/logforth [docs-badge]: https://docs.rs/logforth/badge.svg +[msrv-badge]: https://img.shields.io/badge/MSRV-1.71-green?logo=rust [docs-url]: https://docs.rs/logforth [license-badge]: https://img.shields.io/crates/l/logforth [license-url]: LICENSE diff --git a/src/append/mod.rs b/src/append/mod.rs index cae7de4..3514b99 100644 --- a/src/append/mod.rs +++ b/src/append/mod.rs @@ -17,13 +17,13 @@ use std::fmt; #[cfg(feature = "fastrace")] -pub use fastrace::FastraceEvent; +pub use self::fastrace::FastraceEvent; #[cfg(feature = "opentelemetry")] -pub use opentelemetry::OpentelemetryLog; +pub use self::opentelemetry::OpentelemetryLog; #[cfg(feature = "rolling_file")] -pub use rolling_file::RollingFile; -pub use stdio::Stderr; -pub use stdio::Stdout; +pub use self::rolling_file::RollingFile; +pub use self::stdio::Stderr; +pub use self::stdio::Stdout; use crate::layout::IdenticalLayout; use crate::layout::Layout;