Expand description
Static analysis library for extracting Bevy engine architecture from Rust source code.
Parses a Bevy workspace to discover:
- State hierarchies (
States,SubStates,ComputedStates) - Plugin definitions and their dependency graphs
- Schedule configurations and system ordering
- System set definitions and constraints
§Example
use bevy_xray_parser::parser;
let graph = parser::parse_workspace(std::path::Path::new("/path/to/bevy/workspace")).unwrap();
println!("Found {} states, {} plugins", graph.states.len(), graph.plugins.len());Modules§
- graph
- Query and tree-building functions over the parsed state graph.
Query and tree-building functions over the parsed
StateGraph. - model
- Data model types representing Bevy engine architecture elements. Data model types representing Bevy engine architecture elements.
- parser
- Workspace parser — orchestrates file discovery and per-file extraction. Workspace parser — orchestrates file discovery and per-file extraction.