a789495a98
FreeBSD Smoke / FreeBSD Smoke (x86_64) (push) Has been cancelled
CI / Quality Guardrails (push) Has been cancelled
CI / Build & Test (macos-latest) (push) Has been cancelled
CI / Build & Test (ubuntu-latest) (push) Has been cancelled
CI / Build & Test (windows-latest) (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / PowerShell Syntax (push) Has been cancelled
CI / Windows Cross-Target Check (Linux) (push) Has been cancelled
14 lines
730 B
Rust
14 lines
730 B
Rust
fn main() {
|
|
println!("cargo:rustc-check-cfg=cfg(mmdr_size_api_available)");
|
|
// The pinned mermaid-rs-renderer tag (v0.3.0+) ships the render size
|
|
// metadata API, so the size-API path is available by default. Set
|
|
// JCODE_MMDR_SIZE_API_DISABLE=1 to force the legacy SVG-retarget path
|
|
// (e.g. when testing against an older renderer via a Cargo patch).
|
|
println!("cargo:rerun-if-env-changed=JCODE_MMDR_SIZE_API_DISABLE");
|
|
// Legacy opt-in env var kept for compatibility with old build scripts.
|
|
println!("cargo:rerun-if-env-changed=JCODE_MMDR_SIZE_API_AVAILABLE");
|
|
if std::env::var_os("JCODE_MMDR_SIZE_API_DISABLE").is_none() {
|
|
println!("cargo:rustc-cfg=mmdr_size_api_available");
|
|
}
|
|
}
|