Skip to content

Commit 77c01a0

Browse files
committed
prepare crates
1 parent 003ab51 commit 77c01a0

File tree

8 files changed

+54
-12
lines changed

8 files changed

+54
-12
lines changed

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
1-
[package]
1+
[workspace.package]
22
name = "leanSig"
33
version = "0.1.0"
44
edition = "2024"
55
rust-version = "1.85"
6+
license = "MIT OR Apache-2.0"
67

7-
[lints]
8+
[workspace]
9+
members = ["crates/leanIsa", "crates/leanSnark", "crates/leanVm"]
10+
resolver = "3"
11+
12+
[workspace.lints]
813
rust.missing_debug_implementations = "warn"
914
rust.unreachable_pub = "warn"
1015
rust.unused_must_use = "deny"
1116
rust.rust_2018_idioms = { level = "deny", priority = -1 }
1217
rust.dead_code = "allow"
1318
rustdoc.all = "warn"
1419

15-
[lints.clippy]
16-
# all lints that are on by default (correctness, suspicious, style, complexity, perf)
20+
[workspace.lints.clippy]
1721
all = { level = "warn", priority = -1 }
18-
19-
# new lints that are still under development
2022
nursery = { level = "warn", priority = -1 }
21-
# avoid lints that are too pedantic
2223
doc_markdown = "allow"
23-
24-
# lints which are rather strict or have occasional false positives
2524
pedantic = { level = "warn", priority = -1 }
26-
# avoid lints that are too pedantic
2725
cast_possible_truncation = "allow"
2826
cast_precision_loss = "allow"
2927
missing_errors_doc = "allow"
@@ -34,5 +32,7 @@ similar_names = "allow"
3432
suboptimal_flops = "allow"
3533
cast_sign_loss = "allow"
3634

37-
38-
[dependencies]
35+
[workspace.dependencies]
36+
lean-isa = { path = "crates/leanIsa" }
37+
lean-snark = { path = "crates/leanSnark" }
38+
lean-vm = { path = "crates/leanVm" }

crates/leanIsa/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "leanIsa"
3+
version.workspace = true
4+
edition.workspace = true
5+
rust-version.workspace = true
6+
license.workspace = true
7+
8+
[lints]
9+
workspace = true
10+
11+
[dependencies]
File renamed without changes.

crates/leanSnark/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "leanSnark"
3+
version.workspace = true
4+
edition.workspace = true
5+
rust-version.workspace = true
6+
license.workspace = true
7+
8+
[lints]
9+
workspace = true
10+
11+
[dependencies]

crates/leanSnark/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

crates/leanVm/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "leanVm"
3+
version.workspace = true
4+
edition.workspace = true
5+
rust-version.workspace = true
6+
license.workspace = true
7+
8+
[lints]
9+
workspace = true
10+
11+
[dependencies]

crates/leanVm/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

rustfmt.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
reorder_imports = true
2+
imports_granularity = "Crate"
3+
group_imports = "StdExternalCrate"

0 commit comments

Comments
 (0)