#char #buf #write

no-std char-buf

A writable, fixed-length char buffer usable in no_std environments

1 unstable release

0.1.2 Feb 12, 2024
0.1.1 Oct 6, 2023
0.1.0 Oct 6, 2023

#280 in Testing

Download history 4/week @ 2023-11-04 5/week @ 2023-11-11 9/week @ 2023-11-18 19/week @ 2023-11-25 7/week @ 2023-12-02 5/week @ 2023-12-09 6/week @ 2023-12-16 8/week @ 2023-12-23 5/week @ 2023-12-30 4/week @ 2024-01-06 10/week @ 2024-01-13 4/week @ 2024-01-20 17/week @ 2024-01-27 11/week @ 2024-02-03 71/week @ 2024-02-10 82/week @ 2024-02-17

182 downloads per month
Used in 2 crates

MIT/Apache

10KB
185 lines

crates.io docs.rs pipeline status coverage report

CharBuf

A writable, fixed-length char buffer usable in no_std environments.

use char_buf::CharBuf;
use core::fmt::Write;

// `CharBuf` with capacity `8`
type CharBuf8 = CharBuf<8>;

let mut w = CharBuf8::new();
write!(w, "x{:?}x", [1, 2]).unwrap();

assert_eq!(w, "x[1, 2]x");

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


© 2023–2024 Koichi Kitahara

No runtime deps