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

#28 in Value formatting

Download history 1455/week @ 2024-07-03 1379/week @ 2024-07-10 1486/week @ 2024-07-17 1569/week @ 2024-07-24 1940/week @ 2024-07-31 1983/week @ 2024-08-07 2038/week @ 2024-08-14 2150/week @ 2024-08-21 1830/week @ 2024-08-28 2337/week @ 2024-09-04 2261/week @ 2024-09-11 2299/week @ 2024-09-18 1765/week @ 2024-09-25 1781/week @ 2024-10-02 2203/week @ 2024-10-09 2050/week @ 2024-10-16

8,288 downloads per month
Used in 15 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