-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
54 lines (47 loc) · 1.56 KB
/
Cargo.toml
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
[package]
name = "enso-darknet"
version = "0.1.1"
edition = "2021"
authors = ["Sadovnikov Anton <[email protected]>"]
description = "Stable diffusion pipeline service"
repository = "https://github.com/siddthartha/enso-darknet"
keywords = ["torch", "deep-learning", "machine-learning", "diffusion", "transformers"]
categories = ["science"]
license = "GPLv3"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = { version = "4.0.19", features = ["derive"] }
rust-ini = "0.18.0"
colored = "2.0.0"
image = "0.23"
sha2 = "0.8"
hex = "0.4"
anyhow = "1.0"
regex = "1.8.1"
uuid = "1.3.3"
base64 = "0.21.0"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.96"
tokio = { version = "1.37.0", features = ["full"] }
chrono = { version = "0.4.38", features = ["serde"] }
pretty_env_logger = "0.5.0"
warp = "0.3.7"
redis = { version = "0.22.2", features = ["tokio-comp"] }
tch = { version = "0.13.0", features = ["cpython", "image", "regex"] }
diffusers = { git = "https://github.com/LaurentMazare/diffusers-rs.git", branch = "main", features = ["clap"] }
[lib]
crate-type = ["lib"]
bench = false
[[bin]]
name = "sd-cli"
path = "./src/bin/sd-cli.rs"
[[bin]]
name = "sd-worker"
path = "./src/bin/sd-worker.rs"
[profile.release]
opt-level = 'z' # Optimize for size.
#lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = 'abort' # Abort on panic
strip = true # Strip symbols from binary*