13 releases

0.4.3 Sep 8, 2024
0.4.2 Sep 8, 2024
0.4.0 Aug 22, 2023
0.3.0 Sep 15, 2020
0.1.2 Jun 12, 2020

#38 in Value formatting

Download history 2706/week @ 2025-01-31 3202/week @ 2025-02-07 2994/week @ 2025-02-14 4402/week @ 2025-02-21 4288/week @ 2025-02-28 3907/week @ 2025-03-07 5954/week @ 2025-03-14 6085/week @ 2025-03-21 7972/week @ 2025-03-28 7587/week @ 2025-04-04 8322/week @ 2025-04-11 8773/week @ 2025-04-18 10856/week @ 2025-04-25 8661/week @ 2025-05-02 9867/week @ 2025-05-09 8984/week @ 2025-05-16

39,666 downloads per month
Used in 13 crates (10 directly)

MIT/Apache

16KB
238 lines

maintenance: passively maintained

dyn-fmt

Provides dynamic string format.

use dyn_fmt::AsStrFormatExt;

fn main() {
    assert_eq!("{}a{}b{}c".format(&[1, 2, 3]), "1a2b3c");
    assert_eq!("{}a{}b{}c".format(&[1, 2, 3, 4]), "1a2b3c");
    assert_eq!("{}a{}b{}c".format(&[1, 2]), "1a2bc");
    assert_eq!("{{}}{}".format(&[1, 2]), "{}1");
}

Comparision

dyn-fmt strfmt dynfmt
no_std + - -
Easy but powerfull API that you enjoy using + +/- -
Nice license + +/- +/-

Dependencies

~175KB