From a6f1a845bf16c1226c31e43b8176b234d7989091 Mon Sep 17 00:00:00 2001 From: Rahix Date: Thu, 8 Sep 2022 19:27:35 +0200 Subject: [PATCH] Rename `udebug` feature to `ufmt` --- Cargo.toml | 5 +---- src/interrupt.rs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b2912c2..ef40e5e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,10 +56,7 @@ rt = ["avr-device-macros"] # Unfortunately, we can only build documentation for a subset of the supported # MCUs on docs.rs. If you think a very popular chip is missing from the list, # feel free to add it here. -docsrs = ["rt", "atmega328p", "atmega32u4", "atmega2560", "attiny85", "atmega4809"] - -# Enable ufmt::uDebug impls for certain types to aid efficient debugging. -udebug = ["dep:ufmt"] +docsrs = ["rt", "ufmt", "atmega328p", "atmega32u4", "atmega2560", "attiny85", "atmega4809"] [dependencies] bare-metal = "1.0.0" diff --git a/src/interrupt.rs b/src/interrupt.rs index 054da8e..7c03964 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -38,7 +38,7 @@ use core::arch::asm; /// This structure does not implement `Copy` and `Clone`, /// because the user shall not duplicate and pass it twice to [crate::interrupt::restore]. #[derive(Debug)] -#[cfg_attr(feature = "udebug", derive(ufmt::derive::uDebug))] +#[cfg_attr(feature = "ufmt", derive(ufmt::derive::uDebug))] pub struct IrqFlag { // The saved SREG. sreg: u8, -- 2.49.0