Function browserslist::execute
source ยท pub fn execute(opts: &Opts) -> Result<Vec<Distrib>, Error>
Expand description
Load queries from configuration with environment information, then resolve those queries.
If you want to resolve custom queries (not from configuration file),
use the lower-level API resolve
instead.
use browserslist::{Opts, execute};
// when no config found, it use `defaults` query
assert!(!execute(&Opts::default()).unwrap().is_empty());