{"id":73072,"library":"vsprintf","title":"vsprintf","description":"Rust bindings to the libc vsprintf function for formatted string output.","status":"active","version":"2.0.0","language":"rust","source_language":null,"source_url":"https://github.com/dylanmckay/vsprintf","tags":["ffi","formatting","libc","unsafe"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nvsprintf = \"2.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add vsprintf","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"vsprintf","correct":"use vsprintf::vsprintf;"}],"quickstart":{"code":"use vsprintf::vsprintf;\n\nfn main() {\n    let result = vsprintf!(\"Hello %s\", \"world\");\n    println!(\"{}\", result);\n}","lang":"rust","description":"Formats a string using vsprintf-like syntax."},"warnings":[{"fix":"Ensure format string matches arguments exactly; prefer safe Rust formatting macros when possible.","message":"Unsafe FFI: vsprintf is inherently unsafe and can cause buffer overflows if format string and arguments mismatch.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'bind':3 'ffi':13 'format':10,14 'function':8 'libc':6,15 'output':12 'rust':2 'string':11 'unsaf':16 'vsprintf':1,7","created_at":"2026-06-17T18:47:18.560320+00:00","updated_at":"2026-06-17T18:47:18.560320+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/dylanmckay/vsprintf","github":"https://github.com/dylanmckay/vsprintf","docs":"https://docs.rs/vsprintf/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}