Expand description
This crate provides a way to parse a whole crate as a file and then parse this into a Wit
type.
Currently this is a wrapper type for syn
types.
Modules§
Structs§
Enums§
- Wit
- Wit type that correspond to Rust Types using
syn
’s representation
Traits§
Functions§
- parse_
crate_ as_ file - Read a crate starting from a single file then parse into a file
- parse_
file - Convence function for
- parse_
tokens - Convence function for
- read_
full_ crate_ source_ code - High-level function to load full crate source code from the filesystem. Use it instead of
read_crate
if you want to processcfg
attributes and read only code relevant to specific feature or platform configuration. - resolve_
wit_ file - resolve_
wit_ files