Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
dsdl @ a517afa
src
tests
Cargo.toml
README.md
build.rs
travis.sh

README.md

DSDL

A convinient way to compile DSDL

DSDL

DSDL defines the data types transfered with uavcan. For full description of DSDL, have a look at the specification

Usage

This crate will look for DSDL definitions at $(CARGO_MANIFEST_DIR)/dsdl and make the compiled Rust definitions available inside this crate.

If you wish to use the standard DSDL definitions add them as a git submodule inside the crate, git submodule add https://github.com/UAVCAN/dsdl.git.

Examples

The following examples assumes that the standard DSDL definition is located at $(CARGO_MANIFEST_DIR)/dsdl.

Basic usage

extern crate dsdl;
extern crate uavcan;

use uavcan::Message;

# fn main() {
#
assert_eq!(dsdl::uavcan::protocol::NodeStatus::TYPE_ID, Some(341));
# }

Alternatives

A stand alone dsdl compiler can be installed by running cargo install dsdl_compiler. Run dsdlc -h for usage documentation.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

You can’t perform that action at this time.