1
2
3
4
5
6
7
8
9
use std::env;

pub(crate) fn package_name() -> String {
    env::var("CARGO_PKG_NAME").unwrap_or_else(|_| "<unknown>".to_string())
}

pub(crate) fn crate_name() -> String {
    env::var("CARGO_CRATE_NAME").unwrap_or_else(|_| "<unknown>".to_string())
}