1 unstable release
0.1.0 | Nov 7, 2022 |
---|
#97 in #stdout
7KB
134 lines
Unix print
A no_std
, no_libc
library that allows using Rust's standard syscall macros
to output to stdout or stderr.
Does no buffering or locking which will exhibit poor performance under heavy load, and strange ordering on multithreading.
*Should work on posix compliant OSes but is only tested on linux
Examples
Used just like the regular print!
, println!
, eprint!
, eprintln!
, and dbg!
macros.
See the example no_std binary for usage, run it with cargo run -p no-std-test
.
Credits
Heavily inspired by rust-libc-print.
License
Licensed under MIT.
lib.rs
:
A no_std, no_libc stdout/stderr printer with a similar interface as Rust std's (e)print(ln)-macros
Dependencies
~240KB