mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-23 15:48:07 +00:00
Add rustls feature
This allows library to be used without adding native-tls to dependencies with: ``` openai-api-rs = { version = "^5.0", default-features = false, features = ["rustls"] } ``` Default usage without features is unaffected.
This commit is contained in:
@ -9,9 +9,15 @@ repository = "https://github.com/dongri/openai-api-rs"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[features]
|
||||
default = ["default-tls"]
|
||||
rustls = ["reqwest/rustls-tls"]
|
||||
default-tls = ["reqwest/default-tls"]
|
||||
|
||||
[dependencies.reqwest]
|
||||
version = "0.12"
|
||||
features = ["json", "multipart", "socks"]
|
||||
default-features = false
|
||||
features = ["charset", "http2", "json", "multipart", "socks"]
|
||||
|
||||
[dependencies.tokio]
|
||||
version = "1"
|
||||
|
Reference in New Issue
Block a user