Crate witgen_macro_helper

Source
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§

generator
visitor

Structs§

DefaultResolver
Interface

Enums§

Wit
Wit type that correspond to Rust Types using syn’s representation

Traits§

Resolver

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 process cfg attributes and read only code relevant to specific feature or platform configuration.
resolve_wit_file
resolve_wit_files