Open virtualritz opened 9 months ago
Hi! There is indeed several... Less that fortunate choices of names and exposed API I would like to finally fix, optimally with 6.0 which will probably be more maintenance than actual business logic (in addition to move qrcodegen-image
to its own repo).
In addition to TOTP's naming, I would like to review some of the errors (namely Rfc6238Error
and Rfc6238
's API).
Before adding deprecated notes/new API, I'd like to have a clearer, fuller picture of everything, but you are absolutely right!
Maybe the next major release could be a good point to overhaul naming?
Rename
TOTP
toTotp
?Swap
get_
prefixes forto_
prefixes?Would you consider a PR that:
TOTP
toTotp
.type
alias,TOTP
, forTotp
, with a#[deprecated()]
note.get_
prefix from the resp. methods forto_
.get_
prefix that just call the new ones and are marked#[deprecated()]
and#[inline(always)]
.1.i. and 2.i. would guarantee that old code compiles w/o changes but spits out resp. warnings.