From 120382d58da2d1cac07144a07f71373e9ce2ea25 Mon Sep 17 00:00:00 2001 From: Congyu WANG Date: Thu, 21 Mar 2024 17:51:49 +0800 Subject: [PATCH] requires stable rust v1.77 --- .github/workflows/tests.yml | 31 +++++++++++++++---------------- README.md | 4 ++++ rust-toolchain.toml | 3 --- 3 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 rust-toolchain.toml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cf327ed..ec2c217 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,31 +2,30 @@ name: Tests on: push: - branches: [ "master" ] + branches: ["master"] pull_request: - branches: [ "master" ] + branches: ["master"] env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: rust-toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly + - uses: actions/checkout@v3 + - name: rust-toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable profile: minimal components: rustfmt, clippy - - name: Format check - run: cargo fmt --check - - name: Clippy - run: cargo clippy -- -D warnings - - name: Build - run: cargo build --verbose --release - - name: Run tests - run: cargo test --release + - name: Format check + run: cargo fmt --check + - name: Clippy + run: cargo clippy -- -D warnings + - name: Build + run: cargo build --verbose --release + - name: Run tests + run: cargo test --release diff --git a/README.md b/README.md index 870d4cb..3d3f004 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # Intrusive Circular Linked List in Rust +## Minimal Supported Rust Version (MSRV) + +v1.77.0 since it requires `offset_of!` macro which is stablized in v1.77.0. + ## Introduction The `cdlist` crate implements a non-thread-safe, intrusive, doubly-linked list in Rust. Its primary characteristic is the inclusion of link pointers within the data structures themselves, rather than in separate node wrappers. This approach enhances memory and performance efficiency but requires careful handling of ownership and safety, which this crate has taken care of. diff --git a/rust-toolchain.toml b/rust-toolchain.toml deleted file mode 100644 index 67d9a53..0000000 --- a/rust-toolchain.toml +++ /dev/null @@ -1,3 +0,0 @@ -[toolchain] -channel = "nightly" -profile = "minimal"