Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103[package]name = "monochromatic-git-policy-cli"version = "0.1.1"edition = "2024"description = "Repository-owned Git policy wrapper: forwards Git commands and checks commits against configured policies."license = "LGPL-3.0-or-later"readme = "README.md"repository = "https://github.com/Aquaticat/Monochromatic.git"# `include` patterns are gitignore-style, so an unanchored `README.md` would also package `e2e/README.md`.include = [ "src/native/**/*.rs", "src/native/dependent_version_fixtures/*.json", "src/native/index_lock_restart_manager.ps1", "/Cargo.toml", "/Cargo.lock", "/README.md", "LICENSES/*.txt",]homepage = "https://github.com/Aquaticat/Monochromatic/tree/main/package/git-policy/cli"
[lib]name = "git_policy_cli"path = "src/native/lib.rs"
# The artifact is deliberately not named `git`: a `target/*/git` or a tool `bin/git` on PATH would shadow Git by accident.# The repository's mise tool entry links it as `git` in a per-worktree directory after installing it.[[bin]]name = "cli-git-native"path = "src/native/main.rs"
# cargo-binstall's default URL is {repo}/releases/download/v{version}/{name}-{target}-v{version},# but this repository tags each crate's release monochromatic-git-policy-cli-v<version> and names the archive# monochromatic-git-policy-cli-<version>-<target>, so without this table mise falls back to compiling from source.# Only Linux archives are released, and only for the GNU targets; any other target compiles from source.# doc/troubleshooting/mise-cargo-binstall-falls-back-to-compiling.md has the evidence.[package.metadata.binstall]pkg-url = "{ repo }/releases/download/{ name }-v{ version }/{ name }-{ version }-{ target }{ archive-suffix }"bin-dir = "{ name }-{ version }-{ target }/{ bin }{ binary-ext }"pkg-fmt = "tgz"
# Consumer-level controls that start the built executable against real Git.[[test]]name = "native_binary"path = "src/native/binary_tests.rs"
# A consumer of the candidate and scanner layers that can reach only the library's public interface.[[test]]name = "native_candidates"path = "src/native/candidate_consumer_tests.rs"
[dependencies]# Both native tools use the already adopted comment-preserving JSONC foundation.monochromatic-jsonc-edit = { path = "../../rust-module/jsonc-edit", version = "0.1.1" }# The repository's own scanner, linked in-process instead of spawned: `src/native/scanner_adapter.rs`# loads its rules once per invocation and scans candidate bytes through `Scanner::scan`.# Its catch boundaries need this crate's effective profile to unwind; `scanner_adapter.rs` refuses to build otherwise.forbidden-strings = { path = "../../cli/forbidden-strings", version = "0.5.0" }# Lock and journal records are JSON that the incumbent writes with `JSON.stringify` and reads with `JSON.parse`;# both wrappers read each other's records (doc/handover/cli-git-native-transactions.md, "Dependencies").# The scanner already links this exact version, so it adds no package to the lockfile.serde_json = "1"# Unguessable lock tokens and transaction IDs, the incumbent's `randomUUID`, from the operating system's source.# Already in the lockfile through the scanner's `tempfile`.getrandom = "0.4"
# `sigaction` with signal details, `kill` and process-group facts, which the standard library does not expose.# Already in the lockfile through the scanner's dependencies.[target.'cfg(unix)'.dependencies]libc = "0.2"# The `markdown/autofix` policy's `exclude` patterns are gitignore syntax; the linter it runs and the# scanner above match them with this crate's gitignore matcher, already locked through the scanner.ignore = "0.4"# The policy's one-rule linter configuration, and the linter child's input and output, are files created# by this crate's exclusive, private temporary-file calls; it is already locked through the scanner's `gix-tempfile`.tempfile = "3"
[lints.clippy]complexity = { level = "allow", priority = -1 }disallowed_methods = "deny"implicit_return = "deny"needless_return = "allow"shadow_reuse = "deny"shadow_same = "deny"shadow_unrelated = "deny"
[profile.release]panic = "unwind"overflow-checks = true
# The scanner's `build.rs` precompiles its embedded baseline through the forbidden-regex# build-dependency, which Cargo builds at `opt-level = 0` by default.# Profiles are read only from this workspace root, so the scanner manifest's own build-override# does not reach this crate; see ../../cli/forbidden-strings/Cargo.toml for the measurement# (390.8s unoptimized against 98.5s at `opt-level = 3`, identical output).[profile.release.build-override]opt-level = 3
[profile.dev.build-override]opt-level = 3
# The native implementation keeps the repository's standalone Cargo ownership convention.[workspace]