|
1 | 1 | [package] |
2 | 2 | name = "fast-down" |
| 3 | +version = "3.5.1" |
| 4 | +authors.workspace = true |
| 5 | +edition.workspace = true |
3 | 6 | description = "Download everything fast" |
4 | | -version = "3.5.0" |
5 | | -readme = "README.md" |
6 | 7 | documentation = "https://docs.rs/fast-down" |
7 | | -keywords = ["download", "fast", "parallel", "concurrency"] |
8 | | -categories = ["concurrency", "asynchronous", "network-programming", "no-std"] |
9 | | -edition.workspace = true |
10 | | -authors.workspace = true |
11 | | -license.workspace = true |
12 | | -repository.workspace = true |
| 8 | +readme = "README.md" |
13 | 9 | homepage.workspace = true |
| 10 | +repository.workspace = true |
| 11 | +license.workspace = true |
| 12 | +keywords = ["concurrency", "download", "fast", "parallel"] |
| 13 | +categories = ["asynchronous", "concurrency", "network-programming", "no-std"] |
14 | 14 |
|
15 | 15 | [dependencies] |
| 16 | +aria2-gid = { version = "0.1.0", optional = true } |
| 17 | +bytes.workspace = true |
| 18 | +content_disposition = { version = "0.4.0", optional = true } |
16 | 19 | fast-pull.workspace = true |
17 | 20 | futures.workspace = true |
18 | | -url.workspace = true |
19 | | -content_disposition = { version = "0.4.0", optional = true } |
20 | | -urlencoding = { version = "2.1.3", optional = true } |
21 | | -bytes.workspace = true |
22 | | -reqwest = { version = "0.12.22", default-features = false, optional = true } |
23 | | -thiserror.workspace = true |
24 | | -tokio = { version = "1.47.1", default-features = false } |
25 | 21 | httpdate = { version = "1.0.3", optional = true } |
26 | | -spin = { workspace = true, optional = true } |
| 22 | +inherit-config = { version = "0.1.1", optional = true } |
| 23 | +inherit-config-derive = { version = "0.1.1", optional = true } |
| 24 | +kanal = { workspace = true, optional = true } |
| 25 | +reqwest = { version = "0.12.22", default-features = false, features = [ |
| 26 | + "brotli", |
| 27 | + "deflate", |
| 28 | + "gzip", |
| 29 | + "http2", |
| 30 | + "rustls-tls", |
| 31 | + "system-proxy", |
| 32 | + "zstd" |
| 33 | +], optional = true } |
27 | 34 | sanitize-filename = { version = "0.6.0", optional = true } |
28 | | - |
29 | | -[features] |
30 | | -default = ["reqwest", "sanitize-filename"] |
31 | | -http = ["dep:content_disposition", "dep:urlencoding", "dep:spin"] |
32 | | -reqwest = ["http", "dep:reqwest", "dep:httpdate"] |
33 | | -sanitize-filename = ["dep:sanitize-filename"] |
| 35 | +spin = { workspace = true, optional = true } |
| 36 | +thiserror.workspace = true |
| 37 | +tokio = { version = "1.47.1", default-features = false } |
| 38 | +url.workspace = true |
| 39 | +urlencoding = { version = "2.1.3", optional = true } |
34 | 40 |
|
35 | 41 | [dev-dependencies] |
36 | | -tokio = { version = "1.47.1", features = [ |
37 | | - "rt", |
| 42 | +mockito = "1.7.0" |
| 43 | +tokio = { version = "1.47.1", default-features = false, features = [ |
38 | 44 | "io-util", |
| 45 | + "rt", |
39 | 46 | "test-util", |
40 | | -], default-features = false } |
41 | | -mockito = "1.7.0" |
| 47 | +] } |
| 48 | + |
| 49 | +[features] |
| 50 | +default = ["reqwest", "sanitize-filename"] |
| 51 | +downloader = [ |
| 52 | + "dep:aria2-gid", |
| 53 | + "dep:inherit-config", |
| 54 | + "dep:inherit-config-derive", |
| 55 | + "dep:kanal", |
| 56 | + "reqwest" |
| 57 | +] |
| 58 | +http = ["dep:content_disposition", "dep:spin", "dep:urlencoding"] |
| 59 | +reqwest = ["dep:httpdate", "dep:reqwest", "http"] |
| 60 | +sanitize-filename = ["dep:sanitize-filename"] |
0 commit comments