Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
84 lines (82 loc) · 4.18 KB
/
Copy pathCargo.toml
File metadata and controls
84 lines (82 loc) · 4.18 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
[workspace]
members = [
"crates/catalogue-core",
"crates/catalogue-signals",
"crates/catalogue-bot",
"crates/catalogue-github",
"crates/catalogue-triage",
"crates/catalogue-state",
"crates/catalogue-site",
"crates/catalogue",
"crates/catalogue-search-wasm",
]
resolver = "3"
[workspace.package]
version = "0.1.2"
edition = "2024"
rust-version = "1.95"
license = "Apache-2.0"
repository = "https://github.com/ml-rust/ml-rust.github.io"
[workspace.dependencies]
# Derive-based (de)serialization for every data file type.
serde = { version = "1", features = ["derive"] }
# Parses the TOML data files and writes native TOML dates.
toml = "1"
# Typed error enums in the core and the CLI library.
thiserror = "2"
# Calendar dates (`added`, `date`, `since`) and the UTC timestamps in the dump.
jiff = "0.2"
# Parsed and normalised repository, homepage, issue and evidence links.
url = { version = "2", features = ["serde"] }
# Argument parsing for the `catalogue` command.
clap = { version = "4", features = ["derive"] }
# Gzip decoding of the crates.io database dump, and encoding in its tests.
# The zlib-rs backend inflates the dump in fewer instructions than miniz_oxide.
flate2 = { version = "1", default-features = false, features = ["zlib-rs"] }
# Streams the entries of the crates.io database dump archive.
tar = "0.4"
# Reads the psql CSV tables inside the crates.io database dump.
csv = "1"
# Parses `metadata.json` in the crates.io database dump.
serde_json = "1"
# Fast hashing for maps keyed by crates.io integer ids.
rustc-hash = "2"
# Blocking HTTPS client with rustls for the crates.io database dump download and the GitHub search.
reqwest = { version = "0.13", default-features = false, features = ["blocking", "rustls"] }
# RS256 signing of the GitHub App JWT, over the aws-lc-rs that rustls already links.
jsonwebtoken = { version = "11", default-features = false, features = ["aws_lc_rs", "use_pem"] }
# SHA-256 of issue bodies and check reports in the bot comment marker, over the
# aws-lc-rs that rustls already links.
aws-lc-rs = { version = "1", default-features = false, features = ["aws-lc-sys"] }
# HTML templates for the static site. Escapes every value by default.
askama = { version = "0.16", default-features = false, features = ["derive", "std"] }
# Writes README Markdown as HTML for the parser below. The site writes its own tags from the result.
pulldown-cmark = { version = "0.13", default-features = false, features = ["html"] }
# Parses that HTML the way a browser does, so README raw HTML reads as a document.
scraper = { version = "0.29", default-features = false }
# Names the edges of the walk over the document `scraper` parses. The version `scraper` uses.
ego-tree = "0.11"
# The lexical search index of the static site: records to BM25 index files.
# Not on crates.io yet: `.cargo/config.toml.example` patches it to a local checkout.
oxidoc-search = { version = "0.1", default-features = false, features = ["builder"] }
# The file that keeps the AI summaries, one row per project and release. Bundled, so the static
# release binary needs no system library.
rusqlite = { version = "0.41", features = ["bundled"] }
# Zeroes the App key bytes and the access tokens when they drop.
zeroize = "1"
# Temporary directories for the download tests, created under the build directory.
tempfile = "3"
# Pure data model and validation, shared by the CLI.
catalogue-core = { path = "crates/catalogue-core" }
# Raw signals from the crates.io database dump, used by the dump commands.
catalogue-signals = { path = "crates/catalogue-signals" }
# Issue form parsing and check reports, used by the bot commands.
catalogue-bot = { path = "crates/catalogue-bot" }
# The GitHub App client of the bot: App auth, installation tokens and label sync.
catalogue-github = { path = "crates/catalogue-github" }
# The advisory LLM link check of the bot: provider fallback, Ollama web_fetch and GitHub page reads.
catalogue-triage = { path = "crates/catalogue-triage" }
# The weekly state report: what models read, the prompts and the checks on every answer.
catalogue-state = { path = "crates/catalogue-state" }
# The static site renderer: templates, page data and refusal rules.
catalogue-site = { path = "crates/catalogue-site" }