prs_lib/
lib.rs

1pub mod crypto;
2pub(crate) mod git;
3pub mod store;
4pub mod sync;
5#[cfg(all(feature = "tomb", target_os = "linux"))]
6pub mod systemd_bin;
7#[cfg(all(feature = "tomb", target_os = "linux"))]
8pub mod tomb;
9#[cfg(all(feature = "tomb", target_os = "linux"))]
10pub(crate) mod tomb_bin;
11pub mod types;
12pub mod util;
13
14#[cfg(test)]
15extern crate quickcheck;
16#[cfg(test)]
17#[macro_use(quickcheck)]
18extern crate quickcheck_macros;
19#[macro_use]
20extern crate lazy_static;
21
22// Re-exports
23pub use crypto::{Key, recipients::Recipients};
24pub use store::{Secret, Store};
25pub use types::{Ciphertext, Plaintext};
26
27use crate::crypto::{Config, Proto};
28
29/// Default password store directory.
30#[cfg(not(windows))]
31pub const STORE_DEFAULT_ROOT: &str = "~/.password-store";
32#[cfg(windows)]
33pub const STORE_DEFAULT_ROOT: &str = "~\\.password-store";
34
35/// Default proto config.
36// TODO: remove when multiple protocols are supported.
37const CONFIG: Config = Config {
38    proto: Proto::Gpg,
39    gpg_tty: false,
40    verbose: false,
41};