-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
87 lines (80 loc) · 3.35 KB
/
Cargo.toml
File metadata and controls
87 lines (80 loc) · 3.35 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
[package]
name = "truss-image"
version = "0.11.4"
edition = "2024"
rust-version = "1.92"
authors = ["CHIKAMATSU Naohiro <[email protected]>"]
description = "Image toolkit with a shared Rust core across the CLI, HTTP server, and WASM demo."
license = "MIT"
readme = "README.md"
repository = "https://github.com/nao1215/truss"
homepage = "https://nao1215.github.io/truss/"
keywords = ["image", "image-processing", "webp", "avif", "image-server"]
categories = ["command-line-utilities", "multimedia::images", "web-programming::http-server"]
[features]
default = ["cli", "server", "svg", "webp-lossy", "avif"]
avif = ["dep:rav1d-safe", "dep:mp4parse", "dep:yuvutils-rs", "image/avif"]
cli = ["dep:clap", "dep:clap_complete", "dep:ureq", "server"]
server = ["dep:hmac", "dep:hex", "dep:serde_json", "dep:sha2", "dep:subtle", "dep:ureq", "dep:url", "dep:uuid", "dep:libc", "dep:flate2", "svg"]
s3 = ["server", "dep:aws-sdk-s3", "dep:aws-config", "dep:tokio"]
gcs = ["server", "dep:google-cloud-storage", "dep:google-cloud-auth", "dep:tokio"]
azure = ["server", "dep:azure_storage_blob", "dep:azure_core", "dep:futures", "dep:tokio"]
svg = ["dep:quick-xml", "dep:resvg"]
wasm = ["dep:serde_json", "dep:wasm-bindgen"]
webp-lossy = ["dep:webp"]
[[bin]]
name = "truss"
path = "src/main.rs"
required-features = ["cli"]
[lib]
name = "truss"
path = "src/lib.rs"
crate-type = ["rlib", "cdylib"]
[dependencies]
clap = { version = "4", features = ["derive"], optional = true }
clap_complete = { version = "4", optional = true }
hmac = { version = "0.12.1", optional = true }
hex = { version = "0.4.3", optional = true }
image = { version = "0.25.10", default-features = false, features = ["bmp", "jpeg", "png", "tiff", "webp"] }
kamadak-exif = "0.6.1"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = { version = "1.0.145", optional = true }
sha2 = { version = "0.10.9", optional = true }
subtle = { version = "2", optional = true }
ureq = { version = "3.3.0", optional = true }
url = { version = "2.5.8", optional = true }
uuid = { version = "1", features = ["v4"], optional = true }
rav1d-safe = { version = "0.3", default-features = false, features = ["bitdepth_8", "bitdepth_16"], optional = true }
mp4parse = { version = "0.17", optional = true }
yuvutils-rs = { version = "0.8", optional = true }
wasm-bindgen = { version = "0.2.114", optional = true }
webp = { version = "0.3", optional = true }
quick-xml = { version = "0.39", optional = true }
resvg = { version = "0.47", optional = true }
aws-sdk-s3 = { version = "1", optional = true }
aws-config = { version = "1", optional = true }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "io-util", "time"], optional = true }
google-cloud-storage = { version = "1", optional = true }
google-cloud-auth = { version = "1", optional = true }
azure_storage_blob = { version = "0.9", optional = true }
azure_core = { version = "0.32", optional = true }
futures = { version = "0.3", optional = true }
flate2 = { version = "1", optional = true }
libc = { version = "0.2", optional = true }
[profile.release]
lto = "thin"
codegen-units = 1
strip = true
[dev-dependencies]
aws-smithy-runtime-api = "1"
aws-smithy-types = "1"
bytes = "1"
criterion = { version = "0.8", features = ["html_reports"] }
http = "1"
rustls = { version = "0.23", features = ["ring"] }
rstest = "0.26.1"
serial_test = "3"
tempfile = "3"
[[bench]]
name = "transform"
harness = false