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

#63 in Value formatting

Download history 2318/week @ 2024-03-14 3441/week @ 2024-03-21 2244/week @ 2024-03-28 3710/week @ 2024-04-04 3213/week @ 2024-04-11 2702/week @ 2024-04-18 3664/week @ 2024-04-25 2395/week @ 2024-05-02 2829/week @ 2024-05-09 2293/week @ 2024-05-16 2601/week @ 2024-05-23 2775/week @ 2024-05-30 1980/week @ 2024-06-06 1329/week @ 2024-06-13 1298/week @ 2024-06-20 1224/week @ 2024-06-27

6,473 downloads per month
Used in 10 crates (7 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