Skip to content

Commit

Permalink
Update edition and set MSRV to 1.66 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind authored Feb 13, 2025
1 parent c286dac commit db53077
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: "1.41.1"
toolchain: "1.66"
default: true

- run: cargo check
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
name = "sluice"
version = "0.5.5"
authors = ["Stephen M. Coakley <[email protected]>"]
edition = "2018"
edition = "2021"
description = "Efficient ring buffer for byte buffers, FIFO queues, and SPSC channels"
documentation = "https://docs.rs/sluice"
repository = "https://github.com/sagebind/sluice"
readme = "README.md"
keywords = ["buffer", "pipe", "channel"]
categories = ["asynchronous", "concurrency", "data-structures"]
license = "MIT"
rust-version = "1.66"

[dependencies]
async-channel = "1"
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ Asynchronous byte buffers and pipes for concurrent I/O programming.
[![Crates.io](https://img.shields.io/crates/v/sluice.svg)](https://crates.io/crates/sluice)
[![Documentation](https://docs.rs/sluice/badge.svg)](https://docs.rs/sluice)
![License](https://img.shields.io/badge/license-MIT-blue.svg)
[![Minimum supported Rust version](https://img.shields.io/badge/rustc-1.66+-yellow.svg)](#minimum-supported-rust-version)
[![Build](https://github.com/sagebind/sluice/workflows/ci/badge.svg)](https://github.com/sagebind/sluice/actions)

## [Documentation]

Check the [documentation] for up-to-date usage and examples.

## Minimum supported Rust version

The minimum supported Rust version (or _MSRV_) for Castaway is **stable Rust 1.66 or greater**, meaning we only guarantee that Castaway will compile if you use a rustc version of at least 1.66.

## Sponsors

Special thanks to sponsors of my open-source work!
Expand Down
2 changes: 1 addition & 1 deletion tests/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fn read_write_chunks_random(chunks: u8) {
async {
for _chunk in 0..chunks {
let mut buf = data.clone();
reader.read(&mut buf).await.unwrap();
let _ = reader.read(&mut buf).await.unwrap();
assert_eq!(&buf[..], &data[..]);
}
},
Expand Down

0 comments on commit db53077

Please sign in to comment.