0.1.0
This commit is contained in:
15
kb-config/Cargo.toml
Normal file
15
kb-config/Cargo.toml
Normal file
@@ -0,0 +1,15 @@
|
||||
# file: kb-config/Cargo.toml
|
||||
# version: 1
|
||||
|
||||
[package]
|
||||
name = "kb-config"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
publish.workspace = true
|
||||
|
||||
[dependencies]
|
||||
kb-core = { path = "../kb-core" }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
23
kb-config/src/lib.rs
Normal file
23
kb-config/src/lib.rs
Normal file
@@ -0,0 +1,23 @@
|
||||
// file: kb-config/src/lib.rs
|
||||
// version: 1
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
//! Configuration contracts for Khadhroony Bot3.
|
||||
|
||||
/// Minimal application configuration used during the migration.
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub struct AppConfig {
|
||||
/// Active profile name.
|
||||
pub active_profile: std::string::String,
|
||||
}
|
||||
|
||||
impl std::default::Default for AppConfig {
|
||||
fn default() -> Self {
|
||||
return Self {
|
||||
active_profile: std::string::String::from("development"),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user