stable-alloc-shim

Crates.iostable-alloc-shim
lib.rsstable-alloc-shim
version0.64.0
sourcesrc
created_at2021-12-27 18:17:40.762435
updated_at2022-09-25 19:53:21.161082
descriptionStable shims for the Allocator API
homepage
repositoryhttps://github.com/orlp/stable-alloc-shim
max_upload_size
id503817
size30,436
Orson Peters (orlp)

documentation

README

stable-alloc-shim

A simple crate that provides stable copies of the unstable allocator APIs found in alloc, for the purpose of implementing collections targetting stable Rust.

[dependencies]
stable-alloc-shim = "0.64"

The minimum required Rust version for this crate is Rust 1.50.

This crate does not do its own versioning and instead follows the standard library. As an example, v0.64.x of this crate will have the definitions and implementations of the allocator API as they were in Rust version 1.64. The x will be reserved for fixing errors, and applying the semver trick for future compatibility.

When nightly features get changed in future releases, this crate will update their definitions in a new version. If a feature gets stabilized, it is similarly changed to a re-export from the standard library, if a sufficiently high rustc version is detected (as to not unnecessarily bump the minimum required Rust version). Either way the semver trick is used for unchanged definitions in the older version to keep versions as compatible as possible.

Commit count: 6

cargo fmt