Skip to content

Commit

Permalink
drop wee_alloc dependency
Browse files Browse the repository at this point in the history
`wee_alloc` is unmaintained ([1]), which is generating security
advisories on `hpke-dispatch` and projects that depend on it. AFAIK,
there's no alternative to it that is much better supported, so we drop
the dependency altogether and use the std allocator.

[1]: rustwasm/wee_alloc#107
  • Loading branch information
tgeoghegan committed Sep 29, 2022
1 parent 7c54a2d commit 8cea4e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ categories = ["cryptography"]
cfg_eval = []
base-mode-open = []
base-mode-seal = []
wee-alloc = []
serde = ["serde_crate"]
algo-all = ["aead-all", "kdf-all", "kem-all"]
default = ["algo-all", "base-mode-seal", "base-mode-open"]
Expand Down Expand Up @@ -45,7 +44,6 @@ package = "serde"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.80"
getrandom = { version = "0.2.6", features = ["js", "js-sys"] }
wee_alloc = "0.4.5"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ cfg_if::cfg_if! {
Self(h)
}
}

#[cfg_attr(feature = "wee-alloc", global_allocator)]
#[cfg(feature = "wee-alloc")]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
} else {
pub use hpke::HpkeError;
}
Expand Down

0 comments on commit 8cea4e9

Please sign in to comment.