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
2 changes: 1 addition & 1 deletion static-alloc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "static-alloc"
version = "0.3.0-prerelease"
version = "0.3.0"
description = "A bump allocator on static memory for the alloc-traits crate"
edition = "2024"
documentation = "https://docs.rs/static-alloc"
Expand Down
25 changes: 25 additions & 0 deletions static-alloc/Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# v0.3.

Structural:
- MSRV is now 1.85.
- Atomics are now polyfilled with `portable-atomic`.

Feature changes:
- Renamed `MemBump` to `BumpSlice`.
- Added `BumpSlice` for the `Sync` allocator.
- A static reference to this type implements `GlobalAlloc`.
- The impl `Deref<Target=BumpSlice> for sync::Bump` will no verify, through a
post-monomorphization error, that the layouts are actually compatible. If the
alignment of the underlying storage type is larger than `usize` this will
produce a static compile error.
- The implementation of `Bump` methods are now handled by an untyped proxy type
that's also shared with `BumpSlice`. This avoids monomorphization costs from
bloated codegen if multiple container types are used.
- Added `Bump::get_slice` to produce an allocation for multiple elements.
Future versions may complement the set of methods when it's clear how
initialization is best handled.

Fixes:
- Fix an unsoundness related to `Deref` for `sync::Bump` (see above). If your
code compiles without change, your code could not have been affected.

# v0.2.6

- Fix an unsoundness bug in `MemBump::new` (available under feature `alloc`)
Expand Down
Loading