1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Webauthn-rs - Webauthn for Rust Server Applications
//!
//! Webauthn is a standard allowing communication between servers, browsers and authenticators
//! to allow strong, passwordless, cryptographic authentication to be performed. Webauthn
//! is able to operate with many authenticator types, such as U2F.
//!
//! This library aims to provide a secure Webauthn implementation that you can
//! plug into your application, so that you can provide Webauthn to your users.
//!
//! For examples, see our examples folder.
//!
//! To use this library yourself, you will want to reference the `WebauthnConfig` trait to
//! develop site specific policy and configuration, and the `Webauthn` struct for Webauthn
//! interactions.

#![deny(warnings)]
#![warn(unused_extern_crates)]
#![warn(missing_docs)]

#[cfg(feature = "core")]
#[macro_use]
extern crate serde_derive;

#[macro_use]
extern crate nom;

#[cfg(feature = "core")]
#[macro_use]
mod macros;

#[cfg(feature = "core")]
mod constants;

#[cfg(feature = "core")]
pub mod attestation;
#[cfg(feature = "core")]
pub mod core;
#[cfg(feature = "core")]
pub mod crypto;
#[cfg(feature = "core")]
pub mod ephemeral;

pub mod base64_data;
pub mod error;
pub mod proto;

#[cfg(feature = "core")]
pub use crate::core::*;