[package]
edition = "2024"
name = "monochromatic-git-policy-cli"
version = "0.5.13"
build = false
include = [
"src/native/**/*.rs",
"src/native/dependent_version_fixtures/*.json",
"src/native/service_units/*",
"src/native/index_lock_restart_manager.ps1",
"/Cargo.toml",
"/Cargo.lock",
"/README.md",
"LICENSES/*.txt",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Repository-owned Git policy wrapper: forwards Git commands and checks commits against configured policies."
homepage = "https://github.com/Aquaticats/Monochromatic/tree/main/package/git-policy/cli"
readme = "README.md"
license = "LGPL-3.0-or-later"
repository = "https://github.com/Aquaticats/Monochromatic.git"
[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"
[lib]
name = "git_policy_cli"
path = "src/native/lib.rs"
[[bin]]
name = "cli-git-native"
path = "src/native/main.rs"
[[bin]]
name = "cli-git-service"
path = "src/native/service_main.rs"
[[test]]
name = "native_binary"
path = "src/native/binary_tests.rs"
[[test]]
name = "native_candidates"
path = "src/native/candidate_consumer_tests.rs"
[dependencies.forbidden-strings]
version = "=0.6.1"
[dependencies.getrandom]
version = ">=0.4.2"
[dependencies.miniz_oxide]
version = ">=0.9.1"
features = ["with-alloc"]
default-features = false
[dependencies.monochromatic-catalog-specifier]
version = "=0.1.0"
[dependencies.monochromatic-jsonc-edit]
version = "=0.1.2"
[dependencies.monochromatic-lint]
version = "=0.5.0"
default-features = false
[dependencies.serde_json]
version = ">=1.0.154"
[dependencies.ureq]
version = ">=3.5.0"
features = ["rustls"]
default-features = false
[target."cfg(unix)".dependencies.ignore]
version = ">=0.4.34"
[target."cfg(unix)".dependencies.libc]
version = ">=0.2.191"
[target."cfg(unix)".dependencies.tempfile]
version = ">=3.27.0"
[lints.clippy]
disallowed_methods = "deny"
implicit_return = "deny"
needless_return = "allow"
shadow_reuse = "deny"
shadow_same = "deny"
shadow_unrelated = "deny"
[lints.clippy.complexity]
level = "allow"
priority = -1
[profile.dev.build-override]
opt-level = 3
[profile.release]
panic = "unwind"
overflow-checks = true
strip = "symbols"
[profile.release.build-override]
opt-level = 3