-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
91 lines (83 loc) · 2.42 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
[package]
name = "candlemist"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
actix-files = { version = "0.6", optional = true }
actix-web = { version = "4", optional = true, features = ["macros"] }
console_error_panic_hook = "0.1"
http = { version = "1.0.0", optional = true }
leptos = { version = "0.6", features = ["nightly"] }
leptos_meta = { version = "0.6", features = ["nightly"] }
leptos_actix = { version = "0.6", optional = true }
leptos_router = { version = "0.6", features = ["nightly"] }
wasm-bindgen = "=0.2.92"
serde = "1.0.199"
cfg-if = "1.0.0"
web-sys = "0.3.69"
gloo-net = "0.4.0"
markdown = "1.0.0-alpha.17"
actix-ws = { version = "0.2.5", optional = true }
actix-rt = { version = "2.9.0", optional = true }
futures = { version = "0.3.30", optional = true }
tokio = "1.37.0"
candle-core = { git = "https://github.com/huggingface/candle.git", version = "0.6.0", optional = true }
candle-examples = { git = "https://github.com/huggingface/candle.git", version = "0.6.0", optional = true }
candle-transformers = { git = "https://github.com/huggingface/candle.git", version = "0.6.0", optional = true }
tokenizers = { version = "0.19.1", optional = true }
anyhow = "1.0.82"
fastrand = { version = "2.1.0", optional = true }
dotenv = { version = "0.15.0", optional = true }
env_logger = "0.11.3"
[features]
csr = ["leptos/csr", "leptos_meta/csr", "leptos_router/csr"]
hydrate = [
"leptos/hydrate",
"leptos_meta/hydrate",
"leptos_router/hydrate",
"gloo-net/websocket",
"dep:futures",
]
ssr = [
"dep:actix-files",
"dep:actix-web",
"dep:leptos_actix",
"leptos/ssr",
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:actix-ws",
"dep:actix-rt",
"dep:futures",
"dep:candle-core",
"dep:candle-examples",
"dep:candle-transformers",
"dep:tokenizers",
"dep:dotenv",
"dep:fastrand",
"tokio/sync",
]
[profile.wasm-release]
inherits = "release"
opt-level = 'z'
lto = true
codegen-units = 1
panic = "abort"
[package.metadata.leptos]
output-name = "candlemist"
site-root = "target/site"
site-pkg-dir = "pkg"
style-file = "style/output.css"
assets-dir = "assets"
site-addr = "127.0.0.1:3000"
reload-port = 3001
end2end-cmd = "npx playwright test"
end2end-dir = "end2end"
browserquery = "defaults"
env = "DEV"
bin-features = ["ssr"]
bin-default-features = false
lib-features = ["hydrate"]
lib-default-features = false
lib-profile-release = "wasm-release"