From e6985dec4b8e2ef3800fcc9177e8a7348b42d572 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Sat, 22 Aug 2026 13:42:51 -0400 Subject: [PATCH] Update docs Remove the note about requiring nightly, and about requiring 1.99. The MSRV is set in Cargo.toml, and I'd rather not mention it in the documentation too since that will be an extra place to update in the future if the MSRV changes. Also remove a paragraph about wasm that may be less relevant now (see https://github.com/lights0123/printf-compat/issues/62), and that use case is basically covered by the previous bullet point. --- README.md | 8 +------- src/lib.rs | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 5a80928..074fbbd 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,7 @@ `printf` reimplemented in Rust -This is a complete reimplementation of `printf` in Rust. It requires the -`c_variadic` feature, which will be stable in Rust 1.99, but currently -requires the nightly toolchain. +This is a complete reimplementation of `printf` in Rust. Example use cases: - [Many C][sigrok-log] [libraries][libusb-log] provide a way to provide a custom log callback. With this crate, you can provide a pure Rust option, @@ -20,10 +18,6 @@ requires the nightly toolchain. formatting code, or use a minimal formatting library like [`ufmt`] or [`defmt`]. Don't need *every* single option given by `printf` format strings? No problem! Just don't implement it. -- Likewise, if you're using `wasm32-unknown-unknown` instead of emscripten - (as wasm-bindgen is only compatible with the former), you have no libc. If - you want to interface with a C library, you'll have to do it all yourself. - With this crate, that turns into 5 lines instead of hundreds for `printf`. ## Benefits diff --git a/src/lib.rs b/src/lib.rs index d0af260..0f89d65 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,6 @@ //! `printf` reimplemented in Rust //! -//! This is a complete reimplementation of `printf` in Rust. It requires the -//! `c_variadic` feature, which will be stable in Rust 1.99, but currently -//! requires the nightly toolchain. +//! This is a complete reimplementation of `printf` in Rust. Example use cases: //! //! - [Many C][sigrok-log] [libraries][libusb-log] provide a way to provide a //! custom log callback. With this crate, you can provide a pure Rust option, @@ -15,10 +13,6 @@ //! formatting code, or use a minimal formatting library like [`ufmt`] or //! [`defmt`]. Don't need *every* single option given by `printf` format //! strings? No problem! Just don't implement it. -//! - Likewise, if you're using `wasm32-unknown-unknown` instead of emscripten -//! (as wasm-bindgen is only compatible with the former), you have no libc. If -//! you want to interface with a C library, you'll have to do it all yourself. -//! With this crate, that turns into 5 lines instead of hundreds for `printf`. //! //! # Benefits //!