Mithronn / rusty_ytdl

A Rust library for Youtube video searcher and downloader
https://docs.rs/rusty_ytdl
MIT License
107 stars 20 forks source link

Improve feature flags #10

Closed DCNick3 closed 1 year ago

DCNick3 commented 1 year ago

This PR does two things:

  1. Adds an enabled-by-default feature default-tls, which flips reqwest's default-tls feature. Disabling it allows the application to set up the reqwest TLS backend themselves, increasing flexibility.
  2. Makes the crate compile with all feature combinations (tested using cargo hack --feature-powerset check). This mainly involved splitting the live and non-live stream implementations & adding the necessary feature gates.