From 38ea98f9d12d019d072a63029ddebdd3b28a7711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 21 Oct 2026 17:10:45 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20chore:=20forbid=20unsafe=20code?= =?UTF-8?q?=20in=20every=20crate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 3 +++ crates/forge-ci/Cargo.toml | 3 +++ crates/forge-core/Cargo.toml | 3 +++ crates/forge-git/Cargo.toml | 3 +++ crates/forge-runner/Cargo.toml | 3 +++ crates/forge-ssh/Cargo.toml | 3 +++ crates/forge-web/Cargo.toml | 3 +++ 7 files changed, 21 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 88a209f..6890635 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -128,3 +128,6 @@ codegen-units = 1 inherits = "release" lto = "thin" codegen-units = 16 + +[workspace.lints.rust] +unsafe_code = "forbid" diff --git a/crates/forge-ci/Cargo.toml b/crates/forge-ci/Cargo.toml index 7df20c8..9112154 100644 --- a/crates/forge-ci/Cargo.toml +++ b/crates/forge-ci/Cargo.toml @@ -16,3 +16,6 @@ serde_ignored = "0.1.14" serde_json = { workspace = true } thiserror = { workspace = true } toml = { workspace = true } + +[lints] +workspace = true diff --git a/crates/forge-core/Cargo.toml b/crates/forge-core/Cargo.toml index 301b086..2573685 100644 --- a/crates/forge-core/Cargo.toml +++ b/crates/forge-core/Cargo.toml @@ -35,3 +35,6 @@ zip = { workspace = true } [dev-dependencies] tempfile.workspace = true + +[lints] +workspace = true diff --git a/crates/forge-git/Cargo.toml b/crates/forge-git/Cargo.toml index 4b5627f..579f609 100644 --- a/crates/forge-git/Cargo.toml +++ b/crates/forge-git/Cargo.toml @@ -17,3 +17,6 @@ tokio.workspace = true [dev-dependencies] tempfile.workspace = true + +[lints] +workspace = true diff --git a/crates/forge-runner/Cargo.toml b/crates/forge-runner/Cargo.toml index 5109c23..3580c7c 100644 --- a/crates/forge-runner/Cargo.toml +++ b/crates/forge-runner/Cargo.toml @@ -45,3 +45,6 @@ hyper = { workspace = true } hyper-util = { workspace = true } http-body-util = { workspace = true } bytes = { workspace = true } + +[lints] +workspace = true diff --git a/crates/forge-ssh/Cargo.toml b/crates/forge-ssh/Cargo.toml index 78ef1e3..ea897f7 100644 --- a/crates/forge-ssh/Cargo.toml +++ b/crates/forge-ssh/Cargo.toml @@ -17,3 +17,6 @@ tracing.workspace = true [dev-dependencies] tempfile.workspace = true + +[lints] +workspace = true diff --git a/crates/forge-web/Cargo.toml b/crates/forge-web/Cargo.toml index 9ba543c..bd3a02d 100644 --- a/crates/forge-web/Cargo.toml +++ b/crates/forge-web/Cargo.toml @@ -70,3 +70,6 @@ forge-runner = { workspace = true, features = ["test-host-executor"] } image = { workspace = true } scraper = { workspace = true } webauthn-authenticator-rs = { version = "0.5.5", features = ["softpasskey"] } + +[lints] +workspace = true