Use a custom parser for commands

The removes the dependency for `nom` as commands are now parsed with
its own tiny parser.
This commit is contained in:
finga 2021-11-17 13:17:15 +01:00
parent 4b9186b10d
commit 4d39488c32
4 changed files with 89 additions and 109 deletions

20
Cargo.lock generated
View file

@ -738,12 +738,6 @@ version = "0.3.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
[[package]]
name = "minimal-lexical"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "mio"
version = "0.7.14"
@ -786,17 +780,6 @@ dependencies = [
"version_check",
]
[[package]]
name = "nom"
version = "7.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b1d11e1ef389c76fe5b81bcaf2ea32cf88b62bc494e19f493d0b30e7a930109"
dependencies = [
"memchr",
"minimal-lexical",
"version_check",
]
[[package]]
name = "ntapi"
version = "0.3.6"
@ -1933,7 +1916,7 @@ dependencies = [
[[package]]
name = "webhookey"
version = "0.1.3"
version = "0.1.5"
dependencies = [
"anyhow",
"clap",
@ -1943,7 +1926,6 @@ dependencies = [
"hmac",
"ipnet",
"log",
"nom",
"regex",
"rocket",
"run_script",