[package]
edition = "2021"
rust-version = "1.75"
name = "context7-cli"
version = "0.5.2"
authors = ["Danilo Aguiar <daniloaguiarbr@proton.me>"]
build = false
exclude = [
".env",
".serena/",
".claude/",
"logs/",
"CLAUDE.md",
"AGENTS.md",
"crates.md",
"docs_prd/",
"docs_rules/",
"como_usa.md",
"ralph-loop.local.md",
"gaps.md",
"graphrag.sqlite",
"graphrag.sqlite-shm",
"graphrag.sqlite-wal",
".ingest-queue.sqlite-shm",
".ingest-queue.sqlite-wal",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "context7"
description = "Search library documentation from your terminal — zero runtime, bilingual (EN/PT), multi-key rotation"
homepage = "https://github.com/danilo-aguiar-br/context7-cli"
documentation = "https://docs.rs/context7-cli"
readme = "README.md"
keywords = [
"context7",
"cli",
"documentation",
"search",
"api-client",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/danilo-aguiar-br/context7-cli"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[badges.maintenance]
status = "actively-maintained"
[lib]
name = "context7_cli"
path = "src/lib.rs"
[[bin]]
name = "context7"
path = "src/main.rs"
[[test]]
name = "api_integration"
path = "tests/api_integration.rs"
[[test]]
name = "cli_integration"
path = "tests/cli_integration.rs"
[[test]]
name = "health_integration"
path = "tests/health_integration.rs"
[[test]]
name = "i18n_integration"
path = "tests/i18n_integration.rs"
[[test]]
name = "storage_integration"
path = "tests/storage_integration.rs"
[dependencies.anyhow]
version = "1"
[dependencies.chrono]
version = "0.4.44"
features = ["serde"]
[dependencies.clap]
version = "=4.5.32"
features = [
"derive",
"env",
"color",
]
[dependencies.clap_complete]
version = "=4.5.46"
[dependencies.colored]
version = "2"
[dependencies.directories]
version = "6.0.0"
[dependencies.fastrand]
version = "2"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"http2",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sys-locale]
version = "0.3"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"time",
"fs",
"signal",
]
[dependencies.toml]
version = "0.8.23"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-appender]
version = "0.2"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
"ansi",
]
[dependencies.unicode-normalization]
version = "0.1"
[dependencies.zeroize]
version = "1"
features = ["derive"]
[dev-dependencies.assert_cmd]
version = "=2.1.2"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.wiremock]
version = "0.6"
[target.'cfg(target_env = "musl")'.dependencies.mimalloc]
version = "0.1"
default-features = false
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_Console",
]
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
default_trait_access = "allow"
doc_markdown = "allow"
double_must_use = "allow"
manual_let_else = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_collect = "allow"
needless_pass_by_value = "allow"
redundant_closure_for_method_calls = "allow"
return_self_not_must_use = "warn"
semicolon_if_nothing_returned = "warn"
similar_names = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unused_self = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "warn"
unused_must_use = "allow"
[lints.rustdoc]
broken_intra_doc_links = "warn"
missing_crate_level_docs = "warn"
private_intra_doc_links = "warn"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"