stable-alloc-shim 0.64.0

Stable shims for the Allocator API
Documentation
  • Coverage
  • 89.47%
    17 out of 19 items documented0 out of 3 items with examples
  • Size
  • Source code size: 30.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.61 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • orlp/stable-alloc-shim
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • orlp

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.