NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #3205 most downloaded on crates.io
RFC-compliant TOTP implementation with ease of use as a goal and additional QoL features.
Last release 2 months ago
06 Aug 2026
Release timing varies
gaps range from 3 weeks to 11 months
Some releases are documented
notes for 14 of 27 stable releases
24 versions withdrawn
withdrawn after publishing
6 years old
51 releases · first in 2020
One column per quarter.
This is a BIG API change. Please check MIGRATION.md for more details.
This is a BIG API change. Please check MIGRATION.md for more details.
2024.[no_std] support with #87 and #88.Totp struct.Secret serializes to an unpadded base32 string in human-readable formats (JSON, TOML, ...) and to a raw byte string in binary formats. Deserialization accepts both, plus integer sequences from formats without a native byte type.Totp now implements PartialEq and Eq, using Secret's constant-time comparison for the secret field.Parse algorithm from URLs more consistently. #90
Secret gets zeroized more consistently. #81
This last month has seen a lot of activity on the big 6.0. No date yet, but it has gone from a nebulous "it will happen"
to a "most refactor has been done, a lot of code has been either removed or heavily changed, and the API is becoming clearer".
MSRV has been set to Rust 1.66 .
1.66.base32 crate to 0.5.constant_time_eq crate to 0.3.rand crate to 0.9.This is probably the last version update before the big 6.0, which will be a big rewrite, and the 2024 edition.
The goal will be to expose the same feature as before, but in a more harmonized and idiomatic way.
qrcodegen-image has now been moved to its own repo .
Nothing published for this version
Documentation now indicates required feature.
Full Changelog: v5.4.0...v5.5.0
SecretParseError now implements std::Error .
SecretParseError now implements std::error::Error.TOTP::get_qr was deprecated in favour of TOTP::get_qr_base64 and TOTP::get_qr_png.
qrcodegen-image subcrate to handle image creation, as the wrapper is actually nice and could be used in placed not related to totp-rs. (#61)TOTP::get_qr was deprecated in favour of TOTP::get_qr_base64 and TOTP::get_qr_png.### Changes - Updated url crate to 2.4.
url crate to 2.4.Removed unnecessary allocation for Secret.Display for the Raw variant.
Secret.Display for the Raw variant.Fix skew overflowing if value is over 128.
Normalize dependencies specifications since cargo uses range dependency by default.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
TotpUrlError was unexported. This is now fixed.
TotpUrlError was unexported. This is now fixed. (#29)base32 was reexported instead. It is now private, and will need to be an explicit dependency for the user to encore/decode base32 data.Secret comparison is now done in constant time.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Disabled default image features to only enable png
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →