Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: ensure msrv work #38

Merged
merged 2 commits into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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