-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathCargo.toml
58 lines (48 loc) · 1.65 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
[package]
name = "egui_inbox"
version = "0.7.0"
edition = "2021"
description = "Utility to send messages to egui views from async functions, callbacks, etc. without having to use interior mutability."
license = "MIT"
repository = "https://github.com/lucasmerlin/hello_egui/tree/main/crates/egui_inbox"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
async = [
"dep:hello_egui_utils",
"hello_egui_utils/async",
"dep:futures-channel",
"dep:futures",
]
tokio = ["async", "hello_egui_utils/tokio"]
egui = ["dep:egui"]
default = ["egui"]
broadcast = ["dep:hello_egui_utils"]
type_inbox = ["dep:type-map", "dep:hello_egui_utils"]
type_broadcast = ["dep:type-map", "broadcast", "dep:hello_egui_utils"]
[[example]]
name = "inbox_spawn"
required-features = ["tokio"]
[[example]]
name = "broadcast"
required-features = ["broadcast"]
[[example]]
name = "router_login"
required-features = ["type_inbox", "type_broadcast", "broadcast"]
[dependencies]
egui = { workspace = true, optional = true }
hello_egui_utils = { workspace = true, optional = true }
futures-channel = { version = "0.3", optional = true }
futures = { workspace = true, optional = true }
# Egui uses parking_lot so we should be fine with using it too (regarding compile times).
parking_lot = "0.12"
# For TypeInbox and TypeBroadcast
type-map = { version = "0.5.0", optional = true }
[dev-dependencies]
eframe = { workspace = true, default-features = true }
tokio = { workspace = true, features = ["full"] }
ehttp = { workspace = true, features = ["json"] }
serde_json.workspace = true
rand.workspace = true
derive-new = "0.7"
[lints]
workspace = true