Crates.io | stable-alloc-shim |
lib.rs | stable-alloc-shim |
version | 0.64.0 |
source | src |
created_at | 2021-12-27 18:17:40.762435 |
updated_at | 2022-09-25 19:53:21.161082 |
description | Stable shims for the Allocator API |
homepage | |
repository | https://github.com/orlp/stable-alloc-shim |
max_upload_size | |
id | 503817 |
size | 30,436 |
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.