keyroost-import 0.7.0

otpauth:// URI parsing and bulk-import helpers for Molto2 programming.
Documentation
//! Import helpers for Molto2 programming: otpauth:// URI parsing and
//! (with the `bulk` feature) Aegis / 2FAS plaintext JSON parsers.
//! The `encrypted` feature additionally pulls in scrypt + AES-GCM for
//! decrypting password-protected Aegis vaults.

pub mod otpauth;

pub use otpauth::{parse as parse_otpauth, OtpAuth, OtpAuthError};

#[cfg(feature = "bulk")]
pub mod bulk;
#[cfg(feature = "bulk")]
pub use bulk::{
    aegis, parse_any as parse_bulk_any, parse_otpauth_list, twofas, BulkEntry, BulkError,
};

/// Google Authenticator `otpauth-migration://` export parsing. Lives under
/// the `bulk` feature because its output is `BulkEntry` batches; the
/// protobuf wire reader is vendored (~60 lines), no new dependencies.
#[cfg(feature = "bulk")]
pub mod migration;

#[cfg(feature = "encrypted")]
mod encrypted;