Function new_deny

Source
pub fn new_deny(deny_const: BTreeSet<ShadowConst>) -> SdResult<()>
๐Ÿ‘ŽDeprecated since 0.37.0: Please use [ShadowBuilder::builder] instead
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)
}