-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
194 lines (179 loc) · 6.3 KB
/
Copy pathCargo.toml
File metadata and controls
194 lines (179 loc) · 6.3 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
[workspace]
resolver = "2"
members = [
# Language implementation (SysML v2 spec)
"crates/lang/codegen",
"crates/lang/sysml-id",
"crates/lang/sysml-span",
"crates/lang/sysml-project",
"crates/lang/sysml-core",
"crates/lang/sysml-parser-trait",
"crates/lang/sysml-runtime",
"crates/lang/sysml-diagram",
"crates/lang/sysml-manifest",
"crates/lang/sysml-parser-incremental",
# Developer tooling
"crates/tooling/sysml-resolve",
"crates/tooling/sysml-query",
"crates/tooling/sysml-ide-db",
"crates/tooling/sysml-lsp-server",
"crates/tooling/sysml-cli",
"crates/tooling/sysml-store",
"crates/tooling/sysml-service",
"crates/tooling/sysml-service-macros",
"crates/tooling/sysml-api",
"crates/tooling/sysml-mcp",
# Testing
"crates/testing/sysml-spec-tests",
# Spec-reference tooling
"tools/spec-index",
# Desktop shell
"editors/simulation-app/src-tauri",
]
# Everyday builds skip the Tauri desktop shell (~30% of the dependency
# graph exists only for it). Build it explicitly with
# `cargo build -p sysml-desktop` or `cargo build --workspace`.
default-members = [
"crates/lang/codegen",
"crates/lang/sysml-id",
"crates/lang/sysml-span",
"crates/lang/sysml-project",
"crates/lang/sysml-core",
"crates/lang/sysml-parser-trait",
"crates/lang/sysml-runtime",
"crates/lang/sysml-diagram",
"crates/lang/sysml-manifest",
"crates/lang/sysml-parser-incremental",
"crates/tooling/sysml-resolve",
"crates/tooling/sysml-query",
"crates/tooling/sysml-ide-db",
"crates/tooling/sysml-lsp-server",
"crates/tooling/sysml-cli",
"crates/tooling/sysml-store",
"crates/tooling/sysml-service",
"crates/tooling/sysml-service-macros",
"crates/tooling/sysml-api",
"crates/tooling/sysml-mcp",
"crates/testing/sysml-spec-tests",
"tools/spec-index",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/RickyMillar/sysml-rs"
[workspace.dependencies]
# Internal crates — lang/
sysml-codegen = { path = "crates/lang/codegen" }
sysml-id = { path = "crates/lang/sysml-id" }
sysml-span = { path = "crates/lang/sysml-span" }
sysml-project = { path = "crates/lang/sysml-project" }
sysml-core = { path = "crates/lang/sysml-core" }
sysml-parser-trait = { path = "crates/lang/sysml-parser-trait" }
sysml-runtime = { path = "crates/lang/sysml-runtime" }
sysml-diagram = { path = "crates/lang/sysml-diagram" }
sysml-manifest = { path = "crates/lang/sysml-manifest" }
sysml-parser-incremental = { path = "crates/lang/sysml-parser-incremental" }
# Internal crates — tooling/
sysml-resolve = { path = "crates/tooling/sysml-resolve" }
sysml-query = { path = "crates/tooling/sysml-query" }
sysml-ide-db = { path = "crates/tooling/sysml-ide-db" }
sysml-store = { path = "crates/tooling/sysml-store" }
sysml-service = { path = "crates/tooling/sysml-service" }
sysml-service-macros = { path = "crates/tooling/sysml-service-macros" }
sysml-api = { path = "crates/tooling/sysml-api" }
sysml-mcp = { path = "crates/tooling/sysml-mcp" }
# External dependencies
clap = { version = "4", features = ["derive"] }
uuid = { version = "1.6", features = ["v4", "js"] }
schemars = "0.8"
serde = { version = "1.0", features = ["derive", "rc"] }
# `float_roundtrip`: serde_json's default float parser is fast but not
# correctly-rounded — e.g. `1e-24` serializes to "1e-24" yet parses back one ULP
# higher, so an f64 does NOT survive a JSON write→read. That silently breaks the
# stdlib library cache (a warm cache-hit graph drifts from the cold parse on
# float-valued props, moving `ModelGraph::content_digest` and therefore
# content-addressed CommitIds). This feature makes f64 round-trip bit-exact.
serde_json = { version = "1.0", features = ["float_roundtrip"] }
thiserror = "1.0"
tower-lsp = "0.20"
axum = "0.7"
tower-http = { version = "0.6", features = ["cors"] }
tokio = { version = "1.35", features = ["rt-multi-thread", "macros", "io-util", "io-std", "fs", "sync", "time", "net"] }
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres"] }
criterion = { version = "0.5", features = ["html_reports"] }
walkdir = "2.4"
rustc-hash = "2.0"
rayon = "1.10"
salsa = "0.26"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "std"] }
tracing-appender = "0.2"
regex = "1.10"
anyhow = "1"
proptest = { version = "1", default-features = false, features = ["std"] }
insta = { version = "1", features = ["glob"] }
tree-sitter = "0.22"
pretty_assertions = "1.4"
dashmap = "6.0"
futures = "0.3"
annotate-snippets = "0.11"
directories = "5.0"
sha2 = "0.10"
toml = "0.8"
quick-xml = "0.41"
semver = { version = "1", features = ["serde"] }
chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] }
zip = { version = "2", default-features = false, features = ["deflate"] }
tempfile = "3"
hex = "0.4"
rmcp = { version = "1.4", features = ["server", "transport-io"] }
inventory = "0.3"
diffsol = "0.11"
base64 = "0.22"
[workspace.lints.clippy]
# Error handling strictness — prevent panic-prone patterns
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
indexing_slicing = "deny"
# Production hygiene — no debug artifacts or raw IO in shipped code
dbg_macro = "deny"
print_stdout = "deny"
print_stderr = "deny"
# Error quality
map_err_ignore = "deny"
# Code quality
needless_pass_by_value = "deny"
large_enum_variant = "deny"
result_large_err = "deny"
redundant_clone = "deny"
wildcard_imports = "deny"
clone_on_ref_ptr = "deny"
implicit_clone = "deny"
str_to_string = "deny"
semicolon_if_nothing_returned = "deny"
manual_let_else = "deny"
[workspace.lints.rust]
unsafe_code = "deny"
[profile.dev]
split-debuginfo = "unpacked"
[profile.release-debug]
inherits = "release"
debug = true
# The daily loop runs release (physics is too slow in dev), so `release`
# optimises for ITERATION: thin LTO + parallel codegen. Shipping/benchmark
# builds use `--profile release-max` (the old fat-LTO settings).
[profile.release]
lto = "thin"
codegen-units = 16
[profile.release-max]
inherits = "release"
lto = true
codegen-units = 1
# The generated tree-sitter parser is one 71 MB table-driven C file —
# optimising it buys ~nothing and costs minutes of single-threaded cc.
[profile.release.package.tree-sitter-sysml]
opt-level = 0