Skip to content

Commit

Permalink
ci: ensure msrv work (#38)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun authored Aug 11, 2024
1 parent 34d579d commit edacb10
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions src/append/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit edacb10

Please sign in to comment.