Pulled library hot-reloading code into a separate crate and removed duplicated code from anim and egui crates

This commit is contained in:
Ben Wallis 2021-05-09 21:55:29 +01:00
parent d87cc5104d
commit 6163ddbb68
2 changed files with 23 additions and 72 deletions

94
Cargo.lock generated
View File

@ -1457,7 +1457,7 @@ checksum = "f6aa6fec3ad8de51b5d7e2a11eb6cb0fd3533a7b817e5af54eda8e7fe53729bd"
dependencies = [ dependencies = [
"bytemuck", "bytemuck",
"epi", "epi",
"wgpu 0.8.0 (git+https://github.com/gfx-rs/wgpu-rs?rev=69be1ff88a073b3a7f9470044834e75c22f7b4ad)", "wgpu",
] ]
[[package]] [[package]]
@ -1962,7 +1962,7 @@ dependencies = [
"libloading 0.7.0", "libloading 0.7.0",
"log", "log",
"parking_lot 0.11.1", "parking_lot 0.11.1",
"range-alloc 0.1.2 (git+https://github.com/gfx-rs/gfx?rev=27a1dae3796d33d23812f2bb8c7e3b5aea18b521)", "range-alloc",
"raw-window-handle", "raw-window-handle",
"smallvec", "smallvec",
"spirv_cross", "spirv_cross",
@ -1984,7 +1984,7 @@ dependencies = [
"gfx-hal", "gfx-hal",
"log", "log",
"parking_lot 0.11.1", "parking_lot 0.11.1",
"range-alloc 0.1.2 (git+https://github.com/gfx-rs/gfx?rev=27a1dae3796d33d23812f2bb8c7e3b5aea18b521)", "range-alloc",
"raw-window-handle", "raw-window-handle",
"smallvec", "smallvec",
"spirv_cross", "spirv_cross",
@ -2010,9 +2010,9 @@ dependencies = [
"arrayvec", "arrayvec",
"bitflags", "bitflags",
"fxhash", "fxhash",
"gfx-auxil 0.9.0", "gfx-auxil",
"gfx-hal 0.8.0", "gfx-hal",
"glow 0.9.0", "glow",
"js-sys", "js-sys",
"khronos-egl", "khronos-egl",
"libloading 0.7.0", "libloading 0.7.0",
@ -2037,15 +2037,15 @@ dependencies = [
"copyless", "copyless",
"foreign-types", "foreign-types",
"fxhash", "fxhash",
"gfx-auxil 0.9.0", "gfx-auxil",
"gfx-hal 0.8.0", "gfx-hal",
"log", "log",
"metal", "metal",
"naga", "naga",
"objc", "objc",
"parking_lot 0.11.1", "parking_lot 0.11.1",
"profiling", "profiling",
"range-alloc 0.1.2 (git+https://github.com/gfx-rs/gfx?rev=27a1dae3796d33d23812f2bb8c7e3b5aea18b521)", "range-alloc",
"raw-window-handle", "raw-window-handle",
"spirv_cross", "spirv_cross",
"storage-map", "storage-map",
@ -4232,7 +4232,7 @@ dependencies = [
[[package]] [[package]]
name = "range-alloc" name = "range-alloc"
version = "0.1.2" version = "0.1.2"
source = "git+https://github.com/gfx-rs/gfx?rev=32684a7da923cfd661fe4d3003f4275270e9c40d#32684a7da923cfd661fe4d3003f4275270e9c40d" source = "git+https://github.com/gfx-rs/gfx?rev=27a1dae3796d33d23812f2bb8c7e3b5aea18b521#27a1dae3796d33d23812f2bb8c7e3b5aea18b521"
[[package]] [[package]]
name = "raw-window-handle" name = "raw-window-handle"
@ -6140,7 +6140,7 @@ dependencies = [
"veloren-voxygen-anim", "veloren-voxygen-anim",
"veloren-voxygen-egui", "veloren-voxygen-egui",
"veloren-world", "veloren-world",
"wgpu 0.8.0 (git+https://github.com/gfx-rs/wgpu-rs.git?rev=7486bdad64bb5d17b709ecccb41e063469efff88)", "wgpu",
"wgpu-profiler", "wgpu-profiler",
"window_clipboard 0.2.0", "window_clipboard 0.2.0",
"winit", "winit",
@ -6736,25 +6736,6 @@ dependencies = [
"winapi 0.3.9", "winapi 0.3.9",
] ]
[[package]]
name = "wgpu"
version = "0.8.0"
source = "git+https://github.com/gfx-rs/wgpu-rs?rev=69be1ff88a073b3a7f9470044834e75c22f7b4ad#69be1ff88a073b3a7f9470044834e75c22f7b4ad"
dependencies = [
"arrayvec",
"js-sys",
"log",
"naga 0.3.1",
"parking_lot 0.11.1",
"raw-window-handle",
"smallvec",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"wgpu-core 0.8.0 (git+https://github.com/gfx-rs/wgpu?rev=e5ddb94be0221b0f53a8f43adfb15458daebfd7c)",
"wgpu-types 0.8.0 (git+https://github.com/gfx-rs/wgpu?rev=e5ddb94be0221b0f53a8f43adfb15458daebfd7c)",
]
[[package]] [[package]]
name = "wgpu" name = "wgpu"
version = "0.8.0" version = "0.8.0"
@ -6771,8 +6752,8 @@ dependencies = [
"wasm-bindgen", "wasm-bindgen",
"wasm-bindgen-futures", "wasm-bindgen-futures",
"web-sys", "web-sys",
"wgpu-core 0.8.0 (git+https://github.com/gfx-rs/wgpu?rev=53eab747a32414232be45d47cae8a43a369395d0)", "wgpu-core",
"wgpu-types 0.8.0 (git+https://github.com/gfx-rs/wgpu?rev=53eab747a32414232be45d47cae8a43a369395d0)", "wgpu-types",
] ]
[[package]] [[package]]
@ -6785,17 +6766,17 @@ dependencies = [
"cfg_aliases", "cfg_aliases",
"copyless", "copyless",
"fxhash", "fxhash",
"gfx-backend-dx11 0.8.0", "gfx-backend-dx11",
"gfx-backend-dx12 0.8.0", "gfx-backend-dx12",
"gfx-backend-empty 0.8.0", "gfx-backend-empty",
"gfx-backend-gl 0.8.1", "gfx-backend-gl",
"gfx-backend-metal 0.8.1", "gfx-backend-metal",
"gfx-backend-vulkan 0.8.0", "gfx-backend-vulkan",
"gfx-hal 0.8.0", "gfx-hal",
"gpu-alloc", "gpu-alloc",
"gpu-descriptor", "gpu-descriptor",
"log", "log",
"naga 0.4.0", "naga",
"parking_lot 0.11.1", "parking_lot 0.11.1",
"profiling", "profiling",
"raw-window-handle", "raw-window-handle",
@ -6803,36 +6784,7 @@ dependencies = [
"serde", "serde",
"smallvec", "smallvec",
"thiserror", "thiserror",
"wgpu-types 0.8.0 (git+https://github.com/gfx-rs/wgpu?rev=53eab747a32414232be45d47cae8a43a369395d0)", "wgpu-types",
]
[[package]]
name = "wgpu-core"
version = "0.8.0"
source = "git+https://github.com/gfx-rs/wgpu?rev=e5ddb94be0221b0f53a8f43adfb15458daebfd7c#e5ddb94be0221b0f53a8f43adfb15458daebfd7c"
dependencies = [
"arrayvec",
"bitflags",
"cfg_aliases",
"copyless",
"fxhash",
"gfx-backend-dx11 0.7.0",
"gfx-backend-dx12 0.7.0",
"gfx-backend-empty 0.7.0",
"gfx-backend-gl 0.7.0",
"gfx-backend-metal 0.7.0",
"gfx-backend-vulkan 0.7.0",
"gfx-hal 0.7.0",
"gpu-alloc",
"gpu-descriptor",
"log",
"naga 0.3.1",
"parking_lot 0.11.1",
"profiling",
"raw-window-handle",
"smallvec",
"thiserror",
"wgpu-types 0.8.0 (git+https://github.com/gfx-rs/wgpu?rev=e5ddb94be0221b0f53a8f43adfb15458daebfd7c)",
] ]
[[package]] [[package]]
@ -6841,7 +6793,7 @@ version = "0.4.0"
source = "git+https://github.com/Imberflur/wgpu-profiler?tag=wgpu-0.8#b156eb145bc223386ef344860d9b33b3c181650c" source = "git+https://github.com/Imberflur/wgpu-profiler?tag=wgpu-0.8#b156eb145bc223386ef344860d9b33b3c181650c"
dependencies = [ dependencies = [
"futures", "futures",
"wgpu 0.8.0 (git+https://github.com/gfx-rs/wgpu-rs.git?rev=7486bdad64bb5d17b709ecccb41e063469efff88)", "wgpu",
] ]
[[package]] [[package]]

View File

@ -44,7 +44,6 @@ use crate::{
settings::Settings, settings::Settings,
ui::egui::EguiState, ui::egui::EguiState,
window::{Event, Window}, window::{Event, Window},
ui::egui::EguiState,
}; };
use common::clock::Clock; use common::clock::Clock;
use common_base::span; use common_base::span;