nick42d / youtui

TUI and API for YouTube Music written in Rust
MIT License
30 stars 2 forks source link

ytmapi-rs: Enforce prefered TLS in builder when multiple features specified. #30

Open nick42d opened 2 months ago

nick42d commented 2 months ago

As features are additive - if both native-tls and rustls-tls are enabled, ytmapi-rs will use native-tls by default.

Add a builder function to ensure a specific backend is used - similar to reqwest's use_rustls_tls() https://docs.rs/reqwest/latest/reqwest/tls/index.html

nick42d commented 3 weeks ago

Or consider instead raising a compile error to enforce mutually exclusive features