Skip to main content

browserslist/
opts.rs

1use serde::Deserialize;
2
3#[derive(Clone, Debug, Default, Deserialize)]
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}