-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
145 lines (137 loc) · 4.08 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[package]
name = "site"
version = "0.1.0"
edition = "2021"
publish = false
[lib]
crate-type = ["cdylib", "rlib"]
[workspace]
resolver = "2"
members = ["lib", "admin", "cli", "prisma_cli", "prisma_client"]
[workspace.dependencies]
lib = { path = "./lib" }
axum = { version = "0.7.4", features = ["macros", "tracing"] }
bcrypt = { version = "0.15" }
cfg-if = "1"
chrono = { version = "0.4", features = ["serde"] }
console_error_panic_hook = "0.1"
http = "1.0"
js-sys = { version = "0.3" }
leptos = { version = "0.6.8", features = ["nightly", "tracing"] }
leptos_axum = { version = "0.6.8" }
leptos_meta = { version = "0.6.8", features = ["nightly"] }
leptos_router = { version = "0.6.8", features = ["nightly"] }
log = "0.4"
prisma_client = { path = "./prisma_client" }
prisma-client-rust = { git = "https://github.com/Brendonovich/prisma-client-rust", rev = "68a2f9a", default-features = false, features = [
"sqlite",
"sqlite-create-many",
"migrations",
] }
prisma-client-rust-cli = { git = "https://github.com/Brendonovich/prisma-client-rust", rev = "68a2f9a", default-features = false, features = [
"sqlite",
"sqlite-create-many",
"migrations",
] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde-wasm-bindgen = "0.6.3"
thiserror = "1.0"
tokio = { version = "1.28" }
tower = { version = "0.4.13" }
tower_governor = { version = "0.3" }
tower-http = { version = "0.5", features = ["fs", "trace"] }
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["tracing-log"] }
tracing-wasm = "0.2.1"
wasm-bindgen = "0.2"
web-sys = { version = "0.3", features = [
"Blob",
"File",
"FileList",
"HtmlDialogElement",
"HtmlDocument",
"HtmlInputElement",
"Url",
] }
[profile.dev.package.image]
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
incremental = false
codegen-units = 16
[dependencies]
lib = { workspace = true, features = ["leptos"] }
axum = { workspace = true, optional = true }
cfg-if = { workspace = true }
chrono = { workspace = true }
console_error_panic_hook = { workspace = true }
http = { workspace = true }
js-sys = { workspace = true, optional = true }
leptos = { workspace = true }
leptos_axum = { workspace = true, optional = true }
leptos_meta = { workspace = true }
leptos_router = { workspace = true }
log = { workspace = true, optional = true }
prisma_client = { workspace = true, optional = true }
prisma-client-rust = { workspace = true, optional = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde-wasm-bindgen = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
tower = { workspace = true, optional = true }
tower_governor = { workspace = true, optional = true }
tower-http = { workspace = true, optional = true }
tracing = { workspace = true, optional = true }
tracing-subscriber = { workspace = true, optional = true }
tracing-wasm = { workspace = true }
wasm-bindgen = { workspace = true, optional = true }
web-sys = { workspace = true, optional = true }
[features]
prod = ["compression", "ratelimit"]
compression = ["tower-http?/compression-full"]
ratelimit = []
hydrate = [
"dep:js-sys",
"dep:log",
"dep:wasm-bindgen",
"dep:web-sys",
"leptos_meta/hydrate",
"leptos_router/hydrate",
"leptos/hydrate",
]
ssr = [
"dep:axum",
"dep:leptos_axum",
"dep:prisma_client",
"dep:prisma-client-rust",
"dep:tower_governor",
"dep:tower-http",
"dep:tower",
"dep:tracing",
"dep:tracing-subscriber",
"leptos_meta/ssr",
"leptos_router/ssr",
"leptos/ssr",
]
[package.metadata.cargo-all-features]
denylist = ["axum", "tokio", "tower", "tower-http", "leptos_axum"]
skip_feature_sets = [["ssr", "hydrate"]]
[package.metadata.leptos]
site-root = "target/site"
site-pkg-dir = "pkg"
style-file = "style/main.scss"
assets-dir = "public"
site-addr = "127.0.0.1:4141"
reload-port = 4142
end2end-cmd = "npx playwright test"
end2end-dir = "end2end"
browserquery = "defaults"
watch = false
env = "DEV"
bin-features = ["ssr"]
bin-default-features = false
lib-features = ["hydrate"]
lib-default-features = false