Skip to content

Commit

Permalink
Cleanup toml
Browse files Browse the repository at this point in the history
  • Loading branch information
xnorpx committed Dec 15, 2024
1 parent 66c4dc3 commit 3cbd2be
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 156 deletions.
123 changes: 2 additions & 121 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 30 additions & 32 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,64 +5,62 @@ edition = "2021"

[dependencies]

windows = { version = "0.58", features = ["Win32_Foundation", "Win32_System_Threading"] }
ab_glyph = "0"
anyhow = "1"
axum = { version = "0", features = ["multipart"] }
axum = { version = "0", default-features = false, features = [
"http1",
"json",
"multipart",
"tokio",
] }
bytes = "1"
clap = { version = "4", default-features = false, features = [
"color",
"derive",
"error-context",
"help",
"std",
"suggestions",
"usage",
] }
chrono = "0"
fast_image_resize = "5"
futures = "0"
hf-hub = { version = "0", features = ["tokio"] }
futures = { version = "0", default-features = false }
hf-hub = { version = "0", default-features = false, features = ["tokio"] }
image = "0"
imageproc = "0"
indicatif = "0"
jpeg-encoder = "0"
ndarray = "*"
num_cpus = "1"
nvml-wrapper = "0"
ort = {version = "2.0.0-rc.9", default-features = false, features = ["ndarray", "load-dynamic", "directml"]}
ort = { version = "2.0.0-rc.9", default-features = false, features = [
"ndarray",
"load-dynamic",
"directml",
] }
raw-cpuid = "11"
reqwest = { version = "0", features = ["stream", "multipart", "json"] }
rusttype = "0"
serde = "1"
serde_yaml = "*"
smallvec = {version = "1", features = ["union"]}
tracing = {version = "0"}
smallvec = { version = "1", features = ["union"] }
tracing = { version = "0" }
tracing-appender = "0"
tracing-subscriber = {version = "0"}
tracing-subscriber = { version = "0" }
tokio = { version = "1", default-features = false, features = ["signal"] }
tokio-util = { version = "0", features = ["codec"] }
uuid = { version = "1", features = ["v4"] }
zune-core = "0"
zune-jpeg = "0"

clap = {version = "4", default-features = false, features = [
"derive",
"color",
"error-context",
"help",
"std",
"suggestions",
"usage"
]}

tokio = { version = "1", features = [
"fs",
"io-util",
"macros",
"rt-multi-thread",
"signal",
"sync",
] }
tokio-util = { version = "0", features = ["codec"] }

[target.'cfg(windows)'.dependencies]
ansi_term = "0"
windows = { version = "0", features = [
windows = { version = "0", default-features = false, features = [
"Win32_Foundation",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D12",
"Win32_System_Threading",
] }

[build-dependencies]
Expand All @@ -73,4 +71,4 @@ zip = "*"
opt-level = 3
lto = true
strip = true
codegen-units = 1
codegen-units = 1
1 change: 0 additions & 1 deletion src/api.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::fmt::Debug;

use axum::body::Bytes;
use serde::{Deserialize, Serialize};

Expand Down
3 changes: 1 addition & 2 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ use std::{
sync::{mpsc::Sender, Arc},
time::Instant,
};
use tokio::sync::oneshot;
use tokio::time::{timeout, Duration};
use tokio::{sync::oneshot, time::{timeout, Duration}};
use tokio_util::sync::CancellationToken;
use tracing::{error, info, warn};

Expand Down

0 comments on commit 3cbd2be

Please sign in to comment.