Skip to content

Commit

Permalink
Fix no-std example
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed Jun 2, 2023
1 parent 07cfdd1 commit 8c69c16
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 2 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand All @@ -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]
Expand Down
15 changes: 15 additions & 0 deletions examples/no-std/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion examples/nostd.rs → examples/no-std/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 8c69c16

Please sign in to comment.