Skip to content
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
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
pull_request:

jobs:
# ──────────────────── MSRV ────────────────────
msrv:
name: MSRV
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4 # ← @v4 is the current tag

# Grab the value after `rust-version = "` (first match only)
- name: Extract MSRV from Cargo.toml
id: msrv
run: |
echo "rust=$(grep -m1 '^rust-version' Cargo.toml | cut -d '"' -f2)" >> "$GITHUB_OUTPUT"

- name: Install ${{ steps.msrv.outputs.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.msrv.outputs.rust }}
override: true
profile: minimal # a bit quicker; omit for full std docs

- run: cargo build --all-features --verbose
- run: cargo test --all-features --verbose

# ──────────────────── STABLE ────────────────────
stable:
name: Stable
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- run: cargo build --all-features --verbose
- run: cargo test --all-features --verbose
15 changes: 0 additions & 15 deletions .github/workflows/rust.yml

This file was deleted.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastlog"
version = "0.2.1"
version = "0.3.0"
authors = ["Wangshan Lu <wisagan@gmail.com>"]
license = "MIT/Apache-2.0"
readme = "README.md"
Expand All @@ -10,6 +10,7 @@ A high performance asynchronous logger
"""
keywords = ["async", "fastlog", "log"]
edition = "2018"
rust-version = "1.85.0"

[dependencies]
crossbeam-channel = "0.4.4"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Currently this is still a work in progress.

## Usage

Fastlog requires a minimum rustc version of 1.32.0.
Fastlog requires a minimum rustc version of 1.85.0.

To use fastlog, first add this to your `Cargo.toml`;

Expand Down
Loading