-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
89 lines (80 loc) · 2.4 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
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
88
89
[workspace.package]
edition = "2021"
authors = ["Maneren <[email protected]>"]
license = "MIT"
repository = "https://github.com/Maneren/file-share-rs"
description = "Fast HTTP file-sharing server with Leptos GUI"
rust-version = "1.82.0"
[workspace]
resolver = "2"
members = ["app", "frontend", "server"]
[workspace.dependencies]
leptos = { version = "0.6", features = ["nightly"] }
leptos_axum = "0.6"
leptos_meta = { version = "0.6", features = ["nightly"] }
leptos_router = { version = "0.6", features = ["nightly"] }
leptos-use = "0.13"
server_fn = { version = "0.6", features = ["multipart"] }
async-broadcast = "0.7"
async-compression = { version = "0.4", features = ["tokio", "gzip", "zstd"] }
async-walkdir = "2.0"
async_zip = { version = "0.0.17", features = ["deflate", "tokio"] }
axum = { version = "0.7", features = ["macros", "multipart"] }
axum-server = "0.7"
cfg-if = "1"
chrono = "0.4"
chrono-humanize = "0.2"
clap = { version = "4.5", features = ["derive"] }
colored = "2.1"
console_error_panic_hook = "0.1"
console_log = "1"
dashmap = "6"
futures = "0.3"
http = "1.1"
if-addrs = "0.13"
include-flate = "0.3"
log = "0.4"
multer = "3.1"
port_check = "0.2"
qr_code = "2.0"
rfd = { version = "0.15", default-features = false, features = [
"xdg-portal",
"tokio",
] }
rust-embed = { version = "8.4", features = ["mime-guess", "compression"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
simple_logger = "5"
thiserror = "1"
tokio = { version = "1.38", features = ["rt-multi-thread"] }
tokio-stream = "0.1"
tokio-tar = "0.3"
tokio-util = "0.7"
tower-http = { version = "0.6", features = ["fs"] }
urlencoding = "2"
wasm-bindgen = "=0.2.93"
web-sys = { version = "0.3.70", features = ["File", "FileList"] }
web-time = "1.1"
wee_alloc = "0.4"
[profile.dev.package.leptos_macro]
opt-level = 3
[workspace.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }_{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"
# Defines a size-optimized profile for the WASM bundle in release mode
[profile.wasm-release]
inherits = "release"
opt-level = 'z'
lto = true
codegen-units = 1
panic = "abort"
[profile.release]
strip = true
[[workspace.metadata.leptos]]
name = "file-share"
style-file = "app/styles/main.scss"
assets-dir = "app/public"
lib-profile-release = "wasm-release"
tailwind-input-file = "app/styles/tailwind.css"
bin-package = "file-share"
lib-package = "file-share-frontend"