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

#42 in Value formatting

Download history 2577/week @ 2024-12-02 3661/week @ 2024-12-09 3012/week @ 2024-12-16 1237/week @ 2024-12-23 1556/week @ 2024-12-30 2290/week @ 2025-01-06 3222/week @ 2025-01-13 2752/week @ 2025-01-20 2207/week @ 2025-01-27 2873/week @ 2025-02-03 3040/week @ 2025-02-10 3313/week @ 2025-02-17 4346/week @ 2025-02-24 4290/week @ 2025-03-03 4608/week @ 2025-03-10 6107/week @ 2025-03-17

19,462 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