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
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ jobs:
testcfail:
name: testcfail
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
MSRV: 1.87.0
defaults:
run:
working-directory: cfail
Expand Down Expand Up @@ -374,7 +377,9 @@ jobs:
${{ runner.OS }}-build-

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}

- name: Run cargo
run: cargo run
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

- Make MSRV of 1.87.0 explicit.

## [v0.9.1] - 2025-08-19

### Added
Expand Down Expand Up @@ -701,7 +703,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Initial release

[Unreleased]: https://github.com/rust-embedded/heapless/compare/v0.9.1...HEAD
[v0.9.0]: https://github.com/rust-embedded/heapless/compare/v0.9.0...v0.9.1
[v0.9.1]: https://github.com/rust-embedded/heapless/compare/v0.9.0...v0.9.1
[v0.9.0]: https://github.com/rust-embedded/heapless/compare/v0.8.0...v0.9.0
[v0.8.0]: https://github.com/rust-embedded/heapless/compare/v0.7.16...v0.8.0
[v0.7.16]: https://github.com/rust-embedded/heapless/compare/v0.7.15...v0.7.16
Expand Down
33 changes: 21 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[package]
authors = [
"Jorge Aparicio <jorge@japaric.io>",
"Per Lindgren <per.lindgren@ltu.se>",
"Emil Fresk <emil.fresk@gmail.com>",
"Jorge Aparicio <jorge@japaric.io>",
"Per Lindgren <per.lindgren@ltu.se>",
"Emil Fresk <emil.fresk@gmail.com>",
]
categories = ["data-structures", "no-std"]
description = "`static` friendly data structures that don't require dynamic memory allocation"
documentation = "https://docs.rs/heapless"
edition = "2021"
rust-version = "1.87"
keywords = ["static", "no-heap"]
license = "MIT OR Apache-2.0"
name = "heapless"
Expand All @@ -23,11 +24,19 @@ bytes = ["dep:bytes"]
portable-atomic = ["dep:portable-atomic"]

# Enable polyfilling of atomics via portable-atomic, using critical section for locking
portable-atomic-critical-section = ["dep:portable-atomic", "portable-atomic", "portable-atomic?/critical-section"]
portable-atomic-critical-section = [
"dep:portable-atomic",
"portable-atomic",
"portable-atomic?/critical-section",
]

# Enable polyfilling of atomics via portable-atomic, using disabling interrupts for locking.
# WARNING: this is only sound for single-core bare-metal privileged-mode targets!
portable-atomic-unsafe-assume-single-core = ["dep:portable-atomic", "portable-atomic", "portable-atomic?/unsafe-assume-single-core"]
portable-atomic-unsafe-assume-single-core = [
"dep:portable-atomic",
"portable-atomic",
"portable-atomic?/unsafe-assume-single-core",
]

# implement serde traits.
serde = ["dep:serde"]
Expand Down Expand Up @@ -65,13 +74,13 @@ static_assertions = "1.1.0"

[package.metadata.docs.rs]
features = [
"bytes",
"ufmt",
"serde",
"defmt",
"mpmc_large",
"portable-atomic-critical-section",
"alloc",
"bytes",
"ufmt",
"serde",
"defmt",
"mpmc_large",
"portable-atomic-critical-section",
"alloc",
]
# for the pool module
targets = ["i686-unknown-linux-gnu"]
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ Licensed under either of

at your option.

## MSRV Policy

This crate is guaranteed to compile with the latest two stable releases of Rust. For example, if the
latest stable Rust release is 1.70, then this crate is guaranteed to compile with Rust 1.69 and 1.70.

## Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
Expand Down