Skip to content

Commit 694e3ce

Browse files
authored
Merge pull request #148 from axodotdev/rework
feat: overhaul/rework remote and cleanup apis
2 parents 2992cc6 + ac91db1 commit 694e3ce

17 files changed

+622
-511
lines changed

Cargo.lock

Lines changed: 70 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,30 @@ license = "MIT OR Apache-2.0"
77
repository = "https://github.com/axodotdev/axoasset"
88

99
[features]
10+
# Default enable remote support
1011
default = ["remote"]
12+
# Enable SourceFile support for deserializing using the "toml" crate
1113
toml-serde = ["toml", "serde"]
14+
# Enable SourceFile support for deserializing using the "serde_json" crate
1215
json-serde = ["serde_json", "serde"]
16+
# Enable SourceFile support for deserializing using the "toml_edit" crate
1317
toml-edit = ["toml_edit"]
18+
# Enable reqwest-based http file fetching
1419
remote = ["reqwest", "image"]
20+
# On the off-chance native tls roots cause a problem, they can be opted out of
21+
# by only using remote-min
22+
tls-native-roots = ["reqwest/rustls-tls-native-roots"]
23+
# Enable support for reading and writing zips and tarballs
1524
compression = ["compression-tar", "compression-zip"]
25+
# Enable support for reading and writing tarballs
1626
compression-tar = ["flate2", "tar", "xz2", "zstd"]
27+
# Enable support for reading and writing zips
1728
compression-zip = ["zip"]
1829

1930
[dependencies]
2031
image = { version = "0.25.1", default-features = false, optional = true }
2132
mime = "0.3.16"
22-
reqwest = { version = ">=0.11.0", optional = true, default-features = false, features = ["json", "rustls-tls"] }
33+
reqwest = { version = ">=0.11.0", optional = true, default-features = false, features = ["json", "rustls-tls-webpki-roots"] }
2334
thiserror = "1.0.37"
2435
url = "2.5.0"
2536
miette = "7.0.0"

0 commit comments

Comments
 (0)