[package]
edition = "2024"
rust-version = "1.91"
name = "zift"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Scan codebases for embedded authorization logic and generate Policy as Code (Rego/OPA today)"
homepage = "https://github.com/EnforceAuth/zift"
documentation = "https://docs.rs/zift"
readme = "README.md"
keywords = [
"authorization",
"policy-as-code",
"opa",
"rego",
"static-analysis",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/EnforceAuth/zift"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/zift-{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[features]
unstable = []
[lib]
name = "zift"
path = "src/lib.rs"
[[bin]]
name = "zift"
path = "src/main.rs"
[[test]]
name = "deep_http_integration"
path = "tests/deep_http_integration.rs"
required-features = ["unstable"]
[[test]]
name = "deep_subprocess_integration"
path = "tests/deep_subprocess_integration.rs"
required-features = ["unstable"]
[[test]]
name = "mcp_stdio_integration"
path = "tests/mcp_stdio_integration.rs"
required-features = ["unstable"]
[[test]]
name = "scanner_enforcement_points"
path = "tests/scanner_enforcement_points.rs"
required-features = ["unstable"]
[dependencies.cedar-policy]
version = "4"
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.ignore]
version = "0.4"
[dependencies.regex]
version = "1"
[dependencies.regorus]
version = "0.10"
features = ["arc"]
default-features = false
[dependencies.reqwest]
version = "0.12"
features = [
"blocking",
"json",
"rustls-tls",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.11"
[dependencies.streaming-iterator]
version = "0.1"
[dependencies.thiserror]
version = "2"
[dependencies.toml]
version = "1.1"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dependencies.tree-sitter]
version = "0.26"
[dependencies.tree-sitter-c-sharp]
version = "0.23"
[dependencies.tree-sitter-go]
version = "0.25"
[dependencies.tree-sitter-java]
version = "0.23"
[dependencies.tree-sitter-javascript]
version = "0.25"
[dependencies.tree-sitter-python]
version = "0.25"
[dependencies.tree-sitter-typescript]
version = "0.23"
[dependencies.url]
version = "2"
[dev-dependencies.mockito]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[target."cfg(unix)".dependencies.libc]
version = "0.2"