Skip to content

Commit 70894b4

Browse files
bors[bot]jkristell
andauthored
Merge #479
479: Remove the defmt feature/crate naming workaround r=burrbull a=jkristell Requires Rust 1.60 Co-authored-by: Johan Kristell <johan@jott.se>
2 parents e7a3d1e + bf6dbd2 commit 70894b4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Fixed
11+
- Remove the defmt feature/dependency name workaround
12+
1013
## [v0.13.0] - 2022-04-04
1114

1215
### Changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
edition = "2021"
3-
rust-version = "1.59"
3+
rust-version = "1.60"
44

55
authors = ["Daniel Egger <daniel@eggers-club.de>"]
66
categories = [
@@ -27,7 +27,7 @@ features = ["stm32f429", "usb_fs", "can", "i2s", "fsmc_lcd"]
2727
targets = ["thumbv7em-none-eabihf"]
2828

2929
[dependencies]
30-
defmt_ = { package = "defmt", version = "0.3.0", optional = true }
30+
defmt = { version = "0.3.0", optional = true }
3131
bxcan = { version = "0.6", optional = true }
3232
cortex-m = "0.7.4"
3333
cortex-m-rt = "0.7"
@@ -318,7 +318,7 @@ i2s = ["stm32_i2s_v12x"]
318318

319319
fsmc_lcd = ["display-interface"]
320320

321-
defmt = ["defmt_", "fugit/defmt"]
321+
defmt = ["dep:defmt", "fugit/defmt"]
322322

323323
adc2 = []
324324
adc3 = []

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#![no_std]
22
#![allow(non_camel_case_types)]
33

4-
#[cfg(feature = "defmt")]
5-
extern crate defmt_ as defmt;
6-
74
#[cfg(not(feature = "device-selected"))]
85
compile_error!(
96
"This crate requires one of the following device features enabled:

0 commit comments

Comments
 (0)