format_many

Crates.ioformat_many
lib.rsformat_many
version1.0.0
created_at2025-08-23 00:52:49.883845+00
updated_at2025-08-23 00:52:49.883845+00
descriptionExtended format_many! macro which allows formatting with variable number of argument inside one macro call
homepagehttps://github.com/IoaNNUwU/format_many
repositoryhttps://github.com/IoaNNUwU/format_many
max_upload_size
id1807102
size6,805
(IoaNNUwU)

documentation

README

format_many

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.

Commit count: 2

cargo fmt