Registry / utility / strfmt

strfmt

JSON →
library0.2.5rscratesunverified

Rust library for formatting dynamic strings with named placeholders.

# Cargo.toml [dependencies] strfmt = "0.2.5"
INSTALL
IMPORT
SIG · STRFMT
S
strfmt
utilityrustv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

strfmt
use strfmt::strfmt;

Formats a string with named placeholders using a HashMap.

use strfmt::strfmt; use std::collections::HashMap; fn main() { let mut vars = HashMap::new(); vars.insert("name".to_string(), "world".to_string()); let result = strfmt("Hello, {name}!", &vars).unwrap(); println!("{}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
strfmt — cargo add strfmt · libregistry