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
//! An unofficial interface to the LastPass API.

#![forbid(unsafe_code)]

#[cfg(test)]
#[macro_use]
extern crate pretty_assertions;

mod account;
mod app;
mod attachment;
pub mod endpoints;
mod id;
mod keys;
mod parser;
mod session;
mod share;
mod vault;

pub use account::Account;
pub use attachment::Attachment;
pub use id::Id;
pub use keys::{DecryptionError, DecryptionKey, LoginKey, PrivateKey};
pub use parser::VaultParseError;
pub use session::Session;
pub use vault::Vault;

// these guys aren't fully completed yet
pub(crate) use app::App;
pub(crate) use share::Share;

/// The default user agent to use when communicating with the LastPass server.
pub const DEFAULT_USER_AGENT: &str =
    concat!(env!("CARGO_PKG_NAME"), "-", env!("CARGO_PKG_VERSION"));