microseh 1.1.2

Structured Exception Handling (SEH) for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    // NOTE: this is a hack to allow this crate to build on docs.rs.
    //       https://github.com/sonodima/microseh/pull/11#issuecomment-2385633164
    if std::env::var_os("CARGO_CFG_DOCSRS").is_some()
        || std::env::var_os("CARGO_CFG_WINDOWS").is_none()
    {
        println!("cargo:warning=building for a non-supported platform, exception handling will not be available");
        return;
    }

    cc::Build::new().file("src/stub.c").compile("sehstub");
}