browserslist/
opts.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, Deserialize, Serialize)]
4#[serde(rename_all = "camelCase", default)]
5/// Options for controlling the behavior of browserslist.
6pub struct Opts {
7    /// Use desktop browsers if Can I Use doesn’t have data about this mobile version.
8    pub mobile_to_desktop: bool,
9
10    /// If `true`, ignore unknown versions then return empty result;
11    /// otherwise, reject with an error.
12    pub ignore_unknown_versions: bool,
13
14    /// Path to configuration file with queries.
15    pub config: Option<String>,
16
17    /// Processing environment. It will be used to take right queries from config file.
18    pub env: Option<String>,
19
20    /// File or directory path for looking for configuration file.
21    pub path: Option<String>,
22
23    /// Throw error on missing env.
24    pub throw_on_missing: bool,
25
26    /// Disable security checks for `extends` query.
27    pub dangerous_extend: bool,
28}