pub fn new_deny(deny_const: BTreeSet<ShadowConst>) -> SdResult<()>
Expand description
It’s shadow-rs Initialization entry, If deny const is configured, constants will not be generated.
In build.rs main()
function call for this function.
Examples
ⓘ
use std::collections::BTreeSet;
fn main() -> shadow_rs::SdResult<()> {
let mut deny = BTreeSet::new();
deny.insert(shadow_rs::CARGO_TREE);
shadow_rs::new_deny(deny)
}