Skip to content

Commit e98691b

Browse files
authored
drop wee_alloc dependency (#18)
`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
1 parent 7c54a2d commit e98691b

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ categories = ["cryptography"]
1313
cfg_eval = []
1414
base-mode-open = []
1515
base-mode-seal = []
16-
wee-alloc = []
1716
serde = ["serde_crate"]
1817
algo-all = ["aead-all", "kdf-all", "kem-all"]
1918
default = ["algo-all", "base-mode-seal", "base-mode-open"]
@@ -45,7 +44,6 @@ package = "serde"
4544
[target.'cfg(target_arch = "wasm32")'.dependencies]
4645
wasm-bindgen = "0.2.80"
4746
getrandom = { version = "0.2.6", features = ["js", "js-sys"] }
48-
wee_alloc = "0.4.5"
4947

5048
[lib]
5149
crate-type = ["cdylib", "rlib"]

src/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ cfg_if::cfg_if! {
7979
Self(h)
8080
}
8181
}
82-
83-
#[cfg_attr(feature = "wee-alloc", global_allocator)]
84-
#[cfg(feature = "wee-alloc")]
85-
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
8682
} else {
8783
pub use hpke::HpkeError;
8884
}

0 commit comments

Comments
 (0)