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

#29 in Value formatting

Download history 2112/week @ 2024-08-04 2037/week @ 2024-08-11 2180/week @ 2024-08-18 2032/week @ 2024-08-25 1834/week @ 2024-09-01 2778/week @ 2024-09-08 2057/week @ 2024-09-15 2026/week @ 2024-09-22 1761/week @ 2024-09-29 2083/week @ 2024-10-06 2219/week @ 2024-10-13 2453/week @ 2024-10-20 2259/week @ 2024-10-27 1881/week @ 2024-11-03 2488/week @ 2024-11-10 3395/week @ 2024-11-17

10,085 downloads per month
Used in 12 crates (9 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