crashpad-rs 0.2.5

Safe Rust bindings to Google Crashpad - A crash-reporting system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::env;

/// Build script for the crashpad crate.
///
/// This script only validates feature flags to ensure proper configuration.
fn main() {
    println!("cargo:rerun-if-changed=build.rs");

    // Check feature flags
    let bundled = env::var("CARGO_FEATURE_BUNDLED").is_ok();
    let system = env::var("CARGO_FEATURE_SYSTEM").is_ok();

    if bundled && system {
        panic!("Cannot enable both 'bundled' and 'system' features");
    }
}