bare_schema

Function bare_schema 

Source
pub fn bare_schema(schema_path: &Path, config: Config) -> TokenStream
Expand description

bare_schema parses a BARE schema file and generates equivalent Rust code that is capable of being serialized to and deserialized from bytes using the BARE encoding format. The macro takes exactly one argument, a string that will be parsed as path pointing to a BARE schema file. The path is treated as relative to the file location of the macro’s use. For details on how the BARE data model maps to the Rust data model, see the Serialize derive macro’s documentation.