Skip to content

Commit

Permalink
Emit extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
pv42 authored Aug 22, 2024
1 parent 06f1eef commit 8fb5875
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion mavlink-bindgen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mavlink-bindgen"
version = "0.13.1"
version = "0.13.2"
edition = "2021"
license = "MIT/Apache-2.0"
description = "Library used by rust-mavlink."
Expand Down Expand Up @@ -28,3 +28,5 @@ anstyle-parse = { version = "=0.2.1", optional=true }

[features]
cli = ["dep:clap", "dep:clap_lex", "dep:clap_builder", "dep:anstyle", "dep:anstyle-query", "dep:anstyle-parse"]
emit-extensions = []
emit-description = []
2 changes: 1 addition & 1 deletion mavlink-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mavlink-core"
version = "0.13.1"
version = "0.13.2"
authors = [
"Todd Stellanova",
"Michal Podhradsky",
Expand Down
2 changes: 1 addition & 1 deletion mavlink-core/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn remove_trailing_zeroes(data: &[u8]) -> usize {
/// `MavType`s. This is only needed because rust doesn't currently implement `Default` for arrays
/// of all sizes. In particular this trait is only ever used when the "serde" feature is enabled.
/// For more information, check out [this issue](https://users.rust-lang.org/t/issue-for-derives-for-arrays-greater-than-size-32/59055/3).
pub(crate) trait RustDefault: Copy {
pub trait RustDefault: Copy {
fn rust_default() -> Self;
}

Expand Down
6 changes: 3 additions & 3 deletions mavlink/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[package]
name = "mavlink"
version = "0.13.1"
version = "0.13.2"
authors = [
"Todd Stellanova",
"Michal Podhradsky",
Expand Down Expand Up @@ -87,8 +87,8 @@ serde_arrays = { version = "0.1.0", optional = true }
]

"format-generated-code" = []
"emit-description" = []
"emit-extensions" = []
"emit-description" = ["mavlink-bindgen/emit-description"]
"emit-extensions" = ["mavlink-bindgen/emit-extensions"]
"std" = ["mavlink-core/std"]
"udp" = ["mavlink-core/udp"]
"tcp" = ["mavlink-core/tcp"]
Expand Down
4 changes: 4 additions & 0 deletions mavlink/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
include!(concat!(env!("OUT_DIR"), "/mod.rs"));

pub use mavlink_core::*;

#[cfg(feature = "emit-extensions")]
#[allow(unused_imports)]
pub(crate) use mavlink_core::utils::RustDefault;

0 comments on commit 8fb5875

Please sign in to comment.