1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Default, Deserialize, Serialize)]
#[serde(rename_all = "camelCase", default)]
/// Options for controlling the behavior of browserslist.
pub struct Opts {
    /// Use desktop browsers if Can I Use doesn’t have data about this mobile version.
    pub mobile_to_desktop: bool,

    /// If `true`, ignore unknown versions then return empty result;
    /// otherwise, reject with an error.
    pub ignore_unknown_versions: bool,

    /// Path to configuration file with queries.
    pub config: Option<String>,

    /// Processing environment. It will be used to take right queries from config file.
    pub env: Option<String>,

    /// File or directory path for looking for configuration file.
    pub path: Option<String>,

    /// Throw error on missing env.
    pub throw_on_missing: bool,

    /// Disable security checks for `extends` query.
    pub dangerous_extend: bool,
}