Exclosured.Events.Parser (exclosured v0.1.4)

Copy Markdown

Parses Rust source files for /// exclosured:event annotated structs.

Extracts struct names and field definitions for codegen.

Summary

Functions

Parse a Rust source string and return a list of event structs.

Functions

parse(source)

Parse a Rust source string and return a list of event structs.

Each event is a map:

%{name: "ProgressEvent", fields: [%{name: "percent", type: "u32"}, ...]}