From 8c69c162e31dabba62da982e1454ca4d3eea42c8 Mon Sep 17 00:00:00 2001 From: Jeron Aldaron Lau Date: Fri, 2 Jun 2023 13:27:33 -0500 Subject: [PATCH] Fix no-std example --- CHANGELOG.md | 4 ++++ Cargo.toml | 9 ++------- examples/no-std/Cargo.toml | 15 +++++++++++++++ examples/{nostd.rs => no-std/src/main.rs} | 2 +- 4 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 examples/no-std/Cargo.toml rename examples/{nostd.rs => no-std/src/main.rs} (96%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21c3b0d..9b29c78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to `whisk` will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://github.com/AldaronLau/semver). +## [0.12.1] - 2023-06-02 +### Fixed + - Weirdness with `Cargo.toml`'s `[[example]]` section and no-std example in CI. + ## [0.12.0] - 2023-06-02 ### Fixed - Default features being pulled in for `pasts` and `futures-core` optional diff --git a/Cargo.toml b/Cargo.toml index b9e100f..d8c4b0d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,13 +10,13 @@ [package] name = "whisk" -version = "0.12.0" +version = "0.12.1" license = "Apache-2.0 OR BSL-1.0 OR MIT" description = "Simple and fast lockless async channels" repository = "https://github.com/ardaku/whisk" documentation = "https://docs.rs/whisk" homepage = "https://github.com/ardaku/whisk/blob/stable/CHANGELOG.md" -include = ["README.md", "src/*", "examples/*"] +include = ["README.md", "src/*", "examples/tokio.rs"] categories = [ "asynchronous", "concurrency", @@ -33,10 +33,6 @@ rust-version = "1.65" name = "tokio" required-features = ["futures-core"] -[[example]] -name = "nostd" -required-features = ["pasts"] - [dependencies.futures-core] version = "0.3" optional = true @@ -54,7 +50,6 @@ flume = "0.10" futures = "0.3" libm = "0.2" ntest = "0.9" -rlsf = "0.2" tokio-stream = "0.1" [dev-dependencies.pasts] diff --git a/examples/no-std/Cargo.toml b/examples/no-std/Cargo.toml new file mode 100644 index 0000000..9a01e74 --- /dev/null +++ b/examples/no-std/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "no-std" +version = "0.1.0" +edition = "2021" + +[dependencies] +rlsf = "0.2" + +[dependencies.pasts] +version = "0.14" +default-features = false + +[dependencies.whisk] +version = "0.12" +features = ["pasts"] diff --git a/examples/nostd.rs b/examples/no-std/src/main.rs similarity index 96% rename from examples/nostd.rs rename to examples/no-std/src/main.rs index 6e74b9a..31b99c3 100644 --- a/examples/nostd.rs +++ b/examples/no-std/src/main.rs @@ -3,7 +3,7 @@ //! with `rustc 1.72.0-nightly (871b59520 2023-05-31)`). //! //! ```shell -//! cargo +nightly run --release --example nostd --features=pasts +//! cargo +nightly run //! ``` #![no_std]