ripex 0.3.0

Multi-language structural parsing and fact extraction.
Documentation
[package]
name = "ripex"
version = "0.3.0"
edition = "2021"
rust-version = "1.85.0"
license = "MIT"
description = "Multi-language structural parsing and fact extraction."
homepage = "https://github.com/astraive/ripex"
repository = "https://github.com/astraive/ripex"
readme = "README.md"
keywords = ["parser", "parser-combinator", "ast", "code-analysis", "recursive-descent"]
categories = ["parsing", "development-tools"]
default-run = "ripex"
exclude = [
    "/target",
    "/.graxus",
    "graxus.yaml",
]

[package.metadata.security]
contact = "neerajcodz@gmail.com"

[lib]
name = "ripex"
path = "src/lib.rs"

[[bin]]
name = "ripex"
path = "src/main.rs"
required-features = ["cli"]

[features]
default = ["lang-all"]
serde = ["dep:serde"]
cli = ["dep:anyhow", "dep:clap", "serde"]
lang-all = ["lang-python", "lang-go", "lang-rust", "lang-c", "lang-cpp", "lang-csharp", "lang-js"]
lang-python = []
lang-go = []
lang-rust = []
lang-c = []
lang-cpp = []
lang-csharp = []
lang-js = []

[dependencies]
serde = { version = "1", features = ["derive"], optional = true }
serde_json = "1"
clap = { version = "4", features = ["derive"], optional = true }
anyhow = { version = "1", optional = true }

[profile.release]
opt-level = "z"     # Optimize for size
lto = "fat"         # Full link-time optimization
strip = "symbols"   # Strip debug symbols
codegen-units = 1   # Maximize optimizations
panic = "abort"     # Abort on panic (smaller binary)

[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
tree-sitter = "0.25"
tree-sitter-c = "0.24"
tree-sitter-cpp = "0.23"
tree-sitter-c-sharp = "0.23"
tree-sitter-go = "0.23"
tree-sitter-javascript = "0.23"
tree-sitter-python = "0.23"
tree-sitter-rust = "0.24"
tree-sitter-typescript = "0.23"

[[example]]
name = "evidence_report"
path = "examples/evidence_report.rs"
required-features = ["lang-all"]

[[bench]]
name = "parse_all_langs"
harness = false

# Benchmark profile: speed over size (the release profile is size-optimized,
# which penalizes throughput benchmarks; use a dedicated fast profile).
[profile.bench]
opt-level = 3
lto = "thin"
codegen-units = 1
debug = false