Registry / utility / printf-compat

printf-compat

JSON →
library0.4.0rscratesunverified

A Rust reimplementation of the C printf family of functions.

# Cargo.toml [dependencies] printf-compat = "0.4.0"
INSTALL
IMPORT
SIG · PRINTF-COMPAT
P
printf-compat
utilityrustv0.4.0
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.

printf
use printf_compat::printf;

Print a formatted string using printf syntax.

use printf_compat::printf; fn main() { printf("Hello, %s!\n", "world"); }
Debug
Known issues
gotchaFormat string vulnerabilities if user input is used as the format string.
fix
Always use a fixed format string and pass user input as arguments.
affects: >=0.1.0
Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
printf-compat — cargo add printf-compat · libregistry