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