-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
39 lines (35 loc) · 1.37 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[package]
name = "defmt-brtt"
version = "0.1.1"
edition = "2021"
authors = ["Johannes Cornelis Draajier <jcdra1@gmail.com", "Emil Fresk <emil.fresk@gmail.com>"]
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 = [ ]