-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (77 loc) · 2.16 KB
/
Cargo.toml
File metadata and controls
89 lines (77 loc) · 2.16 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[package]
name = "oxc-browserslist"
version = "3.0.1"
authors = ["Boshen <boshenc@gmail.com>", "Pig Fang <g-plane@hotmail.com>"]
categories = ["config", "web-programming"]
edition = "2024"
include = ["/benches", "/examples", "/src"]
keywords = ["javascript", "web"]
license = "MIT"
repository = "https://github.com/oxc-project/oxc-browserslist"
rust-version = "1.85.0"
description = "Rust-ported Browserslist for Oxc."
[workspace]
members = [".", "xtask"]
[workspace.lints.rust]
unsafe_code = "warn"
absolute_paths_not_starting_with_crate = "warn"
non_ascii_idents = "warn"
unit-bindings = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
dbg_macro = "warn"
todo = "warn"
unimplemented = "warn"
print_stdout = "warn" # Must be opt-in
print_stderr = "warn" # Must be opt-in
cargo = { level = "warn", priority = -1 }
[workspace.dependencies]
anyhow = "1"
criterion2 = { version = "3", default-features = false }
flate2 = "1"
indexmap = "2"
pico-args = "0.5.0"
postcard = { version = "1.1.3", default-features = false, features = ["alloc"] }
prettyplease = "0.2.36"
proc-macro2 = "1.0.95"
project-root = "0.2.2"
quote = "1.0"
rustc-hash = "2"
serde = "1.0"
serde_json = "1.0"
syn = "2"
test-case = "3.3"
thiserror = "2.0"
proptest = "1.6"
[lints]
workspace = true
[lib]
name = "browserslist"
[[bench]]
name = "resolve"
harness = false
[dependencies]
flate2 = { workspace = true }
postcard = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true, features = ["derive"] }
thiserror = { workspace = true }
[dev-dependencies]
criterion2 = { workspace = true }
pico-args = { workspace = true }
proptest = { workspace = true }
test-case = { workspace = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = { version = "0.3", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
serde-wasm-bindgen = { version = "0.6", optional = true }
[features]
default = []
wasm_bindgen = ["js-sys", "serde-wasm-bindgen", "wasm-bindgen"]
codspeed = ["criterion2/codspeed"]
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols" # Set to `false` for debug information
debug = false # Set to `true` for debug information