forge
Explore
Log in

Don't you dare go Hollow

Forbid unsafe code in every crate

Browse files at this commit

38ea98f9d12d019d072a63029ddebdd3b28a7711Ahmet Kaan GümüşParent: 6e9cbff
  • chore
    • forbid unsafe code in every crate
Show full message
🔒 chore: forbid unsafe code in every crate
Cargo.tomlmodified+3 -0
@@ -128,3 +128,6 @@ codegen-units = 1
128 inherits = "release"128 inherits = "release"
129 lto = "thin"129 lto = "thin"
130 codegen-units = 16130 codegen-units = 16
131+
132+[workspace.lints.rust]
133+unsafe_code = "forbid"
crates/forge-ci/Cargo.tomlmodified+3 -0
@@ -16,3 +16,6 @@ serde_ignored = "0.1.14"
16 serde_json = { workspace = true }16 serde_json = { workspace = true }
17 thiserror = { workspace = true }17 thiserror = { workspace = true }
18 toml = { workspace = true }18 toml = { workspace = true }
19+
20+[lints]
21+workspace = true
crates/forge-core/Cargo.tomlmodified+3 -0
@@ -35,3 +35,6 @@ zip = { workspace = true }
35 35
36 [dev-dependencies]36 [dev-dependencies]
37 tempfile.workspace = true37 tempfile.workspace = true
38+
39+[lints]
40+workspace = true
crates/forge-git/Cargo.tomlmodified+3 -0
@@ -17,3 +17,6 @@ tokio.workspace = true
17 17
18 [dev-dependencies]18 [dev-dependencies]
19 tempfile.workspace = true19 tempfile.workspace = true
20+
21+[lints]
22+workspace = true
crates/forge-runner/Cargo.tomlmodified+3 -0
@@ -45,3 +45,6 @@ hyper = { workspace = true }
45 hyper-util = { workspace = true }45 hyper-util = { workspace = true }
46 http-body-util = { workspace = true }46 http-body-util = { workspace = true }
47 bytes = { workspace = true }47 bytes = { workspace = true }
48+
49+[lints]
50+workspace = true
crates/forge-ssh/Cargo.tomlmodified+3 -0
@@ -17,3 +17,6 @@ tracing.workspace = true
17 17
18 [dev-dependencies]18 [dev-dependencies]
19 tempfile.workspace = true19 tempfile.workspace = true
20+
21+[lints]
22+workspace = true
crates/forge-web/Cargo.tomlmodified+3 -0
@@ -70,3 +70,6 @@ forge-runner = { workspace = true, features = ["test-host-executor"] }
70 image = { workspace = true }70 image = { workspace = true }
71 scraper = { workspace = true }71 scraper = { workspace = true }
72 webauthn-authenticator-rs = { version = "0.5.5", features = ["softpasskey"] }72 webauthn-authenticator-rs = { version = "0.5.5", features = ["softpasskey"] }
73+
74+[lints]
75+workspace = true