[GH-ISSUE #1394] [Issue]: Rust dependency check scripts need repo config cleanup #697

Closed
opened 2026-10-20 17:32:00 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Xelvanis on GitHub (May 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1394

Originally assigned to: @TheLonelyDevil9 on GitHub.

Summary

While repairing the local dependency/tooling setup, three repo-level workflow issues surfaced. The missing local executables are now installed, so these appear to be repo script/config cleanup rather than local machine setup gaps.

  • pnpm check:rust:deps calls cargo machete --manifest-path src-tauri/Cargo.toml, but cargo-machete 0.9.2 does not support --manifest-path, so the script fails before dependency analysis.
  • Running the supported form, cargo machete src-tauri, works and reports possible unused Rust dependencies that need triage.
  • pnpm check:rust:deny runs without an explicit cargo-deny policy config, so cargo-deny falls back to defaults and rejects normal licenses such as MIT/Apache.
  • pnpm install --frozen-lockfile succeeds but reports an ignored build script for unrs-resolver; the repo should either approve it intentionally or explicitly ignore it.

Expected behavior

Rust dependency/check scripts should run with supported CLI arguments and project-owned policy/configuration:

  • pnpm check:rust:deps should invoke cargo-machete in a way the installed/current tool supports.
  • pnpm check:rust:deny should use an explicit repo policy so license/advisory failures are meaningful.
  • pnpm install --frozen-lockfile should have an intentional build-script approval/ignore decision for unrs-resolver.

Actual behavior

  • pnpm check:rust:deps fails with Unrecognized argument: --manifest-path.
  • cargo machete src-tauri works and reports:
    • marinara-integrations in src-tauri/Cargo.toml
    • marinara-storage in src-tauri/crates/assets/Cargo.toml
  • pnpm check:rust:deny fails because cargo-deny cannot find a config and applies default license rules.
  • pnpm install --frozen-lockfile passes but warns that unrs-resolver build scripts were ignored.

Steps to reproduce

  1. Install the repo dependencies with pnpm install --frozen-lockfile.
  2. Run pnpm check:rust:deps.
  3. Run cargo machete src-tauri to confirm the current supported invocation and candidate unused dependencies.
  4. Run pnpm check:rust:deny.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor-branch local checkout using current package.json scripts
  • Run mode: not relevant; local check/script execution only
  • OS + version: Windows 11 Home 10.0.26200
  • Node + pnpm versions: Node v24.16.0, pnpm 10.33.2
  • Rust version, if relevant: rustc 1.95.0
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

Relevant command observations:

pnpm check:rust:deps
> cargo machete --manifest-path src-tauri/Cargo.toml
Unrecognized argument: --manifest-path
cargo machete src-tauri
cargo-machete found the following unused dependencies in src-tauri:
marinara-engine -- src-tauri\Cargo.toml:
    marinara-integrations
marinara-assets -- src-tauri\crates\assets\Cargo.toml:
    marinara-storage
pnpm check:rust:deny
WARN unable to find a config path, falling back to default config
advisories FAILED, bans ok, licenses FAILED, sources ok
pnpm install --frozen-lockfile
Ignored build scripts: unrs-resolver

Regression notes

Unknown. This may be WIP around dependency-policy checks or the result of tool version drift.

Additional context

This was found while fixing local missing toolchain pieces. Python, cargo-nextest, cargo-deny, and cargo-machete were installed and verified locally before these repo-level failures were observed.

Potential next steps:

  • Update check:rust:deps to call cargo-machete with a supported path/workdir shape.
  • Triage whether the reported Rust dependencies are true unused deps or cargo-machete false positives.
  • Add or wire a repo-owned cargo-deny policy config.
  • Decide whether unrs-resolver belongs in pnpm.onlyBuiltDependencies or pnpm.ignoredBuiltDependencies.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (May 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1394 Originally assigned to: @TheLonelyDevil9 on GitHub. ## Summary While repairing the local dependency/tooling setup, three repo-level workflow issues surfaced. The missing local executables are now installed, so these appear to be repo script/config cleanup rather than local machine setup gaps. - `pnpm check:rust:deps` calls `cargo machete --manifest-path src-tauri/Cargo.toml`, but `cargo-machete 0.9.2` does not support `--manifest-path`, so the script fails before dependency analysis. - Running the supported form, `cargo machete src-tauri`, works and reports possible unused Rust dependencies that need triage. - `pnpm check:rust:deny` runs without an explicit `cargo-deny` policy config, so `cargo-deny` falls back to defaults and rejects normal licenses such as MIT/Apache. - `pnpm install --frozen-lockfile` succeeds but reports an ignored build script for `unrs-resolver`; the repo should either approve it intentionally or explicitly ignore it. ## Expected behavior Rust dependency/check scripts should run with supported CLI arguments and project-owned policy/configuration: - `pnpm check:rust:deps` should invoke `cargo-machete` in a way the installed/current tool supports. - `pnpm check:rust:deny` should use an explicit repo policy so license/advisory failures are meaningful. - `pnpm install --frozen-lockfile` should have an intentional build-script approval/ignore decision for `unrs-resolver`. ## Actual behavior - `pnpm check:rust:deps` fails with `Unrecognized argument: --manifest-path`. - `cargo machete src-tauri` works and reports: - `marinara-integrations` in `src-tauri/Cargo.toml` - `marinara-storage` in `src-tauri/crates/assets/Cargo.toml` - `pnpm check:rust:deny` fails because `cargo-deny` cannot find a config and applies default license rules. - `pnpm install --frozen-lockfile` passes but warns that `unrs-resolver` build scripts were ignored. ## Steps to reproduce 1. Install the repo dependencies with `pnpm install --frozen-lockfile`. 2. Run `pnpm check:rust:deps`. 3. Run `cargo machete src-tauri` to confirm the current supported invocation and candidate unused dependencies. 4. Run `pnpm check:rust:deny`. ## Impact area <!-- Check the areas you think are relevant. Leave uncertain items unchecked. --> - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [x] Docs, contributor workflow, or templates ## Environment - Branch or commit: refactor-branch local checkout using current `package.json` scripts - Run mode: not relevant; local check/script execution only - OS + version: Windows 11 Home 10.0.26200 - Node + pnpm versions: Node v24.16.0, pnpm 10.33.2 - Rust version, if relevant: rustc 1.95.0 - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video Relevant command observations: ```text pnpm check:rust:deps > cargo machete --manifest-path src-tauri/Cargo.toml Unrecognized argument: --manifest-path ``` ```text cargo machete src-tauri cargo-machete found the following unused dependencies in src-tauri: marinara-engine -- src-tauri\Cargo.toml: marinara-integrations marinara-assets -- src-tauri\crates\assets\Cargo.toml: marinara-storage ``` ```text pnpm check:rust:deny WARN unable to find a config path, falling back to default config advisories FAILED, bans ok, licenses FAILED, sources ok ``` ```text pnpm install --frozen-lockfile Ignored build scripts: unrs-resolver ``` ## Regression notes Unknown. This may be WIP around dependency-policy checks or the result of tool version drift. ## Additional context This was found while fixing local missing toolchain pieces. Python, `cargo-nextest`, `cargo-deny`, and `cargo-machete` were installed and verified locally before these repo-level failures were observed. Potential next steps: - Update `check:rust:deps` to call `cargo-machete` with a supported path/workdir shape. - Triage whether the reported Rust dependencies are true unused deps or cargo-machete false positives. - Add or wire a repo-owned `cargo-deny` policy config. - Decide whether `unrs-resolver` belongs in `pnpm.onlyBuiltDependencies` or `pnpm.ignoredBuiltDependencies`. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:32:00 +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#697
No description provided.