9 releases

Uses old Rust 2015

0.3.0 Sep 15, 2020
0.2.5 Sep 9, 2020
0.2.3 Aug 16, 2020
0.2.2 Jun 23, 2020
0.1.2 Jun 12, 2020

#107 in Value formatting

Download history 1341/week @ 2023-02-03 1800/week @ 2023-02-10 1369/week @ 2023-02-17 1016/week @ 2023-02-24 1224/week @ 2023-03-03 1062/week @ 2023-03-10 1572/week @ 2023-03-17 1247/week @ 2023-03-24 1393/week @ 2023-03-31 1409/week @ 2023-04-07 1612/week @ 2023-04-14 1505/week @ 2023-04-21 1230/week @ 2023-04-28 776/week @ 2023-05-05 888/week @ 2023-05-12 1105/week @ 2023-05-19

4,279 downloads per month
Used in 15 crates (4 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

  • std