Skip to content

Commit

Permalink
refactor: update Cargo.toml files to use workspace edition and add li…
Browse files Browse the repository at this point in the history
…nting configuration (#15)

* refactor: update Cargo.toml files to use workspace edition and add linting configuration

Signed-off-by: Jérémy Audiger <[email protected]>

* fix: change Clippy lint level from deny to warn

Signed-off-by: Jérémy Audiger <[email protected]>

---------

Signed-off-by: Jérémy Audiger <[email protected]>
  • Loading branch information
jaudiger authored Jan 20, 2025
1 parent f61b0e1 commit d530162
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 10 deletions.
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[workspace.package]
edition = "2021"

[workspace]
resolver = "2"
members = [
Expand All @@ -7,13 +10,17 @@ members = [
"crates/brioche-packed-plain-exec",
"crates/brioche-packed-userland-exec",
"crates/brioche-packer",
"crates/brioche-resources", "crates/brioche-strip",
"crates/brioche-resources",
"crates/brioche-strip",
"crates/runnable-core",
]

[workspace.dependencies]
brioche-pack = { git = "https://github.com/brioche-dev/brioche.git", default-features = false }

[workspace.lints.clippy]
all = { level = "warn", priority = -1 }

[profile.release-tiny]
inherits = "release"
opt-level = "z"
Expand Down
5 changes: 4 additions & 1 deletion crates/brioche-autopack/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "brioche-autopack"
version = "0.1.0"
edition = "2021"
edition.workspace = true

[dependencies]
brioche-pack = { workspace = true }
Expand All @@ -15,3 +15,6 @@ runnable-core = { path = "../runnable-core" }
serde_json = "1.0.118"
thiserror = "1.0.61"
walkdir = "2.5.0"

[lints]
workspace = true
5 changes: 4 additions & 1 deletion crates/brioche-cc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "brioche-cc"
version = "0.1.0"
edition = "2021"
edition.workspace = true

[dependencies]
eyre = "0.6.12"

[lints]
workspace = true
5 changes: 4 additions & 1 deletion crates/brioche-ld/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "brioche-ld"
version = "0.1.1"
edition = "2021"
edition.workspace = true

[dependencies]
brioche-autopack = { path = "../brioche-autopack" }
Expand All @@ -10,3 +10,6 @@ brioche-resources = { path = "../brioche-resources" }
bstr = "1.8.0"
eyre = "0.6.12"
thiserror = "1.0.51"

[lints]
workspace = true
5 changes: 4 additions & 1 deletion crates/brioche-packed-plain-exec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "brioche-packed-plain-exec"
version = "0.1.1"
edition = "2021"
edition.workspace = true

[dependencies]
brioche-pack = { workspace = true }
Expand All @@ -11,3 +11,6 @@ libc = "0.2.151"
runnable-core = { path = "../runnable-core" }
serde_json = "1.0.117"
thiserror = "1.0.51"

[lints]
workspace = true
2 changes: 1 addition & 1 deletion crates/brioche-packed-userland-exec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "brioche-packed-userland-exec"
version = "0.1.1"
edition = "2021"
edition.workspace = true

[dependencies]
bincode = "2.0.0-rc.3"
Expand Down
5 changes: 4 additions & 1 deletion crates/brioche-packer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "brioche-packer"
version = "0.1.0"
edition = "2021"
edition.workspace = true

[dependencies]
brioche-autopack = { path = "../brioche-autopack" }
Expand All @@ -19,3 +19,6 @@ serde = { version = "1.0.203", features = ["derive"] }
serde_json = { version = "1.0.108" }
serde_with = { version = "3.8.1", features = ["schemars_0_8"] }
walkdir = "2.5.0"

[lints]
workspace = true
5 changes: 4 additions & 1 deletion crates/brioche-resources/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "brioche-resources"
version = "0.1.0"
edition = "2021"
edition.workspace = true

[dependencies]
blake3 = "1.5.1"
Expand All @@ -12,3 +12,6 @@ thiserror = "1.0.61"
tick-encoding = "0.1.2"
ulid = "1.1.2"
walkdir = "2.5.0"

[lints]
workspace = true
5 changes: 4 additions & 1 deletion crates/brioche-strip/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "brioche-strip"
version = "0.1.0"
edition = "2021"
edition.workspace = true

[dependencies]
brioche-autopack = { path = "../brioche-autopack" }
Expand All @@ -12,3 +12,6 @@ eyre = "0.6.12"
tempfile = "3.14.0"
thiserror = "1.0.51"
ulid = "1.1.3"

[lints]
workspace = true
5 changes: 4 additions & 1 deletion crates/runnable-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "runnable-core"
version = "0.1.0"
edition = "2021"
edition.workspace = true

[dependencies]
bincode = "2.0.0-rc.3"
Expand All @@ -12,3 +12,6 @@ serde = { version = "1.0.203", features = ["derive"] }
serde_with = { version = "3.8.1", features = ["schemars_0_8"] }
thiserror = "1.0.61"
tick-encoding = "0.1.2"

[lints]
workspace = true

0 comments on commit d530162

Please sign in to comment.