You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I am distributing a CLI, the executable currently fails because the config files do not travel with the binary. I don't know if I am missing something obvious but is there a way to embed the configuration files referenced? Something like
use config::{Config,ConfigError,File};use rust_embed::RustEmbed;#[derive(RustEmbed)]#[folder = "assets/"]structAsset;let s = Config::builder().add_source(File::with_name("assets/config.yaml")).build()?;
s.try_deserialize()
The text was updated successfully, but these errors were encountered:
If I am distributing a CLI, the executable currently fails because the config files do not travel with the binary. I don't know if I am missing something obvious but is there a way to embed the configuration files referenced? Something like
The text was updated successfully, but these errors were encountered: