use crate::config_struct;
use schematic::{Config, DefaultValueResult};
use version_spec::VersionSpec;
pub const PROTO_CLI_VERSION: &str = "0.57.3";
fn default_version(_: &()) -> DefaultValueResult<VersionSpec> {
Ok(VersionSpec::parse(PROTO_CLI_VERSION).ok())
}
config_struct!(
#[derive(Config)]
pub struct ProtoConfig {
#[setting(default = default_version)]
pub version: VersionSpec,
}
);