Skip to content

Commit

Permalink
Reexport TLS options from cached-path
Browse files Browse the repository at this point in the history
This change allows for users of `rust-tokenizers` to use `reqwest` with
Rustls instead of OpenSSL by reexporting the `cached-path` feature flags
(which are reexported from `reqwest`).

OpenSSL is still used by default; specifying nothing results in the same
set of features that are used before this change.
  • Loading branch information
mweber15 committed Jun 23, 2023
1 parent 29a9911 commit ac99818
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 1 deletion.
106 changes: 106 additions & 0 deletions main/Cargo.lock

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

5 changes: 4 additions & 1 deletion main/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ thiserror = "1"
[dev-dependencies]
tempfile = "3"
dirs = "4"
cached-path = "0.6"
cached-path = { version = "0.6", default-features = false }
anyhow = "1"

[build-dependencies]
protobuf-codegen-pure = {version = "2", optional = true}

[features]
default = ["default-tls"]
proto-compile = [ "protobuf-codegen-pure" ]
default-tls = ["cached-path/default-tls"]
rustls-tls = ["cached-path/rustls-tls"]

[lib]
name = "rust_tokenizers"
Expand Down

0 comments on commit ac99818

Please sign in to comment.