From 606c23b7cb18ee3ff575602c346933a24b26a4d0 Mon Sep 17 00:00:00 2001 From: 0xh3rman <119309671+0xh3rman@users.noreply.github.com> Date: Fri, 6 Mar 2026 19:41:12 +0900 Subject: [PATCH] Update Rust workspace resolver and rustfmt Bump Cargo workspace resolver to 3 and align formatting settings: add style_edition = "2024" and increase max_width to 180 in rustfmt.toml. Update skills/code-style.md to reflect the new 180-character line length. These changes ensure the project uses the newer Cargo resolver behavior and consistent rustfmt configuration. --- Cargo.toml | 2 +- rustfmt.toml | 1 + skills/code-style.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 68ab80425..895b306f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/gemwalletcom/core" documentation = "https://github.com/gemwalletcom" [workspace] -resolver = "2" +resolver = "3" members = [ "apps/api", "apps/daemon", diff --git a/rustfmt.toml b/rustfmt.toml index 279211b1e..23899e350 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1,4 @@ edition = "2024" +style_edition = "2024" max_width = 180 reorder_imports = true diff --git a/skills/code-style.md b/skills/code-style.md index a9b51bcfa..bd29a0d90 100644 --- a/skills/code-style.md +++ b/skills/code-style.md @@ -4,7 +4,7 @@ Follow the existing code style patterns unless explicitly asked to change. ## Formatting -- Line length: 160 characters maximum (configured in `rustfmt.toml`) +- Line length: 180 characters maximum (configured in `rustfmt.toml`) - Indentation: 4 spaces (Rust standard) - Imports: Automatically reordered with rustfmt - Only format files you modified: `rustfmt --edition 2024 ...`