Add defmt feature

This commit is contained in:
Rasmus Melchior Jacobsen 2023-01-30 12:24:07 +01:00
parent 576267ada6
commit b0977f9703
2 changed files with 2 additions and 0 deletions

View File

@ -11,3 +11,4 @@ keywords = ["embedded", "url", "no_std"]
exclude = [".github"]
[dependencies]
defmt = { version = "0.3", optional = true }

View File

@ -12,6 +12,7 @@ pub struct Url<'a> {
}
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum UrlScheme {
/// HTTP scheme
HTTP,