docs.rs failed to build hardened-malloc-16.0.2026060601
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
hardened-malloc-16.0.2026050401
Global allocator using GrapheneOS allocator
- Released under the same license as the GrapheneOS allocator.
- The major version follows the GrapheneOS allocator version.
- Use it, harden your memories, spread the love!
Configuration
- Build requires a C23 supporting compiler!
- We follow upstream configuration closely (except
CONFIG_WERROR). - Feature
lightenables light mode, otherwise you're indefaultmode. - Feature
sealenablesCONFIG_SEAL_METADATA, noop if target env isn't GNU. GlobalAlloc::deallocuses hardened allocator extensionfree_sizedto verify size.
Example
- Add the following to your
Cargo.toml. - Add
features = ["light"]as necessary.
# Default allocator:
# GrapheneOS does not support 32-bit.
[target.'cfg(target_pointer_width = "64")'.dependencies]
hardened-malloc = { version = "16.0" }
With that in dependencies, you may change your default global allocator:
// Set global allocator to GrapheneOS allocator.
#[cfg(target_pointer_width = "64")]
#[global_allocator]
static GLOBAL: hardened_malloc::HardenedMalloc = hardened_malloc::HardenedMalloc;
Maintained by Ali Polatel. Up-to-date sources can be found at https://git.sr.ht/~alip/syd and bugs/patches can be submitted by email to ~alip/sydbox-devel@lists.sr.ht. Exherbo related bugs/issues can be submitted to https://gitlab.exherbo.org/groups/sydbox/-/issues. Discuss in #sydbox on Libera Chat.