Crates.io | silly-alloc |
lib.rs | silly-alloc |
version | 0.1.0 |
source | src |
created_at | 2023-04-03 13:20:27.653568 |
updated_at | 2023-04-03 13:20:27.653568 |
description | A collection of very basic allocators. |
homepage | |
repository | https://github.com/surma/silly-alloc |
max_upload_size | |
id | 829080 |
size | 34,158 |
silly_alloc
is a collection of very basic allocators that are fast and small. Written with WebAssembly in mind.
#![no_std]
wasm32-unknown-unknown
and wasm32-wasi
.This crate is young and experimental. I have tried my best to ensure correct functionality through testing, but it’s very likely that there are bugs. It’s even more likely that features are missing that should be there. Please feel free to open issues or even PRs!
To run the unit and integration tests:
$ cargo test --target=wasm32-wasi
To run the doc tests, Nightly Rust is required (as cross-compiling doc tests is still experimental) and a special environment variable needs to be set so that the macro crate generates the correct absolute paths for the bucket allocator types.
$ SILLY_ALLOC_DOC_TESTS=1 cargo +nightly test --doc --target wasm32-wasi -Zdoctest-xcompile
License Apache 2.
License: Apache-2.0