# 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 = "mangadex-api" version = "3.4.1" authors = [ "gondolyr ", "tonymushah tonymushahdev06@yahoo.com", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "SDK for the MangaDex API" readme = "README.md" keywords = [ "api", "client", "mangadex", "sdk", ] categories = ["api-bindings"] license = "MIT OR Apache-2.0" repository = "https://github.com/tonymushah/mangadex-api" resolver = "2" [package.metadata.docs.rs] rustdoc-args = ["--document-private-items"] [lib] name = "mangadex_api" path = "src/lib.rs" [[example]] name = "download_chapter" path = "examples/download_chapter.rs" [[example]] name = "download_chapter_stream" path = "examples/download_chapter_stream.rs" [[example]] name = "download_chapter_via_utils_stream" path = "examples/download_chapter_via_utils_stream.rs" required-features = ["utils"] [[example]] name = "download_chapter_via_utils_stream_with_checker" path = "examples/download_chapter_via_utils_stream_with_checker.rs" required-features = ["utils"] [[example]] name = "download_chapter_via_utils_vecs" path = "examples/download_chapter_via_utils_vecs.rs" required-features = ["utils"] [[example]] name = "download_cover_via_utils" path = "examples/download_cover_via_utils.rs" required-features = ["utils"] [[example]] name = "download_cover_via_utils_manga_id" path = "examples/download_cover_via_utils_manga_id.rs" required-features = ["utils"] [[example]] name = "fetch_popular_titles" path = "examples/fetch_popular_titles.rs" [[example]] name = "getting-started" path = "examples/getting-started.rs" [[example]] name = "latest_updates" path = "examples/latest_updates.rs" [[example]] name = "legacy_cover_download" path = "examples/legacy_cover_download.rs" [[example]] name = "legacy_download_chapter" path = "examples/legacy_download_chapter.rs" [[example]] name = "login" path = "examples/login.rs" [[example]] name = "manga_covers" path = "examples/manga_covers.rs" [[example]] name = "map_legacy_ids" path = "examples/map_legacy_ids.rs" [[example]] name = "oauth_login" path = "examples/oauth_login.rs" required-features = ["oauth"] [[example]] name = "oauth_login_refresh" path = "examples/oauth_login_refresh.rs" required-features = ["oauth"] [[example]] name = "oauth_manga_feed" path = "examples/oauth_manga_feed.rs" required-features = [ "oauth", "serialize", ] [[example]] name = "search_manga_by_title" path = "examples/search_manga_by_title.rs" [[example]] name = "search_manga_by_title_with_reference_expansion" path = "examples/search_manga_by_title_with_reference_expansion.rs" [[example]] name = "setting_a_custom_user_agent" path = "examples/setting_a_custom_user_agent.rs" [[example]] name = "upload" path = "examples/upload.rs" [[example]] name = "v5_demo" path = "examples/v5_demo.rs" [dependencies.async-stream] version = "0.3" optional = true [dependencies.bytes] version = "1.6" optional = true [dependencies.derive_builder] version = "0.20" [dependencies.futures] version = "0.3" optional = true [dependencies.getset] version = "0" optional = true [dependencies.mangadex-api-schema] version = "0.10" default-features = false package = "mangadex-api-schema-rust" [dependencies.mangadex-api-types] version = "0.10" default-features = false package = "mangadex-api-types-rust" [dependencies.reqwest] version = "0.12" features = [ "cookies", "json", "multipart", "rustls-tls", ] [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.serde_qs] version = "0.13" [dependencies.thiserror] version = "2" [dependencies.time] version = "0.3" features = [ "serde-human-readable", "large-dates", "local-offset", ] [dependencies.tokio] version = "1" features = ["time"] optional = true default-features = false [dependencies.tokio-stream] version = "0.1" optional = true [dependencies.url] version = "2.5" features = ["serde"] [dependencies.uuid] version = "1.8" features = [ "serde", "v4", ] [dev-dependencies.anyhow] version = "1" [dev-dependencies.clap] version = "4.5.4" features = ["derive"] [dev-dependencies.fake] version = "3.0.0" [dev-dependencies.serde_json] version = "1" [dev-dependencies.serde_urlencoded] version = "0.7" [dev-dependencies.tokio] version = "1" features = [ "macros", "rt-multi-thread", ] default-features = false [dev-dependencies.wiremock] version = "0.6" [features] custom_list_v2 = [] default = ["oauth"] deserializable-endpoint = ["dep:getset"] legacy-auth = [] legacy-user-delete = [] multi-thread = ["futures"] non_exhaustive = [ "mangadex-api-schema/non_exhaustive", "mangadex-api-types/non_exhaustive", ] oauth = [] rw-multi-thread = ["tokio/sync"] serialize = ["mangadex-api-schema/serialize"] tokio-multi-thread = ["tokio/sync"] utils = [ "dep:bytes", "dep:tokio", "dep:async-stream", "dep:tokio-stream", "reqwest/stream", ]