[package] name = "story-dl" version = "0.6.0" authors = [ "Txuritan " ] license = "MIT OR Apache-2.0" description = "Story web scraping" readme = "README.md" documentation = "https://docs.rs/story_dl" repository = "https://gitlab.com/Txuritan/story-dl" edition = "2018" [badges] maintenance = { status = "experimental" } [[bin]] name = "story-dl" path = "src/main.rs" doc = false [lib] name = "story_dl" path = "src/lib.rs" [features] default = [ "cli" ] cli = [ "anyhow", "clap", "epub", "json", "messagepack", "tokio/macros", "cli_logging" ] cli_logging = [ "tracing-log", "tracing-futures", "tracing-subscriber" ] epub = [ "askama", "pulldown-cmark", "uuid", "zip" ] json = [ "serde", "serde", "serde_json", "chrono/serde" ] messagepack = [ "serde", "serde", "rmps", "chrono/serde" ] [dependencies] # Core async-trait = "0.1" bytes = "0.5" chrono = "0.4" html5ever = "0.25" markup5ever = "0.10" markup5ever_arcdom = "0.1" isahc = "0.9" lazy_static = "1.4" rand = "0.7" thiserror = "1.0" tracing = "0.1" tokio = { version = "0.2", features = [ "blocking" ] } # Core/EPub askama = { version = "0.10", optional = true, default-features = false } pulldown-cmark = { version = "0.7", optional = true, default-features = false } uuid = { version = "0.8", features = [ "v4" ], optional = true } zip = { version = "0.5", optional = true } # Core/JSON serde_json = { version = "1.0", optional = true } # Core/MessagePack rmps = { package = "rmp-serde", version = "0.14", optional = true } # CLI anyhow = { version = "1.0", optional = true } clap = { version = "2.33", optional = true, features = [ "wrap_help" ] } tracing-log = { version = "0.1", optional = true } tracing-futures = { version = "0.2", optional = true } tracing-subscriber = { version = "0.2", optional = true } serde = { version = "1.0", optional = true, features = [ "derive" ] } [dev-dependencies] chrono = "0.4" pretty_assertions = "0.6"