This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
80 lines (74 loc) · 2.17 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
[package]
name = "remote_wol"
authors = ["Valentin Bersier <hi@beeb.li>"]
description = "A utility to wake up a local computer remotely using a web interface."
version = "0.2.8"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
anyhow = { version = "1", optional = true }
axum = { version = "0.6.10", optional = true, features = ["json"] }
clap = { version = "4", optional = true, features = ["derive"] }
console_error_panic_hook = "0.1"
console_log = "1"
dotenvy = { version = "0.15", optional = true }
fastrand = { version = "2", optional = true }
leptos = { version = "0.3", default-features = false, features = ["serde"] }
leptos_meta = { version = "0.3", default-features = false }
leptos_axum = { version = "0.3", optional = true }
leptos_router = { version = "0.3", default-features = false }
log = "0.4"
mime_guess = { version = "2", optional = true }
openssl = { version = "0.10", features = ["vendored"], optional = true }
rust-embed = { version = "6", features = ["include-exclude"], optional = true }
serde = "1"
simple_logger = "4"
surge-ping = { version = "0.8", optional = true }
tokio = { version = "1", features = ["full"], optional = true }
tower = { version = "0.4", features = ["buffer", "limit"], optional = true }
wasm-bindgen = "0.2"
wol-rs = { version = "1", optional = true }
[features]
hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"]
ssr = [
"dep:anyhow",
"dep:axum",
"dep:clap",
"dep:dotenvy",
"dep:fastrand",
"dep:leptos_axum",
"dep:mime_guess",
"dep:openssl",
"dep:rust-embed",
"dep:surge-ping",
"dep:tokio",
"dep:tower",
"dep:wol-rs",
"leptos/ssr",
"leptos_meta/ssr",
"leptos_router/ssr",
]
[package.metadata.leptos]
output-name = "remote_wol"
site-root = "target/site"
site-pkg-dir = "pkg"
style-file = "style/output.css"
site-address = "127.0.0.1:3000"
reload-port = 3001
browserquery = "defaults"
watch = false
env = "DEV"
bin-features = ["ssr"]
bin-default-features = false
lib-features = ["hydrate"]
lib-default-features = false
lib-profile-release = "wasm-release"
[profile.release]
lto = "thin"
strip = true
[profile.wasm-release]
inherits = "release"
opt-level = 'z'
lto = true
codegen-units = 1