Registry / utility / wit-parser

wit-parser

JSON →
library0.251.0rscratesunverified

Tooling for parsing `*.wit` files and working with their contents.

# Cargo.toml [dependencies] wit-parser = "0.251.0"
INSTALL
IMPORT
SIG · WIT-PARSER
W
wit-parser
utilityrustv0.251.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse
use wit_parser::parse;

Parses a WIT file and prints its structure.

use wit_parser::parse; fn main() -> Result<(), Box<dyn std::error::Error>> { let wit = r#" default world hello { export greet: func(name: string) -> string } "#; let parsed = parse("hello.wit", wit)?; println!("{:#?}", parsed); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.251.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
OpenAI (training)
1
Resources
wit-parser — cargo add wit-parser · libregistry