Zeroizing allocator (#154)

* Add a zeroizing allocator

* Also implement the allocator API

* Add misisng license file to zalloc

* Slight change to zalloc description
This commit is contained in:
Luke Parker
2022-11-10 23:34:40 -06:00
committed by GitHub
parent 7334ed1f43
commit 3d9b9b178c
5 changed files with 95 additions and 0 deletions

19
common/zalloc/Cargo.toml Normal file
View File

@@ -0,0 +1,19 @@
[package]
name = "zalloc"
version = "0.1.0"
description = "An allocator wrapper which zeroizes memory on dealloc"
license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/common/zalloc"
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
keywords = []
edition = "2021"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
zeroize = "1.5"
[features]
allocator = []