rusty-commit 1.0.21

Rust-powered AI commit message generator - Write impressive commits in seconds
Documentation
[package]
name = "rusty-commit"
version = "1.0.21"
edition = "2021"
authors = ["Rusty Commit Contributors"]
description = "Rust-powered AI commit message generator - Write impressive commits in seconds"
license = "MIT"
repository = "https://github.com/hongkongkiwi/rusty-commit"
keywords = ["git", "ai", "commit", "rust", "cli"]
categories = ["command-line-utilities", "development-tools"]
readme = "README.md"
homepage = "https://github.com/hongkongkiwi/rusty-commit"
documentation = "https://docs.rs/rusty-commit"

# Publish to crates.io
publish = ["crates-io"]

[[bin]]
name = "rco"
path = "src/main.rs"

[features]
# Default features - common providers enabled by default for convenience
# Users can disable individual providers to reduce binary size
default = [
    # Core providers
    "openai",
    "anthropic",
    "ollama",
    "gemini",
    "azure",
    "perplexity",
    "xai",
    # OpenAI-compatible providers
    "openrouter",
    "groq",
    "deepseek",
    "together",
    "deepinfra",
    "mistral",
    "github-models",
    "fireworks",
    "moonshot",
    "dashscope",
    # Cloud providers
    "huggingface",
    "bedrock",
    "vertex",
]
# Enable secure storage for API keys (requires system keychain)
secure-storage = ["keyring"]
# Include extra documentation (for docs.rs)
docs = []

# AI Provider features - all providers are opt-in
# This allows users to build minimal binaries with only needed providers
openai = ["async-openai"]
anthropic = []
ollama = []
gemini = []
azure = []
perplexity = []
xai = ["async-openai"]
huggingface = []
bedrock = []
vertex = ["chrono"]

# OpenAI-compatible provider presets - enable all for maximum compatibility
# These don't need extra dependencies, they use the openai module
openrouter = ["openai"]
groq = ["openai"]
deepseek = ["openai"]
together = ["openai"]
deepinfra = ["openai"]
mistral = ["openai"]
github-models = ["openai"]
fireworks = ["openai"]
moonshot = ["openai"]
dashscope = ["openai"]

[dependencies]
# CLI and UI
clap = { version = "4.5", features = ["derive", "env", "help"] }
clap_complete = "4.5"
clap_complete_fig = "4.5"
colored = "3.0"
dialoguer = { version = "0.12", features = ["fuzzy-select"] }
indicatif = "0.18"
console = "0.16"

# Async runtime
tokio = { version = "1.35", features = ["full"] }
async-trait = "0.1"

# HTTP and API clients
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls"] }
async-openai = { version = "0.32", optional = true, features = ["chat-completion"] }
backoff = { version = "0.4", features = ["tokio"] }

# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.9"

# Git operations
git2 = "0.20"

# Error handling
anyhow = "1.0"
thiserror = "2.0"

# Configuration
config = "0.15"
dirs = "6.0"

# Utilities
regex = "1.10"
once_cell = "1.19"
url = "2.5"
base64 = "0.22"
chrono = { version = "0.4", default-features = false, optional = true }

# Cloud providers
aws-config = { version = "1", default-features = false }
aws-sdk-bedrockruntime = { version = "1", default-features = false }
sha2 = "0.10"
tiktoken-rs = "0.9"
keyring = { version = "3.6", optional = true }
uuid = { version = "1.10", features = ["v4"] }
webbrowser = "1.0"
warp = { version = "0.4", features = ["server"] }
semver = "1.0"
which = "8.0"
tempfile = "3.9"
futures = "0.3"
flate2 = "1.0"
tar = "0.4"
zip = "7.1"
arboard = "3.4"

# MCP (Model Context Protocol) support
rmcp = { version = "0.13.0", features = ["server"] }
serde_urlencoded = "0.7"
rand = "0.9"

# OpenSSL for static musl/Alpine builds
openssl = { version = "0.10", features = ["vendored"] }

# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

# Testing
[dev-dependencies]
mockito = "1.2"
assert_cmd = "2.0"
predicates = "3.0"
proptest = "1.4"

[profile.release]
lto = true
opt-level = 3
codegen-units = 1
strip = true