format_no_std

Crates.ioformat_no_std
lib.rsformat_no_std
version1.2.0
created_at2022-07-18 16:38:24.849137+00
updated_at2024-04-30 13:31:10.015582+00
descriptionBare metal formatting
homepage
repositoryhttps://github.com/zartarn15/format_no_std
max_upload_size
id627839
size17,701
Alex (zartarn15)

documentation

README

format_no_std

Implements write_str to get write_fmt, which is used in the format!() and format_args!() macros. For no_std formatting in a bare metal environment.

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.

Usage

Library usage example

let mut buf = [0u8; 64];
let s = format_no_std::show(
    &mut buf,
    format_args!("Test String {}: {}", "foo", 42),
).unwrap();

assert_eq!("Test String foo: 42", s);
Commit count: 14

cargo fmt