From 55c99f5b5f294823a990face255ed35f14461471 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Fri, 17 Dec 2021 16:42:01 +0100 Subject: [PATCH] toml config --- Cargo.lock | 19 +++++++++++++++++++ Cargo.toml | 2 ++ config.toml | 9 +++++++++ config.yaml | 4 ---- 4 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 config.toml delete mode 100644 config.yaml diff --git a/Cargo.lock b/Cargo.lock index 82a5be9..31d7cb9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,25 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "serde" +version = "1.0.132" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b9875c23cf305cd1fd7eb77234cbb705f21ea6a72c637a5c6db5fe4b8e7f008" + [[package]] name = "service-manager" version = "0.1.0" +dependencies = [ + "serde", + "toml", +] + +[[package]] +name = "toml" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" +dependencies = [ + "serde", +] diff --git a/Cargo.toml b/Cargo.toml index 87a313f..199000e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,5 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +serde = "1.0.132" +toml = "0.5.8" diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..642c28b --- /dev/null +++ b/config.toml @@ -0,0 +1,9 @@ +[hello] +command = "echo hello" + +[sleep] +command = "sleep 48590234" + +[environment] +command = "echo $HELLO && sleep 37852375" +env = { HELLO = "uwu hi ヾ(•ω•`)o" } \ No newline at end of file diff --git a/config.yaml b/config.yaml deleted file mode 100644 index 4b5223d..0000000 --- a/config.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- start: echo "Hello World!" -- start: echo $HELLO - env: - HELLO: hi world \ No newline at end of file