hipdf 1.2.1

A high-level PDF manipulation library built on lopdf
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    // Automatically configure features based on target
    let target = std::env::var("TARGET").unwrap_or_else(|_| String::new());

    if target.contains("wasm32") {
        // Set the getrandom backend configuration
        println!("cargo:rustc-cfg=getrandom_backend=\"wasm_js\"");
    }

    // This ensures that the build script is re-run when the target changes
    println!("cargo:rerun-if-env-changed=TARGET");
}