Create the doc feature

This commit is contained in:
Anas Elgarhy 2023-02-24 00:56:06 +02:00
parent d5a05a2223
commit d38c6b2f4e
No known key found for this signature in database
GPG Key ID: 0501802A1D496528
2 changed files with 12 additions and 1 deletions

10
Cargo.lock generated
View File

@ -190,6 +190,15 @@ dependencies = [
"terminal_size",
]
[[package]]
name = "clap-markdown"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "325f50228f76921784b6d9f2d62de6778d834483248eefecd27279174797e579"
dependencies = [
"clap",
]
[[package]]
name = "clap_derive"
version = "4.1.0"
@ -217,6 +226,7 @@ name = "cmus-notify"
version = "0.1.0"
dependencies = [
"clap",
"clap-markdown",
"confy",
"id3",
"image",

View File

@ -17,6 +17,7 @@ log = { version = "0.4.17", optional = true }
pretty_env_logger = { version = "0.4.0", optional = true }
thiserror = "1.0.38"
parse-display = "0.8.0"
clap-markdown = { version = "0.1.3", optional = true }
[dependencies.clap]
version = "4.1.4"
@ -30,7 +31,7 @@ features = ["toml_conf"]
[features]
lyrics = ["lrc"]
debug = ["log", "pretty_env_logger"]
docs = ["clap-markdown"]
[dev-dependencies]
test-context = "0.1.4"
# clap-markdown = "0.1.3"