summaryrefslogtreecommitdiffstats
path: root/examples/file-yaml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/file-yaml')
-rw-r--r--examples/file-yaml/Cargo.toml6
-rw-r--r--examples/file-yaml/Settings.yaml3
-rw-r--r--examples/file-yaml/src/main.rs12
3 files changed, 0 insertions, 21 deletions
diff --git a/examples/file-yaml/Cargo.toml b/examples/file-yaml/Cargo.toml
deleted file mode 100644
index 70176b1..0000000
--- a/examples/file-yaml/Cargo.toml
+++ /dev/null
@@ -1,6 +0,0 @@
-[package]
-name = "file-yaml"
-version = "0.1.0"
-
-[dependencies]
-config = { path = "../..", default-features = false, features = ["yaml"] }
diff --git a/examples/file-yaml/Settings.yaml b/examples/file-yaml/Settings.yaml
deleted file mode 100644
index d92f6ad..0000000
--- a/examples/file-yaml/Settings.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-debug: false
-pi: 3.14159
-weight: 150
diff --git a/examples/file-yaml/src/main.rs b/examples/file-yaml/src/main.rs
deleted file mode 100644
index 6d72976..0000000
--- a/examples/file-yaml/src/main.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-extern crate config;
-
-fn main() {
- let mut c = config::Config::new();
-
- // Read configuration from "Settings.yaml"
- c.merge(config::File::new("Settings", config::FileFormat::Yaml)).unwrap();
-
- println!("debug = {:?}", c.get("debug"));
- println!("pi = {:?}", c.get("pi"));
- println!("weight = {:?}", c.get("weight"));
-}