[package] name = "defmt-brtt" version = "0.1.1" edition = "2021" authors = ["Johannes Cornelis Draajier "] license = "MIT OR Apache-2.0" repository = "https://github.com/datdenkikniet/defmt-brtt" description = "Defmt logs over RTT as well as through a BBQueue" keywords = ["defmt", "bbqueue", "rtt", "embedded", "logging"] categories = ["embedded", "encoding", "no-std", "development-tools"] [package.metadata.docs.rs] features = ["async-await"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] defmt = "0.3" critical-section = "1.1" bbqueue = { version = "0.5.1", features = ["defmt_0_3"], optional = true } [features] default = [ "rtt", "bbq", # NOTE(defmt-bbq): It is *strongly* recommended to use the rzcobs encoding when # using this crate. If the buffer is ever filled, then the remaining # bytes will be discarded, which will corrupt the message stream. # # Because rzcobs is delimited by zero bytes, it is possible to recover # from this corruption, with the loss of a limited number of messages. # When using the "raw" encoding, you MUST ensure that the buffer is # never overfilled, as it will NOT be possible to recover from this # error condition. "defmt/encoding-rzcobs" ] bbq = [ "dep:bbqueue" ] async-await = [ ] rtt = [ ]