Skip to main content

passalong_core/
lib.rs

1//! Core library for `passalong`, a lightweight cross-platform clipboard and
2//! file sharing tool.
3//!
4//! This crate holds everything a front-end needs that is independent of the
5//! command line: configuration, the item model, storage traits, and
6//! telemetry. It must never depend on CLI or terminal crates so that future
7//! GUI and Android front-ends can reuse it.
8
9pub mod api_key;
10pub mod cache;
11pub mod clipboard;
12pub mod clock;
13pub mod config;
14pub mod crypto;
15pub mod download;
16pub mod encryption;
17pub mod fs;
18pub mod model;
19mod owner_only;
20pub mod random;
21pub mod retention;
22pub mod serve;
23pub mod store;
24pub mod telemetry;
25#[cfg(any(test, feature = "testing"))]
26pub mod testing;
27
28/// Version of this crate, shared by every crate in the workspace.
29pub const VERSION: &str = env!("CARGO_PKG_VERSION");
30
31#[cfg(test)]
32mod tests {
33    #[test]
34    fn version_is_the_workspace_version() {
35        assert_eq!(super::VERSION, "0.3.0");
36    }
37}