rktk-log

Crates.iorktk-log
lib.rsrktk-log
version0.2.0
created_at2025-05-23 11:47:03.018252+00
updated_at2025-05-23 13:09:04.603936+00
descriptionrktk log management
homepage
repositoryhttps://github.com/nazo6/rktk
max_upload_size
id1686209
size9,844
nazo6 (nazo6)

documentation

README

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.

Commit count: 433

cargo fmt