| Crates.io | rktk-log |
| lib.rs | rktk-log |
| version | 0.2.0 |
| created_at | 2025-05-23 11:47:03.018252+00 |
| updated_at | 2025-05-23 13:09:04.603936+00 |
| description | rktk log management |
| homepage | |
| repository | https://github.com/nazo6/rktk |
| max_upload_size | |
| id | 1686209 |
| size | 9,844 |
logger for rktk
crate which uses macro in this crate must add below deps and features to Cargo.toml to work correctly.
[dependencies]
rktk-log = { version = "" }
log = { version="", optional = true }
defmt = { version="", optional = true }
[features]
defmt = ["dep:defmt", "rktk-log/defmt"]
log = ["dep:log", "rktk-log/log"]
Also you should consider to modify defmt to feature if your depedency provides feature for defmt.
By using my defmt-print fork, you can print log from usb (serialport).
# Install
cargo install --git https://github.com/nazo6/defmt --branch defmt-print-serial defmt-print
# Connect
defmt-print <elf binary path> serial COM1 # Change COM1 to your serial port
To find com port, you can use software such as USB Device Tree Viewer on windows.