-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cargo.toml
120 lines (104 loc) · 2.74 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[package]
name = "lemmy-ui-leptos"
version = "0.0.2"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
leptos = { version = "0.6" }
leptos_meta = { version = "0.6" }
leptos_router = { version = "0.6" }
cfg-if = "1"
lemmy-client = { version = "1.0.2", features = ["leptos"] }
serde = "1.0"
serde_json = "1.0"
# required for better debug messages
console_error_panic_hook = { version = "0.1", optional = true }
# dependecies for server (enable when ssr set)
leptos_actix = { version = "0.6", optional = true }
actix-files = { version = "0.6", optional = true }
actix-web = { version = "4.9", features = ["macros"], optional = true }
actix-session = { version = "0.10", features = [
"cookie-session",
], optional = true }
tokio = { version = "1.41", optional = true, features = ["macros"] }
strum = { version = "0.26", features = ["derive"] }
trait-set = "0.3"
leptos-use = "0.13"
pretty-num = "0.1"
tailwind_fuse = { version = "0.3", features = ["variant"] }
web-sys = { version = "0.3", optional = true, features = ["Url"] }
leptos-fluent = { version = "0.1", features = ["actix"] }
fluent-templates = "0.11"
chrono = "0.4.38"
markdown-it = "0.6"
markdown-it-sup = "1"
markdown-it-sub = "1"
markdown-it-ruby = "1"
markdown-it-block-spoiler = "1"
markdown-it-footnote = "0.2"
[features]
default = ["ssr"]
hydrate = [
"leptos/hydrate",
"leptos_meta/hydrate",
"leptos_router/hydrate",
"leptos-fluent/hydrate",
"dep:console_error_panic_hook",
"dep:web-sys",
]
csr = [
"leptos/csr",
"leptos_meta/csr",
"leptos_router/csr",
"dep:console_error_panic_hook",
"dep:web-sys",
]
ssr = [
"leptos/ssr",
"leptos_meta/ssr",
"leptos_router/ssr",
"leptos-fluent/ssr",
"leptos-fluent/actix",
"dep:leptos_actix",
"dep:actix-web",
"dep:actix-files",
"dep:actix-session",
"dep:tokio",
]
[lints.clippy]
# leptos can't deal with these lints
needless_lifetimes = "allow"
let_unit_value = "allow"
[package.metadata.cargo-all-features]
denylist = ["actix-files", "actix-web", "leptos_actix"]
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]
[profile.release]
codegen-units = 1
lto = true
[profile.wasm-release]
inherits = "release"
opt-level = "z"
lto = true
codegen-units = 1
[dev-dependencies]
rstest = "0.23.0"
[package.metadata.leptos]
output-name = "lemmy-ui-leptos"
env = "DEV"
watch = false
watch-additional-files = ["locales"]
bin-features = ["ssr"]
bin-default-features = false
lib-features = ["hydrate"]
lib-default-features = false
lib-profile-release = "wasm-release"
tailwind-input-file = "style/tailwind.css"
browserquery = "defaults"
site-root = "target/site"
site-pkg-dir = "pkg"
assets-dir = "public"
site-addr = "0.0.0.0:1237"
reload-port = 3001
end2end-cmd = "npx playwright test"
end2end-dir = "end2end"