[PR #1395] [MERGED] Clean up Rust dependency checks #5063

Closed
opened 2026-10-22 04:12:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1395
Author: @TheLonelyDevil9
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @TheLonelyDevil9

Base: refactor ← Head: fix/1394-rust-dependency-checks


📝 Commits (1)

  • d6422d3 Clean up Rust dependency checks

📊 Changes

11 files changed (+54 additions, -8 deletions)

View changed files

📝 .github/workflows/ci.yml (+2 -2)
➕ deny.toml (+40 -0)
📝 package.json (+5 -2)
📝 src-tauri/Cargo.lock (+0 -2)
📝 src-tauri/Cargo.toml (+1 -1)
📝 src-tauri/crates/assets/Cargo.toml (+1 -1)
📝 src-tauri/crates/core/Cargo.toml (+1 -0)
📝 src-tauri/crates/integrations/Cargo.toml (+1 -0)
📝 src-tauri/crates/llm/Cargo.toml (+1 -0)
📝 src-tauri/crates/security/Cargo.toml (+1 -0)
📝 src-tauri/crates/storage/Cargo.toml (+1 -0)

📄 Description

What?

  • Fix the repo Rust dependency-check scripts so cargo-machete uses its supported path invocation.
  • Add an explicit cargo-deny policy and wire local scripts/CI to use it.
  • Remove two unused Rust path dependencies reported by cargo-machete.
  • Mark private Rust workspace crates as unpublished and explicitly ignore the safe-to-ignore unrs-resolver pnpm build script.

Why?

Issue #1394 reported that the Rust dependency tooling was failing because repo scripts relied on unsupported/default tool behavior instead of project-owned configuration.

Closes #1394

How?

  • Changed check:rust:deps and the CI report step from cargo machete --manifest-path ... to cargo machete src-tauri.
  • Changed check:rust:deny and CI to pass check --config deny.toml.
  • Added deny.toml with repo-owned advisory, ban, license, and source policy.
  • Removed marinara-integrations from the root Tauri crate and marinara-storage from marinara-assets, then let Cargo.lock update.

Testing?

  • pnpm install --frozen-lockfile
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace
  • pnpm check:docs
  • PATH="/e/TEMP/opencode/cargo-tools/bin:$PATH" pnpm check:rust:deny
  • PATH="/e/TEMP/opencode/cargo-tools/bin:$PATH" pnpm check:rust:deps
  • pnpm check:architecture

Screenshots (optional)

Not applicable; this is repo tooling/config cleanup.

Anything Else?

cargo-deny still reports duplicate dependency warnings, but the configured policy exits successfully so the report is usable without blocking normal checks.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1395 **Author:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Created:** 5/27/2026 **Status:** ✅ Merged **Merged:** 5/27/2026 **Merged by:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Base:** `refactor` ← **Head:** `fix/1394-rust-dependency-checks` --- ### 📝 Commits (1) - [`d6422d3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d6422d3356ba6c0ceff963d821a9baea366db2c5) Clean up Rust dependency checks ### 📊 Changes **11 files changed** (+54 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+2 -2) ➕ `deny.toml` (+40 -0) 📝 `package.json` (+5 -2) 📝 `src-tauri/Cargo.lock` (+0 -2) 📝 `src-tauri/Cargo.toml` (+1 -1) 📝 `src-tauri/crates/assets/Cargo.toml` (+1 -1) 📝 `src-tauri/crates/core/Cargo.toml` (+1 -0) 📝 `src-tauri/crates/integrations/Cargo.toml` (+1 -0) 📝 `src-tauri/crates/llm/Cargo.toml` (+1 -0) 📝 `src-tauri/crates/security/Cargo.toml` (+1 -0) 📝 `src-tauri/crates/storage/Cargo.toml` (+1 -0) </details> ### 📄 Description ## What? - Fix the repo Rust dependency-check scripts so `cargo-machete` uses its supported path invocation. - Add an explicit `cargo-deny` policy and wire local scripts/CI to use it. - Remove two unused Rust path dependencies reported by `cargo-machete`. - Mark private Rust workspace crates as unpublished and explicitly ignore the safe-to-ignore `unrs-resolver` pnpm build script. ## Why? Issue #1394 reported that the Rust dependency tooling was failing because repo scripts relied on unsupported/default tool behavior instead of project-owned configuration. Closes #1394 ## How? - Changed `check:rust:deps` and the CI report step from `cargo machete --manifest-path ...` to `cargo machete src-tauri`. - Changed `check:rust:deny` and CI to pass `check --config deny.toml`. - Added `deny.toml` with repo-owned advisory, ban, license, and source policy. - Removed `marinara-integrations` from the root Tauri crate and `marinara-storage` from `marinara-assets`, then let `Cargo.lock` update. ## Testing? - `pnpm install --frozen-lockfile` - `cargo check --manifest-path src-tauri/Cargo.toml --workspace` - `pnpm check:docs` - `PATH="/e/TEMP/opencode/cargo-tools/bin:$PATH" pnpm check:rust:deny` - `PATH="/e/TEMP/opencode/cargo-tools/bin:$PATH" pnpm check:rust:deps` - `pnpm check:architecture` ## Screenshots (optional) Not applicable; this is repo tooling/config cleanup. ## Anything Else? `cargo-deny` still reports duplicate dependency warnings, but the configured policy exits successfully so the report is usable without blocking normal checks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12:53 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5063
No description provided.