detsys_ids_client/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
mod builder;
pub mod checkin;
mod collator;
mod configuration_proxy;
mod ds_correlation;
mod identity;
mod json_string;
mod recorder;
mod submitter;
pub mod system_snapshot;
pub mod transport;
mod worker;

pub use builder::Builder;
pub use identity::{DeviceId, DistinctId};
pub use recorder::Recorder;
pub use worker::Worker;

pub type Map = serde_json::Map<String, serde_json::Value>;

#[macro_export]
macro_rules! builder {
    () => {{
        let mut builder = Builder::new();
        builder.add_fact("cargo_pkg_name", env!("CARGO_PKG_NAME"));
        builder.add_fact("$app_version", env!("CARGO_PKG_VERSION"));
        builder.add_fact("$app_name", env!("CARGO_CRATE_NAME"));
        builder
    }};
}