1#![deny(missing_docs)]
4#![cfg_attr(docsrs, feature(doc_auto_cfg))]
5
6pub mod algorithm;
7pub mod counter;
8pub mod digits;
9pub mod period;
10pub mod secret;
11pub mod skew;
12
13pub use algorithm::Algorithm;
14pub use counter::Counter;
15pub use digits::Digits;
16pub use period::Period;
17pub use secret::{Length, Owned as OwnedSecret, Secret};
18pub use skew::Skew;
19
20pub mod time;
21
22pub use time::{expect_now, now};
23
24pub mod int;
25
26pub mod base;
27pub mod hotp;
28pub mod totp;
29
30pub use base::{Base, Owned as OwnedBase};
31pub use hotp::{Hotp, Owned as OwnedHotp};
32pub use totp::{Owned as OwnedTotp, Totp};
33
34pub mod otp;
35
36pub use otp::{Otp, Owned as OwnedOtp, Type};
37
38#[cfg(feature = "auth")]
39pub mod auth;
40
41#[cfg(feature = "auth")]
42pub use auth::{Auth, Label, Owned as OwnedAuth, OwnedLabel, OwnedPart, Part};
43
44pub mod macros;