7 releases (4 breaking)
new 0.5.0 | Mar 29, 2025 |
---|---|
0.4.0 | Mar 16, 2025 |
0.3.1 | Feb 26, 2025 |
0.2.0 | Feb 15, 2025 |
0.1.1 | Feb 12, 2025 |
#2636 in Game dev
440 downloads per month
Used in 3 crates
(2 directly)
25KB
365 lines
Language Agnostic Declaration file
A file format specifying the available exported:
- functions
- types
- primitives
- documentation
For a bevy
game engine project.
Example
See an example of a LAD
file here
Features
testfile
- Include the above testfile as aladfile::EXAMPLE_LADFILE
constantvisitor
- Provide traits for visiting parts of theLAD
file.
lib.rs
:
Parsing definitions for the LAD (Language Agnostic Decleration) file format.
The main ideals behind the format are:
- Centralization, we want to centralize as much of the "documentation" logic in the building of this format. For example, instead of letting each backend parse argument docstrings from the function docstring, we can do this here, and let the backends concentrate on pure generation.
- Rust centric, the format describes bindings from the Rust side, so we generate rust centric declarations. These can then freely be converted into whatever representaion necessary.
Dependencies
~1.3–2.4MB
~46K SLoC