Rust implementation of Carve - a lightweight markup language for documents and the web: parser, HTML renderer, and carve CLI.
https://markup-carve.github.io/carve/ โ// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Health 100/100 with only 5 stars
- 5 releases in the last 90 days
- 12 open issues handled by one or two people
// how to help
// readme
carve-rs
The Rust engine of the Carve markup language, version 0.2: parse, resolve, render HTML, format, lint and import. The crate is published as carve-lang and imported as carve; it also builds the carve command.
Carve 0.2 requires Rust 1.88 or newer.
Its public library is the module carve::api. The rest of the crate is engine internals: those modules are hidden from rustdoc and may change in any commit.
The calls follow spec/0.2/tooling.md (C2-T-005), spelled the Rust way (C2-T-001): parseWithDiagnostics becomes parse_with_diagnostics, strictLosses becomes strict_losses. Run cargo doc --open for the full reference.
Install
[dependencies]
carve = { package = "carve-lang", version = "0.2" }
The fs feature (on by default) holds every code path that opens a file: the include resolver carve::include::fs, the includes.root option of the JSON boundary and the carve command. With default-features = false the library opens no file, for sandboxed, WASM and browser hosts; a host then passes its own Resolver.