Releases: tjol/sprintf-rs
v0.4.3
- Allow width and precision to start with
0(e.g.%005.02f) (PR #17, thanks to Colin Snover (csnover))
https://crates.io/crates/sprintf/0.4.3
https://docs.rs/sprintf/0.4.3/sprintf/
v0.4.2
- Add support for truncating string arguments (e.g.
%1.3s) (PR #15, thanks to Samuel Collins (sd-collins))
https://crates.io/crates/sprintf/0.4.2
https://docs.rs/sprintf/0.4.2/sprintf/
v0.4.1
- Update to thiserror 2.0 (PR #11, thanks to Samuel Collins (sd-collins))
- Add support for padding strings and chars (e.g.
%10s) (PR #13, thanks to Samuel Collins (sd-collins))
https://crates.io/crates/sprintf/0.4.1
https://docs.rs/sprintf/0.4.1/sprintf/
v0.4.0
FormatElementnow borrows a&strinstead of owning aString, leading to fewer allocations and a significant performance improvement (PR #10, thanks to Samuel Collins (sd-collins)).- this is a breaking API change to the lower-level v0.2 API
- the original and primary (v0.1) API is unchanged
https://crates.io/crates/sprintf/0.4.0
https://docs.rs/sprintf/0.4.0/sprintf/
v0.3.1
- pointer types can be formatted with
%pin the same way asusize(PR #9, thanks to Flávio J. Saraiva (@flaviojs)
https://crates.io/crates/sprintf/0.3.1
https://docs.rs/sprintf/0.3.1/sprintf/
v0.3.0
- More standard string and character types (PR #7, thanks to Flávio J. Saraiva (@flaviojs))
- Support
CStringand&CStrfor%s, assuming the're UTF-8 encoded - Support
u8andi8(ASCII),u16(UCS-2) andu32(UCS-4) for%c
- Support
https://crates.io/crates/sprintf/0.3.0
https://docs.rs/sprintf/0.3.0/sprintf/
v0.2.1
Minor API changes:
- Expose the some of the
sprintf::parsermodule in the API to allow other to use theparse_format_stringfunction (PR #5, thanks to @DaBs) PrintfErrornow implementsstd::error::Error
https://crates.io/crates/sprintf/0.2.1
https://docs.rs/sprintf/0.2.1/sprintf/
v0.1.4
Bugfix release: fix rounding ll width specifier (PR #4, thanks to @codido)
https://crates.io/crates/sprintf/0.1.4
https://docs.rs/sprintf/0.1.4/sprintf/
v0.1.3
Bugfix release: fix rounding 99.99 -> 100.0 (#2)
https://crates.io/crates/sprintf/0.1.3
https://docs.rs/sprintf/0.1.3/sprintf/
v0.1.2
Bugfix release: fix formatting of large floats (PR #1, thanks to @pierd)
https://crates.io/crates/sprintf/0.1.2
https://docs.rs/sprintf/0.1.2/sprintf/