-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
210 lines (186 loc) · 6.32 KB
/
Cargo.toml
File metadata and controls
210 lines (186 loc) · 6.32 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
[workspace]
members = [
".",
"rash",
"rash-runtime",
"bashrs-oracle",
"bashrs-wasm",
]
exclude = ["fuzz", "rash-mcp", "target/", ".profraw", ".profdata", ".vscode/", ".idea/", ".pmat", "proptest-regressions"]
resolver = "2"
[package]
name = "bashrs-specs"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
description = "Formal verification specifications and benchmarks for bashrs workspace"
publish = false
autoexamples = false
autotests = false
autobins = false
[lib]
path = "src/lib.rs"
[dependencies]
bashrs = { path = "rash", version = "6.66.0" }
[dev-dependencies]
provable-contracts = { version = "0.3", path = "../provable-contracts/crates/provable-contracts" }
criterion.workspace = true
[[test]]
name = "contract_traits"
[[bench]]
name = "workspace_bench"
harness = false
[lints]
workspace = true
[features]
default = []
[workspace.dependencies]
syn = { version = "2.0", features = ["full", "extra-traits"] }
quote = "1.0.40"
proc-macro2 = { version = "1.0.95", features = ["span-locations"] }
serde = { version = "1.0", default-features = false, features = ["derive", "std"] }
serde_json = "1.0.140"
anyhow = "1.0.98"
thiserror = "2.0.12"
clap = { version = "4.5.39", features = ["derive"] }
tokio = { version = "1.45.1", default-features = false, features = ["rt", "rt-multi-thread", "macros", "io-util", "io-std", "fs", "time", "process"] }
tracing = { version = "0.1.41", default-features = false, features = ["std"] }
tracing-subscriber = "0.3.19"
blake3 = "1.8.2"
once_cell = "1.21.3"
lazy_static = "1.5"
phf = { version = "0.13", features = ["macros"] }
tempfile = "3.20.0"
criterion = "0.6"
proptest = "1.6"
rstest = "0.25"
rustyline = "17.0"
# Dependency unification (Issue #57 - Zero Defect Policy)
# Force unified versions across all workspace crates and transitive dependencies
bitflags = "2.10"
hashbrown = "0.15"
indexmap = "2.7"
itertools = "0.14"
regex-automata = "0.5"
regex-syntax = "0.9"
[workspace.package]
version = "6.66.0"
edition = "2021"
rust-version = "1.82"
authors = ["Pragmatic AI Labs"]
license = "MIT"
repository = "https://github.com/paiml/bashrs"
description = "Rust-to-Shell transpiler for deterministic bootstrap scripts"
readme = "README.md"
homepage = "https://github.com/paiml/bashrs"
documentation = "https://docs.rs/bashrs"
keywords = ["shell", "bash", "transpiler", "rust", "scripting"]
categories = ["command-line-utilities", "development-tools", "compilers"]
# Workspace-level lints (following pmat rust-project-score recommendations)
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "deny"
unreachable_pub = "warn"
# missing_docs = "warn" # Tracked in Issue #52 (1907 items) - incremental fix planned
rust_2018_idioms = { level = "warn", priority = -1 }
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)', 'cfg(coverage)', 'cfg(trybuild_no_target)'] }
[workspace.lints.clippy]
# Cloudflare-class defect prevention (2025-11-18 outage)
# CRITICAL: unwrap() causes panics - see Cloudflare 2025-11-18 outage
# Tracked as long-term remediation (649 calls remaining).
# Set to "warn" so CI -D warnings doesn't block on pre-existing debt.
# unwrap_used and expect_used tracked as long-term remediation (649 calls).
# CI uses -D warnings which promotes warns to errors. Allow until remediated.
unwrap_used = { level = "allow", priority = 1 }
expect_used = { level = "allow", priority = 1 }
# High-value quality lints
checked_conversions = "warn"
dbg_macro = "warn"
todo = "warn"
unimplemented = "warn"
# Pedantic exceptions (too noisy without value)
module_name_repetitions = "allow"
must_use_candidate = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
doc_markdown = "allow"
similar_names = "allow"
too_many_lines = "allow"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
cast_precision_loss = "allow"
cast_lossless = "allow"
cast_possible_wrap = "allow"
struct_excessive_bools = "allow"
fn_params_excessive_bools = "allow"
wildcard_imports = "allow"
items_after_statements = "allow"
return_self_not_must_use = "allow"
manual_string_new = "allow"
uninlined_format_args = "allow"
needless_pass_by_value = "allow"
unnecessary_wraps = "allow"
single_match_else = "allow"
match_same_arms = "allow"
if_not_else = "allow"
redundant_else = "allow"
match_wildcard_for_single_variants = "allow"
struct_field_names = "allow"
implicit_hasher = "allow"
option_if_let_else = "allow"
manual_assert = "allow"
used_underscore_binding = "allow"
trivially_copy_pass_by_ref = "allow"
redundant_closure_for_method_calls = "allow"
unreadable_literal = "allow"
inconsistent_struct_constructor = "allow"
# cargo-release workspace configuration
# Workspace equivalent of [package.metadata.release] for individual crates
[workspace.metadata.release]
shared-version = true
pre-release-replacements = [
{ file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}" },
]
# Documentation configuration
# Workspace equivalent of [package.metadata.docs.rs] (see rash/Cargo.toml)
# all-features = true
# rustdoc-args = ["--generate-link-to-definition"]
# Performance and size optimizations (following ripgrep/fd practices)
[profile.release]
opt-level = 'z' # Size optimization (not 's')
lto = true # Link-time optimization
codegen-units = 1 # Single unit for better optimization
strip = true # Remove symbols
panic = 'abort' # No unwinding machinery
# Optimize dependencies too
[profile.release.package."*"]
opt-level = 'z' # Dependencies also minimized
# Build scripts minimized
[profile.release.build-override]
opt-level = 'z' # Build scripts minimized
# Extreme binary size optimization for distribution
[profile.min-size]
inherits = "release"
opt-level = "z" # Optimize for size
lto = "fat" # Full link-time optimization
codegen-units = 1 # Single codegen unit
panic = "abort" # Remove panic unwinding
strip = true # Strip all symbols
[profile.dev]
panic = "abort"
debug = true
opt-level = 0
# Fast compilation for development
[profile.dev-fast]
inherits = "dev"
opt-level = 1
incremental = true
codegen-units = 16
# Coverage testing profile (CRITICAL for LLVM coverage)
# Following: docs/specifications/COVERAGE.md
[profile.test]
inherits = "dev"
incremental = false # CRITICAL: Prevents stale coverage data
opt-level = 0
codegen-units = 1