Skip to content

Commit

Permalink
defmt feature flag broken in last build, fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Aebli committed Jan 28, 2025
1 parent 3c0301d commit 16adc61
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "m-bus-parser"
version = "0.0.20"
version = "0.0.21"
edition = "2021"
description = "A library for parsing M-Bus frames"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ keywords = ["m-bus", "parser", "parse", "cli"]


[dependencies]
m-bus-parser = { path = "..", version = "0.0.20", features = ["std", "serde"] }
m-bus-parser = { path = "..", version = "0.0.21", features = ["std", "serde"] }
clap = { version = "4.5.4", features = ["derive"] }
2 changes: 1 addition & 1 deletion examples/cortex-m/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cortex-m = "0.7.7"
cortex-m-rt = "0.7.3"
cortex-m-semihosting = "0.5.0"
panic-halt = "0.2.0"
m-bus-parser = { path = "../../", version = "0.0.20" }
m-bus-parser = { path = "../../", version = "0.0.21" }
# Uncomment for the panic example.
# panic-itm = "0.4.1"

Expand Down
2 changes: 1 addition & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage = "https://maebli.github.io/"
repository = "https://github.com/maebli/m-bus-parser"

[dependencies]
m-bus-parser = { path = "..", version = "0.0.20", features = ["std", "serde"] }
m-bus-parser = { path = "..", version = "0.0.21", features = ["std", "serde"] }
serde_json = "1.0"
pyo3 = { version = "0.23.1", features = ["extension-module","generate-import-lib"] }
hex = "0.4.2"
Expand Down
5 changes: 0 additions & 5 deletions src/user_data/data_information.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,10 @@ impl std::fmt::Display for Month {
}
}

#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub type Year = u16;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub type DayOfMonth = u8;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub type Hour = u8;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub type Minute = u8;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub type Second = u8;

#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
Expand Down
2 changes: 1 addition & 1 deletion wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ default = ["console_error_panic_hook"]

[dependencies]
wasm-bindgen = "0.2.84"
m-bus-parser = { path = "..", version = "0.0.20", features = ["std", "serde"] }
m-bus-parser = { path = "..", version = "0.0.21", features = ["std", "serde"] }
serde = { version = "1.0" }
serde_json = "1.0"

Expand Down

0 comments on commit 16adc61

Please sign in to comment.