# 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 = "download_rs_reborned" version = "0.2.2" authors = [ "fengzhongyun1992 <1677658490@qq.com>", "bic-potato ", ] autotests = true description = "a download lib" documentation = "https://docs.rs/download_rs" readme = "README.md" keywords = ["download"] license = "MIT/Apache-2.0" repository = "https://github.com/bic-potato/download_rs" [package.metadata.docs.rs] all-features = true [lib] name = "download_rs" path = "src/lib.rs" [[example]] name = "sync_download_example" path = "examples/sync_download_example.rs" required-features = ["sync_download"] [[example]] name = "async_download_example" path = "examples/async_download_example.rs" required-features = ["async_download"] [[example]] name = "async_download_default_example" path = "examples/async_download_default_example.rs" required-features = ["async_download"] [[test]] name = "sync_download" path = "tests/sync_download.rs" required-features = ["sync_download"] [[test]] name = "async_download" path = "tests/async_download.rs" required-features = ["async_download"] [[test]] name = "async_download_default" path = "tests/async_download_default.rs" required-features = ["async_download"] [dependencies.indicatif] version = "0.16.2" optional = true [dependencies.reqwest] version = "0.11.9" features = ["blocking"] [dependencies.tokio] version = "1.16.1" features = ["full"] optional = true [features] async_download = [ "tokio", "indicatif", ] default = ["async_download"] full = [ "sync_download", "async_download", ] sync_download = []