-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
115 lines (96 loc) · 3.14 KB
/
Cargo.toml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[workspace]
resolver = "2"
members = ["crates/*"]
exclude = ["packages/hdx_zed"]
[workspace.package]
authors = ["Keith Cirkel (https://keithcirkel.co.uk)"]
description = "Refreshing CSS!"
edition = "2021"
homepage = "https://hdx.rs"
keywords = ["CSS", "parser"]
license = "MIT"
repository = "https://github.com/keithamus/hdx"
[workspace.dependencies]
# Local packages
hdx = { version = "0.0.1", path = "crates/hdx" }
hdx_atom = { version = "0.0.0", path = "crates/hdx_atom" }
hdx_proc_macro = { version = "0.0.0", path = "crates/hdx_proc_macro" }
hdx_parser = { version = "0.0.1", path = "crates/hdx_parser" }
hdx_lexer = { version = "0.0.1", path = "crates/hdx_lexer" }
hdx_syntax = { version = "0.0.0", path = "crates/hdx_syntax" }
hdx_ast = { version = "0.0.0", path = "crates/hdx_ast" }
hdx_transform = { version = "0.0.0", path = "crates/hdx_transform" }
hdx_highlight = { version = "0.0.0", path = "crates/hdx_highlight" }
hdx_lsp = { version = "0.0.0", path = "crates/hdx_lsp" }
# Memory
bumpalo = { version = "3.16.0" }
# Data structure libraries/helpers
bitmask-enum = { version = "2.2.5" }
itertools = { version = "0.13.0" }
ropey = { version = "1.6.1" }
smallvec = { version = "1.13.2" }
strum = { version = "0.26.3" }
# CLI
clap = { version = "4.5.23" }
glob = { version = "0.3.1" }
project-root = { version = "0.2.2" }
# LSP packages
lsp-types = { version = "0.97.0" }
httparse = { version = "1.9.5" }
# Multithreading
crossbeam-channel = { version = "0.5.13" }
dashmap = { version = "6.1.0" }
# Logging
tracing = { version = "0.1.41" }
tracing-subscriber = { version = "0.3.19" }
console = { version = "0.15.8" }
# Error handling
miette = { version = "7.4.0", default-features = false }
thiserror = { version = "2.0.6" }
# Procc Macro Tools
syn = { version = "2.0.90" }
quote = { version = "1.0.37" }
proc-macro2 = { version = "1.0.92" }
# Serialization
serde = { version = "1.0.215" }
serde_json = { version = "1.0.133" }
# Testing, benchmarking
similar = { version = "2.6.0" }
criterion = { version = "0.5.1" }
pprof = { version = "0.14.0" }
flate2 = { version = "1.0.35" }
insta = { version = "1.41.1" }
prettyplease = { version = "0.2.25" }
# String interning
string_cache = { version = "0.8.7" }
string_cache_codegen = { version = "0.5.2" }
# Build tools
grep-regex = { version = "0.1.13" }
grep-matcher = { version = "0.1.7" }
grep-searcher = { version = "0.1.14" }
# Wasm
wasm-bindgen = { version = "0.2.99" }
serde-wasm-bindgen = { version = "0.6.5" }
console_error_panic_hook = { version = "0.1.7" }
[workspace.metadata.workspaces]
allow_branch = "main"
[profile.release]
# Configurations explicitly listed here for clarity.
# Using the best options for performance.
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"
debug = false
panic = "abort" # Let it crash and force ourselves to write safe Rust.
# Use the `--profile release-debug` flag to show symbols in release mode.
# e.g. `cargo build --profile release-debug`
[profile.release-debug]
inherits = "release"
strip = false
debug = true
# For faster compiles during development, opt-level some dynamic libraries
[profile.dev.package]
criterion.opt-level = 3
insta.opt-level = 3
similar.opt-level = 3