cindermark 0.2.0

High-performance incremental Markdown parser with UTF-16 offsets, built for native text editors on Apple platforms
Documentation
1
2
3
4
5
6
7
8
9
fn main() {
    // Only generate UniFFI scaffolding when the `ffi` feature is enabled.
    // Pure-Rust consumers (the default) skip this entirely, so they don't run
    // the bindings codegen. Cargo exposes enabled features to build scripts as
    // CARGO_FEATURE_<NAME> environment variables.
    if std::env::var_os("CARGO_FEATURE_FFI").is_some() {
        uniffi::generate_scaffolding("src/cindermark.udl").ok();
    }
}