code-moniker-query 0.4.0

Shared daemon query DSL and protocol DTOs for code-moniker.
Documentation
1
2
3
4
5
6
7
8
9
10
//! Emits the daemon RPC JSON Schema to stdout. Run with the `schema` feature:
//! `cargo run -p code-moniker-query --features schema --bin export-schema`.

fn main() {
	let schema = schemars::schema_for!(code_moniker_query::DaemonProtocol);
	println!(
		"{}",
		serde_json::to_string_pretty(&schema).expect("serialize schema")
	);
}