Cargo Features
Chromium has no features set by default.
[dependencies]
chromium = { version = "0.0.2", features = ["unsafe_alloc"] }
- unsafe_alloc
-
Enables additional support for types in the
alloc
crate. Usage of this feature is inherently dangerous because a person could think that it's safe to go and move and move memory between global allocators. THAT IS NOT SAFE. If you move memory between allocators you can get heap corruption, which is one of the worst forms of UB.This feature is USE AT YOUR OWN RISK and so it's got "unsafe" right in the name.