chore: update example
This commit is contained in:
parent
79533e2c78
commit
4358328663
3 changed files with 15 additions and 0 deletions
|
@ -16,6 +16,11 @@ use dotenv::dotenv;
|
||||||
config! {
|
config! {
|
||||||
DEBUG: bool => true,
|
DEBUG: bool => true,
|
||||||
HOST: String => "127.0.0.1".to_string(),
|
HOST: String => "127.0.0.1".to_string(),
|
||||||
|
|
||||||
|
NAMESPACE {
|
||||||
|
FOO: bool => true,
|
||||||
|
BAR: i32 => 10,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main () {
|
fn main () {
|
||||||
|
|
|
@ -14,6 +14,11 @@ We recommend you start with the [documentation].
|
||||||
config! {
|
config! {
|
||||||
DEBUG: bool => true,
|
DEBUG: bool => true,
|
||||||
HOST: String => "127.0.0.1".to_string(),
|
HOST: String => "127.0.0.1".to_string(),
|
||||||
|
|
||||||
|
NAMESPACE {
|
||||||
|
FOO: bool => true,
|
||||||
|
BAR: i32 => 10,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main () {
|
fn main () {
|
||||||
|
|
|
@ -12,6 +12,11 @@
|
||||||
//! config! {
|
//! config! {
|
||||||
//! DEBUG: bool => true,
|
//! DEBUG: bool => true,
|
||||||
//! HOST: String => "127.0.0.1".to_string(),
|
//! HOST: String => "127.0.0.1".to_string(),
|
||||||
|
//!
|
||||||
|
//! NAMESPACE {
|
||||||
|
//! FOO: bool => true,
|
||||||
|
//! BAR: i32 => 10,
|
||||||
|
//! }
|
||||||
//! }
|
//! }
|
||||||
//!
|
//!
|
||||||
//! fn main () {
|
//! fn main () {
|
||||||
|
|
Reference in a new issue