Skip to content

Commit

Permalink
Use reqwest rustls-tls
Browse files Browse the repository at this point in the history
Easier cross-compiling
Closes #1569
  • Loading branch information
Keats committed Feb 16, 2023
1 parent d828d52 commit 61570bb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 160 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ This will error if 2 values are set
- Enable locale date formatting for the Tera `date` filter
- Cachebust fingerprint is now only 20 chars long
- Add `text` alias for plain text highlighting (before, only `txt` was used)
- Switch reqwest TLS backend to rustls-tls


## 0.16.1 (2022-08-14)
Expand Down
152 changes: 0 additions & 152 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ libs = { path = "components/libs" }
same-file = "1"

[features]
default = ["rust-tls"]
rust-tls = ["libs/rust-tls"]
native-tls = ["libs/native-tls"]
indexing-zh = ["libs/indexing-zh"]
indexing-ja = ["libs/indexing-ja"]

Expand Down
6 changes: 1 addition & 5 deletions components/libs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ quickxml_to_serde = "0.5"
rayon = "1"
regex = "1"
relative-path = "1"
reqwest = { version = "0.11", default-features = false, features = ["blocking"] }
reqwest = { version = "0.11", default-features = false, features = ["blocking", "rustls-tls"] }
grass = {version = "0.12.1", default-features = false, features = ["random"]}
serde_json = "1"
serde_yaml = "0.9"
Expand All @@ -46,9 +46,5 @@ webp = "0.2"


[features]
# TODO: fix me, it doesn't pick up the reqwuest feature if not set as default
default = ["rust-tls"]
rust-tls = ["reqwest/rustls-tls"]
native-tls = ["reqwest/default-tls"]
indexing-zh = ["elasticlunr-rs/zh"]
indexing-ja = ["elasticlunr-rs/ja"]

0 comments on commit 61570bb

Please sign in to comment.