From 87a53c09bc6940e69037f6de11433c48d2e5fb19 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Sat, 25 Apr 2026 20:53:53 +0200 Subject: [PATCH] chore: add Rust project scaffold Add the initial Cargo package, formatter configuration, ignore rules, lockfile, and placeholder binary entry point. This establishes the repository baseline so future solver work can be reviewed as focused behavior changes. The scaffold intentionally contains no Sudoku behavior yet. It only captures the starting point of the project as generated and configured locally. Test Plan: - cargo clippy - cargo clippy --benches - cargo clippy --tests - cargo +nightly fmt - cargo clippy - cargo clippy --benches - cargo clippy --tests Refs: none --- .codex | 0 .gitignore | 1 + Cargo.lock | 7 +++++++ Cargo.toml | 21 +++++++++++++++++++++ rustfmt.toml | 3 +++ src/main.rs | 3 +++ 6 files changed, 35 insertions(+) create mode 100644 .codex create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 rustfmt.toml create mode 100644 src/main.rs diff --git a/.codex b/.codex new file mode 100644 index 0000000..e69de29 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..0201c56 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "sudoku-ai" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..a45fdd3 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "sudoku-ai" +version = "0.1.0" +edition = "2024" + +[dependencies] + +[lints.rust] +unsafe_code = "forbid" + +[lints.clippy] +pedantic = { level = "warn", priority = -1 } +todo = "warn" +unwrap_used = "warn" + +[profile.release] +lto = true +strip = true +codegen-units = 1 +debug = false +panic = "unwind" diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..e270811 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,3 @@ +group_imports = "StdExternalCrate" +imports_granularity = "Crate" +imports_layout = "HorizontalVertical" diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}