Skip to main content

browserslist_data/
lib.rs

1pub mod baseline;
2pub mod caniuse;
3pub mod electron;
4pub mod node;
5mod utils;
6
7#[doc(hidden)]
8pub fn decode_browser_name(id: u8) -> &'static str {
9    match id {
10        1 => "ie",
11        2 => "edge",
12        3 => "firefox",
13        4 => "chrome",
14        5 => "safari",
15        6 => "opera",
16        7 => "ios_saf",
17        8 => "op_mini",
18        9 => "android",
19        10 => "bb",
20        11 => "op_mob",
21        12 => "and_chr",
22        13 => "and_ff",
23        14 => "ie_mob",
24        15 => "and_uc",
25        16 => "samsung",
26        17 => "and_qq",
27        18 => "baidu",
28        19 => "kaios",
29        _ => unreachable!("cannot recognize browser id"),
30    }
31}