Skip to content

Commit

Permalink
Abandon attempt at no_std for now
Browse files Browse the repository at this point in the history
It was easy enough to get there by importing the `alloc` crate, but I don't
want to do that.
  • Loading branch information
fosskers committed Aug 21, 2020
1 parent 630b1f8 commit 7eb2235
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,17 @@
//! For full control over how the algorithm is configured, consider
//! [`totp_custom`](fn.totp_custom.html).
//!
//! # `no_std`
//!
//! As-is, this crate satisfies `no_std`. You will need to find the current time
//! without using `std::time::SystemTime`.
//!
//! # Resources
//! - [RFC6238: TOTP][RFC6238]
//! - [RFC6238 Errata](https://www.rfc-editor.org/errata_search.php?rfc=6238)
//!
//! [RFC6238]: https://tools.ietf.org/html/rfc6238
use core::clone::Clone;
use core::default::Default;
use digest::{BlockInput, FixedOutputDirty, Reset, Update};
use hmac::{Hmac, Mac, NewMac};
pub use sha1::Sha1;
pub use sha2::{Sha256, Sha512};

// TODO Make `no-std`!

/// 30 seconds.
pub const DEFAULT_STEP: u64 = 30;

Expand Down

0 comments on commit 7eb2235

Please sign in to comment.