Open hobofan opened 5 years ago
Consists of multiple things:
--allow-alloc
alloc
std
use std::
use alloc::
use
use std::vec::Vec
Consists of multiple things:
--allow-alloc
flag; By default thealloc
should not be assumed to be present on target systems.std
withalloc
similar to this: https://github.com/CraneStation/cranelift/blob/4e096e29cecc762e345cfc62c34e3113ba5777d7/lib/wasm/src/lib.rs#L30-L38 . If that is detected, filter out alluse std::
offenses that have an equivalent validuse alloc::
statement.use
related the alloc crate (e.g.use std::vec::Vec
is detected)