Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
129 lines (117 loc) · 4.36 KB
/
Copy pathCargo.toml
File metadata and controls
129 lines (117 loc) · 4.36 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[workspace]
resolver = "2"
members = ["crates/*"]
[workspace.package]
version = "0.4.0"
edition = "2024"
# sqlx 0.9 declares rust-version 1.94.0; the workspace cannot claim less.
rust-version = "1.94"
license = "AGPL-3.0-only"
authors = ["Yutaka Nishimura <ytk.nishimura@gmail.com>"]
repository = "https://github.com/ynishi/evalhub"
homepage = "https://github.com/ynishi/evalhub"
# Project-level pointer. Each crate overrides it with its own docs.rs page.
documentation = "https://github.com/ynishi/evalhub#readme"
# Relative to the workspace root; cargo copies it into each package.
readme = "README.md"
description = "A hosting service for named, versioned LLM evaluation results and their materials."
keywords = ["llm", "evaluation", "benchmark", "hub"]
categories = ["web-programming::http-server", "science"]
[workspace.dependencies]
# internal
evalhub-schema = { path = "crates/evalhub-schema", version = "0.4.0" }
evalhub-core = { path = "crates/evalhub-core", version = "0.4.0" }
evalhub-query = { path = "crates/evalhub-query", version = "0.4.0" }
evalhub-store = { path = "crates/evalhub-store", version = "0.4.0" }
# serde
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# error / log
thiserror = "2"
anyhow = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# ids / time / hashing
ulid = { version = "3", features = ["serde", "uuid"] }
uuid = { version = "1", features = ["serde", "v4"] }
chrono = { version = "0.4", features = ["serde"] }
sha2 = "0.11"
hex = "0.4"
hmac = "0.13"
subtle = "2"
base64 = "0.23"
rand = "0.10"
# schema / validation / canonical form
schemars = { version = "1", features = ["chrono04"] }
jsonschema = { version = "0.56", default-features = false }
serde_json_canonicalizer = "0.3"
# query DSL. The `dsl-kit` facade re-exports only the interpreter side
# (dsl-kit-core + the DslNode derive); the grammar needs the schema
# reflection, the JSON front-end and the DslSchema / DslBuild derives,
# which live in these three crates.
dsl-kit-macros = "0.11"
dsl-kit-schema = "0.11"
dsl-kit-parse = "0.11"
# The `DslNode` derive expands to `::dsl_kit_core::…`, and `DslBuild`
# mints ids from its `IdGen`, so the AST's crate names it directly.
dsl-kit-core = "0.11"
# storage
sqlx = { version = "0.9", default-features = false, features = [
"postgres",
"runtime-tokio",
"tls-rustls",
"migrate",
"json",
"uuid",
"chrono",
"macros",
] }
object_store = { version = "0.14", features = ["aws"] }
futures = "0.3"
url = "2"
reqwest ={ version = "0.13", default-features = false, features = ["rustls"] }
# server
tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal"] }
axum = "0.8"
# `cookie-key-expansion` turns the configured `auth.cookie_key` into the
# signing and encryption halves a private cookie needs, by HKDF rather
# than by a hand-rolled split.
axum-extra = { version = "0.12", features = [
"cookie",
"cookie-private",
"cookie-key-expansion",
] }
# aide 0.15 (stable) depends on schemars 0.9; the 0.16 line is the one on
# schemars 1 and axum 0.8. Pinned to the alpha until 0.16.0 ships, then relax.
aide = { version = "=0.16.0-alpha.4", features = [
"axum",
"axum-json",
"axum-query",
# `PrivateCookieJar` is an extractor of the session handlers, so aide
# needs to know it contributes nothing to the documented request.
"axum-extra-cookie-private",
] }
tower = { version = "0.5", features = ["util"] }
tower-http = { version = "0.7", features = ["trace", "compression-gzip", "set-header", "limit"] }
# `mime-guess` gives an embedded file the content type its name implies,
# which is how the SPA's assets are served with the right one.
rust-embed = { version = "8", features = ["mime-guess"] }
# YAML for the model-index export. `serde_yaml` is unmaintained and its
# other successor `serde_yml` publishes itself as deprecated; this is the
# maintained fork.
serde_norway = "0.9"
clap = { version = "4", features = ["derive", "env"] }
figment = { version = "0.10", features = ["toml", "env"] }
secrecy = { version = "0.10", features = ["serde"] }
# test
insta = { version = "1", features = ["json"] }
rstest = "0.27"
proptest = "1"
tempfile = "3"
testcontainers-modules = { version = "0.15", features = ["postgres", "minio"] }
[workspace.lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
[workspace.lints.clippy]
unwrap_used = "warn"
expect_used = "warn"