pub fn new_deny(deny_const: BTreeSet<ShadowConst>) -> SdResult<()>
Expand description
Identical to new
, but additionally accepts a build output denylist.
This list determines constants to be excluded in the build output.
Note that not all constants can be excluded independently, since some constants depend on others.
See ShadowConst
for a list of constants that can be excluded.
§Example
ⓘ
// build.rs
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)
}