]> git.proxmox.com Git - proxmox-backup.git/blob - src/lib.rs
make pbs_tools::cert not depend on pbs-buildcfg
[proxmox-backup.git] / src / lib.rs
1 //! See the different modules for documentation on their usage.
2 //!
3 //! The [backup](backup/index.html) module contains some detailed information
4 //! on the inner workings of the backup server regarding data storage.
5
6 use std::path::PathBuf;
7
8 use pbs_buildcfg::configdir;
9 use pbs_tools::cert::CertInfo;
10
11 #[macro_use]
12 pub mod tools;
13
14 #[macro_use]
15 pub mod server;
16
17 #[macro_use]
18 pub mod backup;
19
20 pub mod config;
21
22 pub mod api2;
23
24 pub mod auth_helpers;
25
26 pub mod auth;
27
28 pub mod rrd;
29
30 pub mod tape;
31
32 pub mod acme;
33
34 pub mod client_helpers;
35
36 /// Get the server's certificate info (from `proxy.pem`).
37 pub fn cert_info() -> Result<CertInfo, anyhow::Error> {
38 CertInfo::from_path(PathBuf::from(configdir!("/proxy.pem")))
39 }