bitty_write_macro

Crates.iobitty_write_macro
lib.rsbitty_write_macro
version0.1.2
sourcesrc
created_at2024-03-13 23:47:36.926871
updated_at2024-03-14 18:51:13.795475
descriptionA drop-in `write!` replacement that optimizes non-formatting writes for code size
homepage
repository
max_upload_size
id1172692
size46,078
Alyssa Haroldsen (kupiakos)

documentation

README

Size-optimized versions of the standard library's write! and writeln! macros.

Why use these macros?

In code size-constrained systems that perform string formatting, using the write! or writeln! macro can generate larger code than writing the contents directly, even after linking and inlining.

The write! and writeln! macros provided by this crate detect when the write could be optimized as a direct write with write_str (for fmt::Write) or write (for io::Write) and calls that instead of format_args! and write_fmt.

Commit count: 0

cargo fmt