| Crates.io | format_many |
| lib.rs | format_many |
| version | 1.0.0 |
| created_at | 2025-08-23 00:52:49.883845+00 |
| updated_at | 2025-08-23 00:52:49.883845+00 |
| description | Extended format_many! macro which allows formatting with variable number of argument inside one macro call |
| homepage | https://github.com/IoaNNUwU/format_many |
| repository | https://github.com/IoaNNUwU/format_many |
| max_upload_size | |
| id | 1807102 |
| size | 6,805 |
This crate provides extended format_many! macro which allows formatting with variable number of argument inside one macro call.
This macro implemented using macro_rules! thus lightweight and IDE-friendly
use format_many::format_many;
let text: String = format_many!(
"Hello {}", "World"
);
let text: String = format_many!(
"Hello {}", "World";
"Numbers {}, {}", 10, 11;
"String literal";
"Format {:?}", [1, 2, 3]
);
format_many! recieves a list of format strings with corresponding values
separated by ;. Arguments in this inner lists are separated
by ,.
Each argument separated by ; behaves like it's own format! call,
with compile-time checked number of arguments.