-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
55 lines (45 loc) · 1.59 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
[workspace]
members = ["tauri-interop-macro"]
package.edition = "2021"
package.keywords = ["wasm", "tauri", "command", "event", "leptos"]
package.authors = ["photovoltex"]
package.repository = "https://github.com/photovoltex/tauri-interop.git"
package.license = "MIT OR Apache-2.0"
[package.metadata.docs.rs]
# see https://docs.rs/about/metadata for more options
all-features = true
[package]
version = "2.1.6"
edition.workspace = true
keywords.workspace = true
authors.workspace = true
repository.workspace = true
license.workspace = true
name = "tauri-interop"
description = "Easily connect your rust frontend and backend without writing duplicate code."
readme = "README.md"
[dependencies]
#tauri-interop-macro = { path = "./tauri-interop-macro" }
tauri-interop-macro = "2.1.4"
js-sys = "0.3"
serde = { version = "1.0", features = ["derive"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
thiserror = "1.0"
serde-wasm-bindgen = "0.6"
log = "0.4"
# leptos feature
leptos = { version = "0.6", optional = true }
# only include if not wasm
[target.'cfg(not(target_family = "wasm"))'.dependencies]
tauri = { version = "1.6", default-features = false, features = ["wry"] }
[target.'cfg(target_family = "wasm")'.dependencies]
#tauri-interop-macro = { path = "./tauri-interop-macro", features = ["_wasm"] }
tauri-interop-macro = { version = "2.1.4", features = [ "_wasm" ] }
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
tauri = "1.6"
[features]
default = []
event = ["tauri-interop-macro/event"]
initial_value = ["tauri-interop-macro/initial_value"]
leptos = ["dep:leptos", "tauri-interop-macro/leptos"]