]> git.proxmox.com Git - proxmox-backup.git/blame - src/buildcfg.rs
src/bin/pxar.rs: allow to pass paths and match patterns as args to pxar extract
[proxmox-backup.git] / src / buildcfg.rs
CommitLineData
99be8844
DM
1//! Exports configuration data from the build system
2
3/// The configured configuration directory
9f4962d3
WB
4pub const CONFIGDIR: &'static str = env!("PROXMOX_CONFIGDIR");
5
99be8844
DM
6/// Prepend configuration directory to a file name
7///
8/// This is a simply way to get the full path for configuration files.
9/// #### Example:
10/// ```
11/// # #[macro_use] extern crate proxmox_backup;
12/// let cert_path = configdir!("/proxy.pfx");
13/// ```
9f4962d3
WB
14#[macro_export]
15macro_rules! configdir {
16 ($subdir:expr) => (concat!(env!("PROXMOX_CONFIGDIR"), $subdir))
17}