-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
132 lines (113 loc) · 3.45 KB
/
Cargo.toml
File metadata and controls
132 lines (113 loc) · 3.45 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[workspace]
resolver = "2"
members = ["crates/*"]
[workspace.package]
version = "2.4.0"
authors = ["ubugeeei"]
categories = ["development-tools"]
edition = "2021"
homepage = "https://github.com/ubugeeei/ox-content"
keywords = ["markdown", "documentation", "parser", "vite"]
license = "MIT"
repository = "https://github.com/ubugeeei/ox-content"
rust-version = "1.83.0"
[workspace.lints.rust]
unsafe_code = "warn"
absolute_paths_not_starting_with_crate = "warn"
non_local_definitions = "warn"
redundant_lifetimes = "warn"
unit_bindings = "warn"
unnameable_types = "warn"
[workspace.lints.clippy]
# Lint groups with lower priority
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
# Restrictions
dbg_macro = "warn"
print_stdout = "warn"
print_stderr = "warn"
# Allow
format_push_string = "allow"
match_same_arms = "allow"
option_if_let_else = "allow"
case_sensitive_file_extension_comparisons = "allow"
single_option_map = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
module_name_repetitions = "allow"
too_many_lines = "allow"
doc_markdown = "allow"
similar_names = "allow"
needless_pass_by_value = "allow"
multiple_crate_versions = "allow"
cargo_common_metadata = "allow"
missing_const_for_fn = "allow"
cast_possible_truncation = "allow"
struct_excessive_bools = "allow"
unnecessary_wraps = "allow"
wildcard_imports = "allow"
if_not_else = "allow"
unnested_or_patterns = "allow"
derive_partial_eq_without_eq = "allow"
elidable_lifetime_names = "allow"
range_plus_one = "allow"
use_self = "allow"
[workspace.dependencies]
# Internal crates (version is used for crates.io publish, path for local dev)
ox_content_allocator = { version = "2.4.0", path = "crates/ox_content_allocator" }
ox_content_ast = { version = "2.4.0", path = "crates/ox_content_ast" }
ox_content_parser = { version = "2.4.0", path = "crates/ox_content_parser" }
ox_content_renderer = { version = "2.4.0", path = "crates/ox_content_renderer" }
ox_content_napi = { version = "2.4.0", path = "crates/ox_content_napi" }
ox_content_vite = { version = "2.4.0", path = "crates/ox_content_vite" }
ox_content_og_image = { version = "2.4.0", path = "crates/ox_content_og_image" }
ox_content_docs = { version = "2.4.0", path = "crates/ox_content_docs" }
ox_content_search = { version = "2.4.0", path = "crates/ox_content_search" }
ox_content_ssg = { version = "2.4.0", path = "crates/ox_content_ssg" }
ox_content_i18n = { version = "2.4.0", path = "crates/ox_content_i18n" }
ox_content_i18n_checker = { version = "2.4.0", path = "crates/ox_content_i18n_checker" }
# Memory allocation
bumpalo = "3.16"
# NAPI bindings
napi = "3"
napi-derive = "3"
napi-build = "2.3.1"
# Parsing utilities
logos = "0.14"
regex = "1.11"
unicode-normalization = "0.1"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
# LSP
tower-lsp = "0.20"
# Async runtime
tokio = { version = "1", features = ["full"] }
# CLI
clap = { version = "4", features = ["derive"] }
# Error handling
thiserror = "2"
miette = { version = "7", features = ["fancy"] }
# OXC parser
oxc_allocator = "0.44"
oxc_parser = "0.44"
oxc_ast = "0.44"
oxc_span = "0.44"
# Testing
criterion = "0.5"
insta = "1"
[profile.dev]
debug = 2
[profile.dev.package]
insta.opt-level = 3
similar.opt-level = 3
[profile.release]
lto = "fat"
codegen-units = 1
strip = "symbols"
debug = false
panic = "abort"