MCPcopy Create free account
hub / github.com/Botloader/botloader / load_config

Function load_config

components/common/src/lib.rs:27–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25pub const VERSION: &str = env!("BOTLOADER_VERSION");
26
27pub fn load_config<T: Parser>() -> T {
28 match dotenv::dotenv() {
29 Ok(_) => {}
30 Err(dotenv::Error::Io(_)) => {} // ignore io errors
31 Err(e) => panic!("failed loading dotenv file: {e}"),
32 }
33
34 T::parse()
35}
36
37pub fn setup_metrics(metrics_listen_addr: &str) {
38 let (recorder, exporter) = PrometheusBuilder::new()

Callers 3

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected