tracing-result 0.1.0

An ergonomic wrapper making it easy to emit tracing messages on errors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use build_safely::prelude::*;

fn main() -> Result<()> {
    let mut ac = AutoCfg::new()?;

    // check to see any  downstream crate has defined
    // `unstable.allow-features` in `.cargo/config.toml`.
    let allowed_features = cargo_allowed_features()?;

    ac.emit_unstable_feature(never_type, &allowed_features);
    ac.emit_unstable_feature(try_trait_v2, &allowed_features);
    ac.emit_unstable_feature(try_trait_v2_residual, &allowed_features);

    Ok(())
}