mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:03:57 +08:00
7002571cf8
This adds a crate containing a new implementation of printf, ported from musl. This has some advantages: - locale support is direct instead of being "applied after". - No dependencies on libc printf. No unsafe code at all. - No more WideWrite - just uses std::fmt::Write. - Rounding is handled directly in all cases, instead of relying on Rust and/or libc. - No essential dependency on WString. - Supports %n. - Implementation is more likely to be correct since it's based on a widely used printf, instead of a low-traffic Rust crate. - Significantly faster.
9 lines
117 B
TOML
9 lines
117 B
TOML
[package]
|
|
name = "printf"
|
|
edition = "2021"
|
|
version = "0.1.0"
|
|
|
|
[dependencies]
|
|
libc = "= 0.2.151"
|
|
widestring = "1.0.2"
|