bitty_write_macro 0.1.2

A drop-in `write!` replacement that optimizes non-formatting writes for code size
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented0 out of 0 items with examples
  • Size
  • Source code size: 46.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kupiakos

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.