10 releases

0.4.0 Aug 22, 2023
0.3.0 Sep 15, 2020
0.2.5 Sep 9, 2020
0.2.3 Aug 16, 2020
0.1.2 Jun 12, 2020

#46 in Value formatting

Download history 778/week @ 2024-01-22 1291/week @ 2024-01-29 808/week @ 2024-02-05 860/week @ 2024-02-12 1102/week @ 2024-02-19 2418/week @ 2024-02-26 4391/week @ 2024-03-04 1715/week @ 2024-03-11 2817/week @ 2024-03-18 2971/week @ 2024-03-25 3328/week @ 2024-04-01 3305/week @ 2024-04-08 2991/week @ 2024-04-15 3565/week @ 2024-04-22 2431/week @ 2024-04-29 2606/week @ 2024-05-06

11,834 downloads per month
Used in 8 crates (6 directly)

MIT/Apache

15KB
234 lines

travis

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 + +/- +/-

No runtime deps

Features