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

#44 in Value formatting

Download history 839/week @ 2023-12-15 487/week @ 2023-12-22 872/week @ 2023-12-29 844/week @ 2024-01-05 864/week @ 2024-01-12 769/week @ 2024-01-19 1117/week @ 2024-01-26 978/week @ 2024-02-02 879/week @ 2024-02-09 1057/week @ 2024-02-16 1012/week @ 2024-02-23 4575/week @ 2024-03-01 2370/week @ 2024-03-08 2431/week @ 2024-03-15 3593/week @ 2024-03-22 1790/week @ 2024-03-29

11,036 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