TOMLCargo.toml
-rw-r--r-- 1.4 KiB
1[package]
2name = "papyri"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7axum = { version = "0.8.3", features = ["macros", "query", "json"], optional = true }
8http = { version = "1.3.1", optional = true }
9tower = { version = "0.5.2", features = ["util"], optional = true }
10
11tokio = { version = "1.44.1", features = ["fs"], optional = true }
12tokio-util = { version = "0.7.14", features = ["io"], optional = true }
13
14oci-spec = "0.7.1"
15serde = "1.0.219"
16serde_json = "1.0.140"
17async-trait = "0.1.88"
18regex = "1.11.1"
19tracing = { version = "0.1.41", features = ["log"] }
20thiserror = "2.0.12"
21futures = "0.3.31"
22uuid = { version = "1.16.0", features = ["v4"] }
23bytes = "1.10.1"
24relative-path = "1.9.3"
25sha2 = "0.10.8"
26hex-literal = "1.0.0"
27base16ct = { version = "0.2.0", features = ["alloc"] }
28base64 = "0.22.1"
29askama = { version = "0.13.1", features = ["serde_json"], optional = true}
30walkdir = "2.5.0"
31url = "2.5.4"
32
33[dev-dependencies]
34tokio = { version = "1.44.1", features = ["full"] }
35tower-http = { version = "0.6.2", features = ["trace", "normalize-path"] }
36tracing-subscriber = "0.3.19"
37
38[features]
39default = []
40
41axum-router = [
42 "axum",
43 "http",
44 "tower"
45]
46
47storage-fs = [
48 "tokio",
49 "tokio-util"
50]
51
52web = [
53 "axum-router",
54 "askama"
55]
56
57[[example]]
58name = "server"
59path = "examples/server.rs"
60required-features = ["axum-router", "storage-fs"]
61
62[[example]]
63name = "custom"
64path = "examples/custom.rs"
65required-features = ["storage-fs"]