2 releases

Uses new Rust 2024

0.2.0 May 23, 2025

#1910 in Hardware support


Used in 3 crates

MIT license

7KB
135 lines

rktk-log

logger for rktk

Credits

About

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.

Viewing defmt-usb log

By using my defmt-print fork, you can print log from usb (serialport).

Usage

# 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.

Dependencies

~135KB