autofill/lib.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 */
5
6#![allow(unknown_lints)]
7#![warn(rust_2018_idioms)]
8
9pub mod db;
10pub mod encryption;
11pub mod error;
12pub mod sync;
13
14// Re-export stuff the sync manager needs.
15pub use crate::db::store::get_registered_sync_engine;
16
17// Expose stuff needed by the uniffi generated code.
18use crate::db::models::address::*;
19use crate::db::models::credit_card::*;
20use crate::db::store::Store;
21use crate::encryption::{create_autofill_key, decrypt_string, encrypt_string};
22pub use error::{ApiResult, AutofillApiError, Error, Result};
23
24uniffi::include_scaffolding!("autofill");