Add defmt feature
This commit is contained in:
parent
576267ada6
commit
b0977f9703
|
@ -11,3 +11,4 @@ keywords = ["embedded", "url", "no_std"]
|
|||
exclude = [".github"]
|
||||
|
||||
[dependencies]
|
||||
defmt = { version = "0.3", optional = true }
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user