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

#27 in Value formatting

Download history 2094/week @ 2024-08-20 2006/week @ 2024-08-27 2274/week @ 2024-09-03 2335/week @ 2024-09-10 2154/week @ 2024-09-17 2063/week @ 2024-09-24 1633/week @ 2024-10-01 2209/week @ 2024-10-08 2440/week @ 2024-10-15 2180/week @ 2024-10-22 2249/week @ 2024-10-29 1983/week @ 2024-11-05 2618/week @ 2024-11-12 3437/week @ 2024-11-19 2037/week @ 2024-11-26 2859/week @ 2024-12-03

11,417 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