forked from NomicFoundation/slang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
155 lines (146 loc) · 6.83 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[workspace.package]
version = "0.14.2"
rust-version = "1.76.0" # __RUST_STABLE_VERSION_MARKER__ (keep in sync)
edition = "2021"
publish = false
[workspace]
resolver = "2"
members = [
"crates/codegen/ebnf",
"crates/codegen/grammar",
"crates/codegen/language/definition",
"crates/codegen/language/internal_macros",
"crates/codegen/language/macros",
"crates/codegen/language/tests",
"crates/codegen/parser/generator",
"crates/codegen/parser/runtime",
"crates/codegen/spec",
"crates/codegen/testing",
"crates/infra/cli",
"crates/infra/utils",
"crates/solidity/inputs/language",
"crates/solidity/outputs/cargo/slang_solidity_node_addon",
"crates/solidity/outputs/cargo/slang_solidity",
"crates/solidity/outputs/cargo/tests",
"crates/solidity/outputs/npm/package",
"crates/solidity/outputs/spec",
"crates/solidity/testing/sanctuary",
"crates/solidity/testing/snapshots",
"crates/solidity/testing/solc",
"crates/testlang/inputs/language",
"crates/testlang/outputs/cargo/slang_testlang_node_addon",
"crates/testlang/outputs/cargo/slang_testlang",
"crates/testlang/outputs/cargo/tests",
"crates/testlang/outputs/npm/package",
]
[workspace.dependencies]
#
# Internal
#
codegen_ebnf = { path = "crates/codegen/ebnf" }
codegen_grammar = { path = "crates/codegen/grammar" }
codegen_language_definition = { path = "crates/codegen/language/definition" }
codegen_language_internal_macros = { path = "crates/codegen/language/internal_macros" }
codegen_language_macros = { path = "crates/codegen/language/macros" }
codegen_language_tests = { path = "crates/codegen/language/tests" }
codegen_parser_generator = { path = "crates/codegen/parser/generator" }
codegen_parser_runtime = { path = "crates/codegen/parser/runtime" }
codegen_spec = { path = "crates/codegen/spec" }
codegen_testing = { path = "crates/codegen/testing" }
infra_cli = { path = "crates/infra/cli" }
infra_utils = { path = "crates/infra/utils" }
slang_solidity = { path = "crates/solidity/outputs/cargo/slang_solidity" }
slang_solidity_node_addon = { path = "crates/solidity/outputs/cargo/slang_solidity_node_addon" }
solidity_cargo_tests = { path = "crates/solidity/outputs/cargo/tests" }
solidity_language = { path = "crates/solidity/inputs/language" }
solidity_npm_package = { path = "crates/solidity/outputs/npm/package" }
solidity_spec = { path = "crates/solidity/outputs/spec" }
solidity_testing_sanctuary = { path = "crates/solidity/testing/sanctuary" }
solidity_testing_snapshots = { path = "crates/solidity/testing/snapshots" }
solidity_testing_solc = { path = "crates/solidity/testing/solc" }
slang_testlang = { path = "crates/testlang/outputs/cargo/slang_testlang" }
slang_testlang_node_addon = { path = "crates/testlang/outputs/cargo/slang_testlang_node_addon" }
testlang_cargo_tests = { path = "crates/testlang/outputs/cargo/tests" }
testlang_language = { path = "crates/testlang/inputs/language" }
testlang_npm_package = { path = "crates/testlang/outputs/npm/package" }
#
# External
#
anyhow = { version = "1.0.81", features = ["backtrace", "std"] }
ariadne = { version = "0.2.0" }
cargo-emit = { version = "0.2.1" }
cargo-xwin = { version = "0.14.2" }
cargo-zigbuild = { version = "0.18.3" }
clap = { version = "4.5.4", features = ["derive", "wrap_help"] }
clap_complete = { version = "4.5.1" }
console = { version = "0.15.8" }
derive-new = { version = "0.6.0" }
ignore = { version = "0.4.22" }
indexmap = { version = "2.2.6", features = ["serde"] }
indicatif = { version = "0.17.8", features = ["in_memory"] }
Inflector = { version = "0.11.4" }
itertools = { version = "0.10.5" }
markdown = { version = "0.3.0" }
napi = { version = "2.16.1", features = ["compat-mode", "napi8", "serde-json"] }
napi-build = { version = "2.1.2" }
napi-derive = { version = "2.16.1" }
nom = { version = "7.1.3" }
num-format = { version = "0.4.4" }
once_cell = { version = "1.19.0" }
proc-macro2 = { version = "1.0.79" }
quote = { version = "1.0.35" }
rayon = { version = "1.10.0" }
regex = { version = "1.10.4" }
reqwest = { version = "0.11.27", features = ["blocking"] }
semver = { version = "1.0.22", features = ["serde"] }
serde = { version = "1.0.197", features = ["derive", "rc"] }
serde_json = { version = "1.0.115", features = ["preserve_order"] }
similar-asserts = { version = "1.5.0" }
stack-graphs = { version = "0.12.0" }
strum = { version = "0.25.0" }
strum_macros = { version = "0.25.3" }
syn = { version = "2.0.58", features = [
"fold",
"full",
"extra-traits",
"parsing",
"printing",
] }
tempfile = { version = "3.10.1" }
tera = { version = "1.19.1" }
thiserror = { version = "1.0.58" }
trybuild = { version = "1.0.91" }
toml = { version = "0.8.12" }
url = { version = "2.3.1" }
[workspace.lints.rust]
unused_crate_dependencies = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
meta_variable_misuse = "warn"
# Rust 2018 idioms that are not yet warn-by-default:
elided_lifetimes_in_paths = "warn"
unused_extern_crates = "warn"
explicit_outlives_requirements = "warn"
[workspace.lints.clippy]
# Lints that are enabled (warn/deny) by default
all = "warn"
# Cargo
cargo = "warn" # Warn about Cargo.toml issues, except...
multiple_crate_versions = { level = "allow", priority = 1 } # Not possible to deduplicate, should be done periodically ourselves
# Restriction (optional, neutral lints)
exit = "warn" # Prefer not `process::exit`ing directly
rest_pat_in_fully_bound_structs = "warn" # Prefer not to use `..` in fully bound structs
verbose_file_reads = "warn" # Prefer simpler and more concise `fs::read_to_string`
# Pedantic
pedantic = "warn" # Warn about pedantic lints, except...
match_same_arms = { level = "allow", priority = 1 } # It's often clearer to have the same arm twice
missing_errors_doc = { level = "allow", priority = 1 } # Most of our code is internal; let's not clutter the docs until...
missing_panics_doc = { level = "allow", priority = 1 } # ... we care about the public documentation in our shipped crates
module_name_repetitions = { level = "allow", priority = 1 } # It seems we prefer it this way; we'd need to discuss that
must_use_candidate = { level = "allow", priority = 1 } # Overzealous, we'd have to `[must_use]` a lot of things
redundant_closure_for_method_calls = { level = "allow", priority = 1 } # Not always clearer, let's not pepper `allow`s whenever needed
# Nursery
collection_is_never_read = "warn" # Lint against collections not used after creation
equatable_if_let = "warn" # Prefer regular `==` checks over Yoda `if let $pat = $value`
useless_let_if_seq = "warn" # Use idiomatic direct assignment of `let $val = if $cond { .. } else { .. };`
redundant_else = "warn" # Warn about redundant `else` blocks