# `bitty_write_macro` 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][fmt_opt] 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`. [fmt_opt]: https://godbolt.org/z/qaPa9WqdP ## Contributing See [`CONTRIBUTING.md`](CONTRIBUTING.md) for details. ## License Apache 2.0; see [`LICENSE`](LICENSE) for details. ## Disclaimer This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.