-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathCargo.toml
More file actions
102 lines (88 loc) · 2.89 KB
/
Copy pathCargo.toml
File metadata and controls
102 lines (88 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[package]
name = "patent"
version = "0.12.0"
edition = "2021"
rust-version = "1.88"
license = "MIT OR Apache-2.0"
description = "A prior-art search for your code ideas — has this dev tool already been shipped?"
repository = "https://github.com/r14dd/patent"
homepage = "https://github.com/r14dd/patent"
documentation = "https://docs.rs/patent"
authors = ["Riad Mukhtarov"]
readme = "README.md"
keywords = ["prior-art", "semantic-search", "embeddings", "search", "cli"]
categories = ["command-line-utilities", "development-tools"]
exclude = [
".github/",
"clippy.toml",
"rustfmt.toml",
".plan-source.md",
"roadmap-*.md",
# Demo assets are served from GitHub (raw URLs in the README), not shipped
# in the crate tarball.
"demo.tape",
"demo.gif",
"social-preview.png",
"dist-workspace.toml",
"showcase.tape",
"showcase.gif",
"showcase.png",
# Nix dev-environment files — not needed by crate consumers.
"flake.nix",
"flake.lock",
# Local WIP. It lives under src/ and is untracked but not gitignored, so
# `cargo package` sweeps it into the tarball; excluding it here is enforced
# by cargo on every publish rather than by remembering to move it aside.
# If it ever becomes a real module, the publish verify build fails loudly on
# the missing file instead of shipping a broken crate.
"src/pipeline.rs",
]
[lib]
name = "patent"
path = "src/lib.rs"
[[bin]]
name = "patent"
path = "src/bin/patent/main.rs"
[dependencies]
# CLI / runtime
clap = { version = "4", features = ["derive", "env"] }
clap_complete = "4"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time"] }
futures = "0.3"
async-trait = "0.1"
# HTTP + serialization
reqwest = { version = "0.13", default-features = false, features = ["json", "rustls", "rustls-native-certs", "query"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# HTML scraping (PyPI has no public search API; we parse the search page)
scraper = "0.27"
# Timestamps — normalising each registry's "last updated" into RFC 3339 and
# computing the staleness signal. Already in the tree via fastembed/ratatui, so
# depending on it directly adds no new compile unit.
time = { version = "0.3", features = ["parsing", "formatting"] }
# Errors
anyhow = "1"
thiserror = "2"
# Stable per-user cache dir for the embedding model and config file
dirs = "6"
# Config file
toml = "1.1"
# Ranking (M3) — semantic embeddings, model downloads on first run
fastembed = "6"
# TUI (M5)
ratatui = "0.30"
crossterm = "0.29"
open = "5"
arboard = "3"
[dev-dependencies]
wiremock = "0.6"
tokio-test = "0.4"
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"
# Pin the docs.rs build so the native ONNX Runtime dependency (via fastembed)
# can't silently break the advertised docs.rs page.
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]