Add defmt feature
This commit is contained in:
parent
576267ada6
commit
b0977f9703
|
@ -11,3 +11,4 @@ keywords = ["embedded", "url", "no_std"]
|
||||||
exclude = [".github"]
|
exclude = [".github"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
defmt = { version = "0.3", optional = true }
|
|
@ -12,6 +12,7 @@ pub struct Url<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
|
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub enum UrlScheme {
|
pub enum UrlScheme {
|
||||||
/// HTTP scheme
|
/// HTTP scheme
|
||||||
HTTP,
|
HTTP,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user