generated from emilk/eframe_template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
126 lines (105 loc) · 4.12 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
[workspace]
resolver = "2"
members = [
"sunangle",
"coordinate-systems",
"ecs-namespace",
"video",
"world-model",
]
default-members = [
"sunangle",
"coordinate-systems",
"ecs-namespace",
"video",
"world-model",
]
[workspace.package]
edition = "2021"
rust-version = "1.72"
[workspace.dependencies]
#--- crates defined in the workspace
coordinate-systems = { path = "./coordinate-systems" }
video = { path = "./video" }
ecs-namespace = { path = "./ecs-namespace" }
world-model = { path = "./world-model" }
#--- common dependencies
anyhow = "1.0.75"
derive_more = { version = "1.0.0-beta.6", default-features = false, features = [
"deref", "deref_mut", "display", "from", "into"
] }
hecs = { version = "0.10.4", features = ["macros", "column-serialize", "row-serialize"] }
hecs-hierarchy = "0.12"
hecs-schedule = "0.7"
insta = { version = "1.34.0", features = ["glob", "redactions", "ron"] }
log = "0.4"
num_enum = "0.6" # Unwanted dependency "android-activity" uses 0.6.1
num-integer = { version = "0.1.45", features = [] }
num-rational = { version = "0.4.1", default-features = false, features = ["num-bigint", "serde", "std"] }
num-traits = { version = "0.2.17", features = [] }
once_cell = "1.19.0"
ron = "0.8.1"
serde = { version = "1", features = ["derive"] }
strum = { version = "0.25.0", features = ["derive"] }
#--- keep these synced with whatever the `three-d` crate is using
thiserror = "1"
glow = "=0.13.0"
cgmath = "0.18"
#========================================== patches ================================================
#------------------------------------------- glow
# Glow introduced a breaking change, glow::Context became !Sync.
#
# https://github.com/grovesNL/glow/commit/edfd08e2a941f4c3db6a3ba6cf84865f7c5365ff revert
# https://github.com/grovesNL/glow/commit/c4a5f7151b9b4bbb380faa06ec27415235d1bf7e use this one
#
# Glow has reverted the change on main, but hasn't tagged a post-0.13.0 release yet
#
[patch.crates-io.glow]
version = "0.13"
git = "https://github.com/grovesNL/glow.git"
rev = "c4a5f7151b9b4bbb380faa06ec27415235d1bf7e"
#------------------------------------------- egui, egui_glow, eframe, egui-winit
# https://github.com/emilk/egui/pull/3598 This merge tracked a breaking change in glow
# https://github.com/emilk/egui/issues/3645 Revert "Change Arc<glow::Context> to Rc<glow::Context>
# https://github.com/emilk/egui/pull/3646 Make glow Send + Sync again, thanks @surban !
#
# @emilk says this will have to wait until egui 0.25
# https://github.com/emilk/egui/pull/3646#issuecomment-1828388082
#
# We could use 40eeed922d, which is based off of 0.24.0, before the rebase to egui master.
# https://github.com/surban/egui/tree/40eeed922d0b3fe4ba943dff1866ee600e21b676
# But 45022a6e945486a2a4f46d42524284128319c803 has most of the fixes that went into 0.24.1
#
# @marshray branched from @surban on GitHub and rebased @surban's changes on 0.24.1.
# https://github.com/marshray/surban.egui/commit/baf6e8ba316b8e5edff9fbeab2a9a5134856a21c
[patch.crates-io.egui]
version = "=0.24.1"
git = "https://github.com/marshray/surban.egui.git"
rev = "baf6e8ba316b8e5edff9fbeab2a9a5134856a21c"
[patch.crates-io.egui_glow]
version = "=0.24.1"
git = "https://github.com/marshray/surban.egui.git"
rev = "baf6e8ba316b8e5edff9fbeab2a9a5134856a21c"
[patch.crates-io.eframe]
version = "=0.24.1"
git = "https://github.com/marshray/surban.egui.git"
rev = "baf6e8ba316b8e5edff9fbeab2a9a5134856a21c"
[patch.crates-io.egui-winit]
version = "=0.24.1"
git = "https://github.com/marshray/surban.egui.git"
rev = "baf6e8ba316b8e5edff9fbeab2a9a5134856a21c"
#------------------------------------------- three-d
# Local repo tweaks "three-d =0.16.3" to use:
# glow: 0.12 -> 0.13
# egui: 0.22 -> =0.24.1
# egui_glow: 0.22 -> =0.24.1
[patch.crates-io.three-d]
version = "=0.16.3"
git = "https://github.com/marshray/three-d.git"
rev = "0cd8b4cc2d5fc52a5e5ae3dfe1458c4b1056d653"
#================================= profile settings ===============================================
[profile.release]
opt-level = 2 # fast and small wasm
# Optimize all dependencies even in debug builds:
[profile.dev.package."*"]
opt-level = 2