-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (40 loc) · 2.03 KB
/
Copy pathCargo.toml
File metadata and controls
47 lines (40 loc) · 2.03 KB
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
[package]
name = "dioxus-surrealdb-template"
version = "0.1.0"
authors = ["Your Name <your-email@example.com>"]
edition = "2021"
description = "A fullstack Rust web application template using Dioxus and SurrealDB"
repository = "https://github.com/verystochastic/dioxus-surrealdb-template"
license = "MIT"
keywords = ["dioxus", "surrealdb", "fullstack", "template", "wasm"]
categories = ["web-programming", "template"]
[lib]
name = "dioxus_surrealdb_template"
path = "src/lib.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dioxus = { version = "0.7.1", features = ["router", "fullstack"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3", features = ["console", "Window"] }
wasm-bindgen = "0.2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
surrealdb = { version = "2.1", features = ["kv-rocksdb", "kv-mem"] }
tokio = { version = "1.0", features = ["full"] }
once_cell = "1.20"
[dev-dependencies]
# Testing utilities
tokio = { version = "1.0", features = ["full", "test-util"] }
tempfile = "3.8" # For creating temporary test databases
uuid = { version = "1.0", features = ["v4"] } # For generating test data
[features]
default = ["web"]
# The feature that are only required for the web = ["dioxus/web"] build target should be optional and only enabled in the web = ["dioxus/web"] feature
web = ["dioxus/web"]
# The feature that are only required for the desktop = ["dioxus/desktop"] build target should be optional and only enabled in the desktop = ["dioxus/desktop"] feature
desktop = ["dioxus/desktop"]
# The feature that are only required for the mobile = ["dioxus/mobile"] build target should be optional and only enabled in the mobile = ["dioxus/mobile"] feature
mobile = ["dioxus/mobile"]
# The feature that are only required for the server = ["dioxus/server"] build target should be optional and only enabled in the server = ["dioxus/server"] feature
server = ["dioxus/server"]