Crate dsdl_compiler [−] [src]
A compiler for the DSDL (Data structure description language) used in uavcan
For full description of DSDL, have a look at the specification
Binary
The dsdl_compiler
consists of a binary and a library. For documentation on the binary look here
Library
Examples
Compile DSDL directory
use dsdl_compiler::DSDL; use dsdl_compiler::Compile; let dsdl = DSDL::read("tests/dsdl/").unwrap(); let items = dsdl.compile(); assert!(items.len() >= 1);
Print compiled dsdl
#[macro_use] extern crate quote; extern crate dsdl_compiler; use dsdl_compiler::DSDL; use dsdl_compiler::Compile; let dsdl = DSDL::read("tests/dsdl/").unwrap(); let items = dsdl.compile(); let tokens = quote!{#(#items)*}; println!("{}", tokens);
Modules
bin |
Documentation for the |
Structs
DSDL |
The |
Traits
Compile |
The trait that must be implemented to compile from DSDL to code |