# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "libwebnovel" version = "0.9.2" authors = ["Paul Ollivier "] build = false exclude = [ "release.sh", ".pre-commit-config.yaml", ] autobins = false autoexamples = false autotests = false autobenches = false description = "A Rust crate enabling users to get chapters of a webnovel, with multiple available backends." homepage = "https://codeberg.org/paulollivier/libwebnovel" readme = "README.md" keywords = [ "novel", "scrapper", "webnovel", ] categories = ["data-structures"] license = "AGPL-3.0-or-later" repository = "https://codeberg.org/paulollivier/libwebnovel" [package.metadata.docs.rs] all-features = true [lib] name = "libwebnovel" path = "src/lib.rs" [[bin]] name = "rr-gen-anti-theft-list" path = "src/bin/rr-anti-theft-list-generator.rs" required-features = [ "helper_scripts", "royalroad", ] [dependencies.chrono] version = "0.4.38" [dependencies.diff] version = "0.1.13" optional = true [dependencies.getset] version = "0.1.2" [dependencies.html-escape] version = "0.2.13" optional = true [dependencies.log] version = "0.4.22" [dependencies.pretty_env_logger] version = "0.5.0" optional = true [dependencies.regex] version = "1.10.6" [dependencies.reqwest] version = "0.12.7" features = [ "blocking", "gzip", ] optional = true [dependencies.scraper] version = "0.20.0" optional = true [dependencies.strum] version = "0.26.3" features = ["derive"] [dependencies.thiserror] version = "1.0.63" [dev-dependencies.indoc] version = "2.0.5" [dev-dependencies.tempfile] version = "3.12.0" [dev-dependencies.test-log] version = "0.2.16" [features] all = [ "default", "libread", ] default = [ "royalroad", "freewebnovel", "lightnovelworld", ] freewebnovel = [ "dep:reqwest", "dep:scraper", "dep:html-escape", ] helper_scripts = [ "dep:diff", "dep:pretty_env_logger", ] libread = ["freewebnovel"] lightnovelworld = [ "dep:reqwest", "dep:scraper", "dep:html-escape", ] royalroad = [ "dep:reqwest", "dep:scraper", "dep:html-escape", ]