fel-core 0.3.0

Formspec Expression Language — parser, evaluator, and dependency analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! CLI binary: emit the FEL function catalog as JSON to stdout.
//!
//! Usage:
//! ```sh
//! cargo run -p fel-core --bin emit-fel-schema > formspec/schemas/fel-functions.schema.json
//! ```
fn main() {
    let v = fel_core::extensions::emit_schema_json();
    serde_json::to_writer_pretty(std::io::stdout(), &v)
        .expect("failed to write schema JSON to stdout");
    println!(); // trailing newline
}