Merge pull request #80 from Team-LJY/fix/windows-renderer-fallback
Windows OpenGL 미지원 환경의 화면 시작 실패 수정
- 작성자
- LeeJunyoung
- 작성 시각
- 커밋
8bfa25456b936346b4f1808233afb4551e769718
변경된 파일 10개
+523-85| @@ -141,6 +141,12 @@ dependencies = [ | ||
| 141 | 141 | "zerocopy", |
| 142 | 142 | ] |
| 143 | 143 | |
| 144 | 추가: [[package]] | |
| 145 | 추가: name = "allocator-api2" | |
| 146 | 추가: version = "0.2.21" | |
| 147 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 148 | 추가: checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" | |
| 149 | 추가: | |
| 144 | 150 | [[package]] |
| 145 | 151 | name = "android-activity" |
| 146 | 152 | version = "0.6.1" |
| @@ -810,6 +816,7 @@ dependencies = [ | ||
| 810 | 816 | "objc2-foundation 0.3.2", |
| 811 | 817 | "parking_lot", |
| 812 | 818 | "percent-encoding", |
| 819 | 추가: "pollster", | |
| 813 | 820 | "profiling", |
| 814 | 821 | "raw-window-handle", |
| 815 | 822 | "send_wrapper", |
| @@ -817,6 +824,7 @@ dependencies = [ | ||
| 817 | 824 | "wasm-bindgen", |
| 818 | 825 | "web-sys", |
| 819 | 826 | "web-time", |
| 827 | 추가: "wgpu", | |
| 820 | 828 | "windows-sys 0.61.2", |
| 821 | 829 | "winit", |
| 822 | 830 | ] |
| @@ -1358,6 +1366,19 @@ dependencies = [ | ||
| 1358 | 1366 | "gl_generator", |
| 1359 | 1367 | ] |
| 1360 | 1368 | |
| 1369 | 추가: [[package]] | |
| 1370 | 추가: name = "gpu-allocator" | |
| 1371 | 추가: version = "0.28.0" | |
| 1372 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 1373 | 추가: checksum = "51255ea7cfaadb6c5f1528d43e92a82acb2b96c43365989a28b2d44ee38f8795" | |
| 1374 | 추가: dependencies = [ | |
| 1375 | 추가: "hashbrown 0.16.1", | |
| 1376 | 추가: "log", | |
| 1377 | 추가: "presser", | |
| 1378 | 추가: "thiserror 2.0.21", | |
| 1379 | 추가: "windows", | |
| 1380 | 추가: ] | |
| 1381 | 추가: | |
| 1361 | 1382 | [[package]] |
| 1362 | 1383 | name = "guillotiere" |
| 1363 | 1384 | version = "0.7.0" |
| @@ -1400,6 +1421,17 @@ dependencies = [ | ||
| 1400 | 1421 | "foldhash 0.1.5", |
| 1401 | 1422 | ] |
| 1402 | 1423 | |
| 1424 | 추가: [[package]] | |
| 1425 | 추가: name = "hashbrown" | |
| 1426 | 추가: version = "0.16.1" | |
| 1427 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 1428 | 추가: checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" | |
| 1429 | 추가: dependencies = [ | |
| 1430 | 추가: "allocator-api2", | |
| 1431 | 추가: "equivalent", | |
| 1432 | 추가: "foldhash 0.2.0", | |
| 1433 | 추가: ] | |
| 1434 | 추가: | |
| 1403 | 1435 | [[package]] |
| 1404 | 1436 | name = "hashbrown" |
| 1405 | 1437 | version = "0.17.1" |
| @@ -2133,6 +2165,15 @@ dependencies = [ | ||
| 2133 | 2165 | "libredox", |
| 2134 | 2166 | ] |
| 2135 | 2167 | |
| 2168 | 추가: [[package]] | |
| 2169 | 추가: name = "ordered-float" | |
| 2170 | 추가: version = "5.5.0" | |
| 2171 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2172 | 추가: checksum = "8c7c9e0d9b23589f26070720bac724174bfec1083e82f7854cdd0267518343c0" | |
| 2173 | 추가: dependencies = [ | |
| 2174 | 추가: "num-traits", | |
| 2175 | 추가: ] | |
| 2176 | 추가: | |
| 2136 | 2177 | [[package]] |
| 2137 | 2178 | name = "ordered-stream" |
| 2138 | 2179 | version = "0.2.0" |
| @@ -2357,6 +2398,12 @@ dependencies = [ | ||
| 2357 | 2398 | "windows-sys 0.61.2", |
| 2358 | 2399 | ] |
| 2359 | 2400 | |
| 2401 | 추가: [[package]] | |
| 2402 | 추가: name = "pollster" | |
| 2403 | 추가: version = "1.0.1" | |
| 2404 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2405 | 추가: checksum = "bc6355899e1c9462875b6757c79f3caa011a1fdae12bbb1a2e72dd1f234f8336" | |
| 2406 | 추가: | |
| 2360 | 2407 | [[package]] |
| 2361 | 2408 | name = "polycool" |
| 2362 | 2409 | version = "0.4.0" |
| @@ -2381,6 +2428,12 @@ dependencies = [ | ||
| 2381 | 2428 | "portable-atomic", |
| 2382 | 2429 | ] |
| 2383 | 2430 | |
| 2431 | 추가: [[package]] | |
| 2432 | 추가: name = "presser" | |
| 2433 | 추가: version = "0.3.1" | |
| 2434 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2435 | 추가: checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" | |
| 2436 | 추가: | |
| 2384 | 2437 | [[package]] |
| 2385 | 2438 | name = "proc-macro-crate" |
| 2386 | 2439 | version = "3.5.0" |
| @@ -2447,6 +2500,12 @@ version = "6.0.0" | ||
| 2447 | 2500 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2448 | 2501 | checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" |
| 2449 | 2502 | |
| 2503 | 추가: [[package]] | |
| 2504 | 추가: name = "range-alloc" | |
| 2505 | 추가: version = "0.1.5" | |
| 2506 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2507 | 추가: checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08" | |
| 2508 | 추가: | |
| 2450 | 2509 | [[package]] |
| 2451 | 2510 | name = "raw-window-handle" |
| 2452 | 2511 | version = "0.6.2" |
| @@ -3424,22 +3483,33 @@ version = "30.0.1" | ||
| 3424 | 3483 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 3425 | 3484 | checksum = "b6b7fb58561a792bc237628ba0792e332de418fefe145f13b5ed8201e6d52f58" |
| 3426 | 3485 | dependencies = [ |
| 3486 | 추가: "arrayvec", | |
| 3487 | 추가: "bit-set", | |
| 3427 | 3488 | "bitflags 2.13.2", |
| 3489 | 추가: "bytemuck", | |
| 3428 | 3490 | "cfg-if", |
| 3429 | 3491 | "cfg_aliases", |
| 3492 | 추가: "gpu-allocator", | |
| 3430 | 3493 | "hashbrown 0.17.1", |
| 3431 | 3494 | "libloading", |
| 3432 | 3495 | "log", |
| 3433 | 3496 | "naga", |
| 3434 | 3497 | "naga-types", |
| 3498 | 추가: "once_cell", | |
| 3499 | 추가: "ordered-float", | |
| 3500 | 추가: "parking_lot", | |
| 3435 | 3501 | "portable-atomic", |
| 3436 | 3502 | "portable-atomic-util", |
| 3503 | 추가: "profiling", | |
| 3504 | 추가: "range-alloc", | |
| 3437 | 3505 | "raw-window-handle", |
| 3438 | 3506 | "renderdoc-sys", |
| 3439 | 3507 | "static_assertions", |
| 3440 | 3508 | "thiserror 2.0.21", |
| 3441 | 3509 | "wgpu-naga-bridge", |
| 3442 | 3510 | "wgpu-types", |
| 3511 | 추가: "windows", | |
| 3512 | 추가: "windows-core", | |
| 3443 | 3513 | ] |
| 3444 | 3514 | |
| 3445 | 3515 | [[package]] |
| @@ -4051,6 +4121,7 @@ name = "zipelo-ui-memory-app" | ||
| 4051 | 4121 | version = "0.1.0" |
| 4052 | 4122 | dependencies = [ |
| 4053 | 4123 | "eframe", |
| 4124 | 추가: "wgpu", | |
| 4054 | 4125 | "zipelo-app-core-memory", |
| 4055 | 4126 | "zipelo-archive-worker", |
| 4056 | 4127 | ] |
| @@ -14,7 +14,7 @@ doctest = false | ||
| 14 | 14 | |
| 15 | 15 | [features] |
| 16 | 16 | default = [] |
| 17 | 삭제: ui = ["dep:eframe"] | |
| 17 | 추가: ui = ["dep:eframe", "dep:wgpu"] | |
| 18 | 18 | ui-fixture = ["ui"] |
| 19 | 19 | |
| 20 | 20 | [dependencies] |
| @@ -42,3 +42,12 @@ path = "../../tests/rust-app-real-worker/flows.rs" | ||
| 42 | 42 | [[test]] |
| 43 | 43 | name = "format_contract" |
| 44 | 44 | path = "../../tests/rust-app-real-worker/formats.rs" |
| 45 | 추가: | |
| 46 | 추가: [target.'cfg(target_os = "windows")'.dependencies] | |
| 47 | 추가: wgpu = { version = "=30.0.1", optional = true, default-features = false, features = ["std", "dx12"] } | |
| 48 | 추가: eframe = { version = "=0.37.0", optional = true, default-features = false, features = ["wgpu_no_default_features"] } | |
| 49 | 추가: | |
| 50 | 추가: [[test]] | |
| 51 | 추가: name = "renderer_fallback" | |
| 52 | 추가: path = "../../tests/rust-app-ui/renderer_fallback.rs" | |
| 53 | 추가: required-features = ["ui"] |
| @@ -1,3 +1,5 @@ | ||
| 1 | 추가: #[path = "renderer.rs"] | |
| 2 | 추가: mod renderer; | |
| 1 | 3 | #[path = "system_font.rs"] |
| 2 | 4 | mod system_font; |
| 3 | 5 | |
| @@ -159,42 +161,45 @@ impl eframe::App for App { | ||
| 159 | 161 | |
| 160 | 162 | fn main() -> eframe::Result { |
| 161 | 163 | let font = system_font::load().map_err(|e| eframe::Error::AppCreation(Box::new(e)))?; |
| 162 | 삭제: eframe::run_native( | |
| 164 | 추가: renderer::run_native( | |
| 163 | 165 | "Zipelo 합성 메모리 작업", |
| 164 | 166 | eframe::NativeOptions { |
| 165 | 삭제: renderer: eframe::Renderer::Glow, | |
| 166 | 167 | viewport: egui::ViewportBuilder::default() |
| 167 | 168 | .with_inner_size([1060.0, 720.0]) |
| 168 | 169 | .with_min_inner_size([760.0, 540.0]), |
| 169 | 170 | ..Default::default() |
| 170 | 171 | }, |
| 171 | 삭제: Box::new(move |cc| { | |
| 172 | 삭제: let mut fonts = FontDefinitions::empty(); | |
| 173 | 삭제: let mut data = FontData::from_owned(font.bytes); | |
| 174 | 삭제: data.index = font.face_index; | |
| 175 | 삭제: fonts.font_data.insert("noto-kr".into(), data.into()); | |
| 176 | 삭제: fonts | |
| 177 | 삭제: .families | |
| 178 | 삭제: .insert(FontFamily::Proportional, vec!["noto-kr".into()]); | |
| 179 | 삭제: cc.egui_ctx.set_fonts(fonts); | |
| 180 | 삭제: cc.egui_ctx.set_visuals(egui::Visuals::light()); | |
| 181 | 삭제: cc.egui_ctx.style_mut_of(egui::Theme::Light, |style| { | |
| 182 | 삭제: style | |
| 183 | 삭제: .text_styles | |
| 184 | 삭제: .insert(TextStyle::Body, FontId::proportional(18.0)); | |
| 185 | 삭제: style | |
| 186 | 삭제: .text_styles | |
| 187 | 삭제: .insert(TextStyle::Button, FontId::proportional(18.0)); | |
| 188 | 삭제: style | |
| 189 | 삭제: .text_styles | |
| 190 | 삭제: .insert(TextStyle::Heading, FontId::proportional(26.0)); | |
| 191 | 삭제: style.visuals.panel_fill = Color32::WHITE; | |
| 192 | 삭제: style.visuals.override_text_color = Some(Color32::from_rgb(24, 39, 57)); | |
| 193 | 삭제: style.visuals.selection.bg_fill = Color32::from_rgb(211, 230, 246); | |
| 194 | 삭제: style.spacing.item_spacing = egui::vec2(12.0, 10.0); | |
| 195 | 삭제: style.spacing.button_padding = egui::vec2(14.0, 10.0); | |
| 196 | 삭제: }); | |
| 197 | 삭제: Ok(Box::<App>::default()) | |
| 198 | 삭제: }), | |
| 172 | 추가: || { | |
| 173 | 추가: let bytes = font.bytes.clone(); | |
| 174 | 추가: let face_index = font.face_index; | |
| 175 | 추가: Box::new(move |cc| { | |
| 176 | 추가: let mut fonts = FontDefinitions::empty(); | |
| 177 | 추가: let mut data = FontData::from_owned(bytes); | |
| 178 | 추가: data.index = face_index; | |
| 179 | 추가: fonts.font_data.insert("noto-kr".into(), data.into()); | |
| 180 | 추가: fonts | |
| 181 | 추가: .families | |
| 182 | 추가: .insert(FontFamily::Proportional, vec!["noto-kr".into()]); | |
| 183 | 추가: cc.egui_ctx.set_fonts(fonts); | |
| 184 | 추가: cc.egui_ctx.set_visuals(egui::Visuals::light()); | |
| 185 | 추가: cc.egui_ctx.style_mut_of(egui::Theme::Light, |style| { | |
| 186 | 추가: style | |
| 187 | 추가: .text_styles | |
| 188 | 추가: .insert(TextStyle::Body, FontId::proportional(18.0)); | |
| 189 | 추가: style | |
| 190 | 추가: .text_styles | |
| 191 | 추가: .insert(TextStyle::Button, FontId::proportional(18.0)); | |
| 192 | 추가: style | |
| 193 | 추가: .text_styles | |
| 194 | 추가: .insert(TextStyle::Heading, FontId::proportional(26.0)); | |
| 195 | 추가: style.visuals.panel_fill = Color32::WHITE; | |
| 196 | 추가: style.visuals.override_text_color = Some(Color32::from_rgb(24, 39, 57)); | |
| 197 | 추가: style.visuals.selection.bg_fill = Color32::from_rgb(211, 230, 246); | |
| 198 | 추가: style.spacing.item_spacing = egui::vec2(12.0, 10.0); | |
| 199 | 추가: style.spacing.button_padding = egui::vec2(14.0, 10.0); | |
| 200 | 추가: }); | |
| 201 | 추가: Ok(Box::<App>::default()) | |
| 202 | 추가: }) | |
| 203 | 추가: }, | |
| 199 | 204 | ) |
| 200 | 205 | } |
| @@ -1,71 +1,113 @@ | ||
| 1 | 추가: #![cfg_attr(target_os = "windows", windows_subsystem = "windows")] | |
| 2 | 추가: | |
| 1 | 3 | #[cfg(feature = "ui-fixture")] |
| 2 | 4 | #[path = "../../../tests/rust-app-ui/fake.rs"] |
| 3 | 5 | mod fake; |
| 6 | 추가: #[path = "renderer.rs"] | |
| 7 | 추가: mod renderer; | |
| 4 | 8 | #[path = "system_font.rs"] |
| 5 | 9 | mod system_font; |
| 6 | 10 | use eframe::egui::{self, Color32, FontData, FontDefinitions, FontFamily, FontId, TextStyle}; |
| 7 | 11 | fn main() -> eframe::Result { |
| 12 | 추가: let result = run(); | |
| 13 | 추가: #[cfg(target_os = "windows")] | |
| 14 | 추가: if let Err(error) = &result { | |
| 15 | 추가: let message = if matches!(error, eframe::Error::AppCreation(_)) { | |
| 16 | 추가: "앱을 시작하지 못했습니다. 설치 파일을 다시 설치한 뒤 시도해 주세요." | |
| 17 | 추가: } else { | |
| 18 | 추가: "이 PC에서 화면을 표시할 수 없습니다. 그래픽 드라이버를 업데이트해 주세요." | |
| 19 | 추가: }; | |
| 20 | 추가: show_startup_error(message); | |
| 21 | 추가: } | |
| 22 | 추가: result | |
| 23 | 추가: } | |
| 24 | 추가: | |
| 25 | 추가: #[cfg(target_os = "windows")] | |
| 26 | 추가: fn show_startup_error(message: &str) { | |
| 27 | 추가: #[link(name = "user32")] | |
| 28 | 추가: unsafe extern "system" { | |
| 29 | 추가: fn MessageBoxW( | |
| 30 | 추가: window: *mut std::ffi::c_void, | |
| 31 | 추가: text: *const u16, | |
| 32 | 추가: caption: *const u16, | |
| 33 | 추가: kind: u32, | |
| 34 | 추가: ) -> i32; | |
| 35 | 추가: } | |
| 36 | 추가: let text: Vec<u16> = message.encode_utf16().chain(Some(0)).collect(); | |
| 37 | 추가: let caption: Vec<u16> = "Zipelo".encode_utf16().chain(Some(0)).collect(); | |
| 38 | 추가: // 종료까지 유효한 NUL 종료 문자열로 기본 오류 창을 표시함. | |
| 39 | 추가: unsafe { | |
| 40 | 추가: MessageBoxW(std::ptr::null_mut(), text.as_ptr(), caption.as_ptr(), 0x10); | |
| 41 | 추가: } | |
| 42 | 추가: } | |
| 43 | 추가: | |
| 44 | 추가: fn run() -> eframe::Result { | |
| 8 | 45 | let font = system_font::load().map_err(|e| eframe::Error::AppCreation(Box::new(e)))?; |
| 9 | 삭제: eframe::run_native( | |
| 46 | 추가: renderer::run_native( | |
| 10 | 47 | "Zipelo", |
| 11 | 48 | eframe::NativeOptions { |
| 12 | 삭제: renderer: eframe::Renderer::Glow, | |
| 13 | 49 | viewport: egui::ViewportBuilder::default() |
| 14 | 50 | .with_inner_size([1060.0, 720.0]) |
| 15 | 51 | .with_min_inner_size([760.0, 540.0]), |
| 16 | 52 | ..Default::default() |
| 17 | 53 | }, |
| 18 | 삭제: Box::new(move |cc| { | |
| 19 | 삭제: let mut fonts = FontDefinitions::empty(); | |
| 20 | 삭제: let mut data = FontData::from_owned(font.bytes); | |
| 21 | 삭제: data.index = font.face_index; | |
| 22 | 삭제: fonts.font_data.insert("noto-kr".into(), data.into()); | |
| 23 | 삭제: fonts | |
| 24 | 삭제: .families | |
| 25 | 삭제: .insert(FontFamily::Proportional, vec!["noto-kr".into()]); | |
| 26 | 삭제: cc.egui_ctx.set_fonts(fonts); | |
| 27 | 삭제: cc.egui_ctx.set_visuals(egui::Visuals::light()); | |
| 28 | 삭제: cc.egui_ctx.style_mut_of(egui::Theme::Light, |style| { | |
| 29 | 삭제: style | |
| 30 | 삭제: .text_styles | |
| 31 | 삭제: .insert(TextStyle::Body, FontId::proportional(18.0)); | |
| 32 | 삭제: style | |
| 33 | 삭제: .text_styles | |
| 34 | 삭제: .insert(TextStyle::Button, FontId::proportional(18.0)); | |
| 35 | 삭제: style | |
| 36 | 삭제: .text_styles | |
| 37 | 삭제: .insert(TextStyle::Heading, FontId::proportional(26.0)); | |
| 38 | 삭제: style.visuals.panel_fill = Color32::WHITE; | |
| 39 | 삭제: style.visuals.override_text_color = Some(Color32::from_rgb(24, 39, 57)); | |
| 40 | 삭제: style.visuals.selection.bg_fill = Color32::from_rgb(211, 230, 246); | |
| 41 | 삭제: style.spacing.item_spacing = egui::vec2(12.0, 10.0); | |
| 42 | 삭제: style.spacing.button_padding = egui::vec2(14.0, 10.0); | |
| 43 | 삭제: }); | |
| 44 | 삭제: let (fixture, startup) = zipelo_ui_memory_app::archive_ui::launch_args( | |
| 45 | 삭제: std::env::args_os().skip(1).collect(), | |
| 46 | 삭제: std::env::current_dir()?, | |
| 47 | 삭제: ) | |
| 48 | 삭제: .map_err(std::io::Error::other)?; | |
| 49 | 삭제: let factory: Box<dyn zipelo_ui_memory_app::archive_ui::Factory> = if fixture { | |
| 50 | 삭제: #[cfg(feature = "ui-fixture")] | |
| 51 | 삭제: { | |
| 52 | 삭제: Box::new(fake::FakeFactory::default()) | |
| 53 | 삭제: } | |
| 54 | 삭제: #[cfg(not(feature = "ui-fixture"))] | |
| 55 | 삭제: { | |
| 56 | 삭제: return Err(Box::new(std::io::Error::other( | |
| 57 | 삭제: "ui-fixture feature가 필요합니다", | |
| 58 | 삭제: ))); | |
| 59 | 삭제: } | |
| 60 | 삭제: } else { | |
| 61 | 삭제: Box::new( | |
| 62 | 삭제: zipelo_ui_memory_app::archive_process::ProcessFactory::sibling() | |
| 63 | 삭제: .map_err(std::io::Error::other)?, | |
| 54 | 추가: || { | |
| 55 | 추가: let bytes = font.bytes.clone(); | |
| 56 | 추가: let face_index = font.face_index; | |
| 57 | 추가: Box::new(move |cc| { | |
| 58 | 추가: let mut fonts = FontDefinitions::empty(); | |
| 59 | 추가: let mut data = FontData::from_owned(bytes); | |
| 60 | 추가: data.index = face_index; | |
| 61 | 추가: fonts.font_data.insert("noto-kr".into(), data.into()); | |
| 62 | 추가: fonts | |
| 63 | 추가: .families | |
| 64 | 추가: .insert(FontFamily::Proportional, vec!["noto-kr".into()]); | |
| 65 | 추가: cc.egui_ctx.set_fonts(fonts); | |
| 66 | 추가: cc.egui_ctx.set_visuals(egui::Visuals::light()); | |
| 67 | 추가: cc.egui_ctx.style_mut_of(egui::Theme::Light, |style| { | |
| 68 | 추가: style | |
| 69 | 추가: .text_styles | |
| 70 | 추가: .insert(TextStyle::Body, FontId::proportional(18.0)); | |
| 71 | 추가: style | |
| 72 | 추가: .text_styles | |
| 73 | 추가: .insert(TextStyle::Button, FontId::proportional(18.0)); | |
| 74 | 추가: style | |
| 75 | 추가: .text_styles | |
| 76 | 추가: .insert(TextStyle::Heading, FontId::proportional(26.0)); | |
| 77 | 추가: style.visuals.panel_fill = Color32::WHITE; | |
| 78 | 추가: style.visuals.override_text_color = Some(Color32::from_rgb(24, 39, 57)); | |
| 79 | 추가: style.visuals.selection.bg_fill = Color32::from_rgb(211, 230, 246); | |
| 80 | 추가: style.spacing.item_spacing = egui::vec2(12.0, 10.0); | |
| 81 | 추가: style.spacing.button_padding = egui::vec2(14.0, 10.0); | |
| 82 | 추가: }); | |
| 83 | 추가: let (fixture, startup) = zipelo_ui_memory_app::archive_ui::launch_args( | |
| 84 | 추가: std::env::args_os().skip(1).collect(), | |
| 85 | 추가: std::env::current_dir()?, | |
| 64 | 86 | ) |
| 65 | 삭제: }; | |
| 66 | 삭제: Ok(Box::new( | |
| 67 | 삭제: zipelo_ui_memory_app::archive_screen::ArchiveApp::new(factory, startup, fixture), | |
| 68 | 삭제: )) | |
| 69 | 삭제: }), | |
| 87 | 추가: .map_err(std::io::Error::other)?; | |
| 88 | 추가: let factory: Box<dyn zipelo_ui_memory_app::archive_ui::Factory> = if fixture { | |
| 89 | 추가: #[cfg(feature = "ui-fixture")] | |
| 90 | 추가: { | |
| 91 | 추가: Box::new(fake::FakeFactory::default()) | |
| 92 | 추가: } | |
| 93 | 추가: #[cfg(not(feature = "ui-fixture"))] | |
| 94 | 추가: { | |
| 95 | 추가: return Err(Box::new(std::io::Error::other( | |
| 96 | 추가: "ui-fixture feature가 필요합니다", | |
| 97 | 추가: ))); | |
| 98 | 추가: } | |
| 99 | 추가: } else { | |
| 100 | 추가: Box::new( | |
| 101 | 추가: zipelo_ui_memory_app::archive_process::ProcessFactory::sibling() | |
| 102 | 추가: .map_err(std::io::Error::other)?, | |
| 103 | 추가: ) | |
| 104 | 추가: }; | |
| 105 | 추가: Ok(Box::new( | |
| 106 | 추가: zipelo_ui_memory_app::archive_screen::ArchiveApp::new( | |
| 107 | 추가: factory, startup, fixture, | |
| 108 | 추가: ), | |
| 109 | 추가: )) | |
| 110 | 추가: }) | |
| 111 | 추가: }, | |
| 70 | 112 | ) |
| 71 | 113 | } |
| @@ -0,0 +1,88 @@ | ||
| 1 | 추가: #[derive(Clone, Copy, Debug, PartialEq, Eq)] | |
| 2 | 추가: pub enum Backend { | |
| 3 | 추가: Dx12Hardware, | |
| 4 | 추가: Dx12Software, | |
| 5 | 추가: Glow, | |
| 6 | 추가: } | |
| 7 | 추가: | |
| 8 | 추가: pub fn try_backends<E>( | |
| 9 | 추가: windows: bool, | |
| 10 | 추가: mut attempt: impl FnMut(Backend) -> Result<(), (E, bool)>, | |
| 11 | 추가: ) -> Result<(), E> { | |
| 12 | 추가: let order: &[Backend] = if windows { | |
| 13 | 추가: &[Backend::Dx12Hardware, Backend::Dx12Software, Backend::Glow] | |
| 14 | 추가: } else { | |
| 15 | 추가: &[Backend::Glow] | |
| 16 | 추가: }; | |
| 17 | 추가: let mut failure = None; | |
| 18 | 추가: for &backend in order { | |
| 19 | 추가: match attempt(backend) { | |
| 20 | 추가: Ok(()) => return Ok(()), | |
| 21 | 추가: Err((error, retry)) => { | |
| 22 | 추가: if !retry { | |
| 23 | 추가: return Err(error); | |
| 24 | 추가: } | |
| 25 | 추가: failure = Some(error); | |
| 26 | 추가: } | |
| 27 | 추가: } | |
| 28 | 추가: } | |
| 29 | 추가: Err(failure.expect("렌더러 시도 목록은 비어 있지 않음")) | |
| 30 | 추가: } | |
| 31 | 추가: | |
| 32 | 추가: pub fn options(backend: Backend, mut options: eframe::NativeOptions) -> eframe::NativeOptions { | |
| 33 | 추가: options.renderer = eframe::Renderer::Glow; | |
| 34 | 추가: options.run_and_return = true; | |
| 35 | 추가: #[cfg(target_os = "windows")] | |
| 36 | 추가: if backend != Backend::Glow { | |
| 37 | 추가: use eframe::{egui_wgpu, wgpu}; | |
| 38 | 추가: use std::sync::Arc; | |
| 39 | 추가: let mut setup = egui_wgpu::WgpuSetupCreateNew::without_display_handle(); | |
| 40 | 추가: setup.instance_descriptor.backends = wgpu::Backends::DX12; | |
| 41 | 추가: setup | |
| 42 | 추가: .instance_descriptor | |
| 43 | 추가: .backend_options | |
| 44 | 추가: .dx12 | |
| 45 | 추가: .shader_compiler = wgpu::Dx12Compiler::Fxc; | |
| 46 | 추가: setup.native_adapter_selector = Some(Arc::new(move |adapters, surface| { | |
| 47 | 추가: adapters | |
| 48 | 추가: .iter() | |
| 49 | 추가: .find(|adapter| { | |
| 50 | 추가: let software = adapter.get_info().device_type == wgpu::DeviceType::Cpu; | |
| 51 | 추가: software == (backend == Backend::Dx12Software) | |
| 52 | 추가: && surface.is_none_or(|surface| { | |
| 53 | 추가: !surface.get_capabilities(adapter).formats.is_empty() | |
| 54 | 추가: }) | |
| 55 | 추가: }) | |
| 56 | 추가: .cloned() | |
| 57 | 추가: .ok_or_else(|| "사용 가능한 DirectX 화면 장치가 없음".into()) | |
| 58 | 추가: })); | |
| 59 | 추가: options.renderer = eframe::Renderer::Wgpu; | |
| 60 | 추가: options.wgpu_options.wgpu_setup = egui_wgpu::WgpuSetup::CreateNew(setup); | |
| 61 | 추가: } | |
| 62 | 추가: #[cfg(not(target_os = "windows"))] | |
| 63 | 추가: let _ = backend; | |
| 64 | 추가: options | |
| 65 | 추가: } | |
| 66 | 추가: | |
| 67 | 추가: pub fn run_native( | |
| 68 | 추가: title: &str, | |
| 69 | 추가: native_options: eframe::NativeOptions, | |
| 70 | 추가: mut create: impl FnMut() -> eframe::AppCreator<'static>, | |
| 71 | 추가: ) -> eframe::Result { | |
| 72 | 추가: use std::{cell::Cell, rc::Rc}; | |
| 73 | 추가: try_backends(cfg!(target_os = "windows"), |backend| { | |
| 74 | 추가: let started = Rc::new(Cell::new(false)); | |
| 75 | 추가: let entered = started.clone(); | |
| 76 | 추가: let creator = create(); | |
| 77 | 추가: let result = eframe::run_native( | |
| 78 | 추가: title, | |
| 79 | 추가: options(backend, native_options.clone()), | |
| 80 | 추가: Box::new(move |context| { | |
| 81 | 추가: entered.set(true); | |
| 82 | 추가: creator(context) | |
| 83 | 추가: }), | |
| 84 | 추가: ); | |
| 85 | 추가: // 앱 생성 뒤에는 작업이나 창을 중복 실행하지 않음. | |
| 86 | 추가: result.map_err(|error| (error, !started.get())) | |
| 87 | 추가: }) | |
| 88 | 추가: } |
| @@ -17,3 +17,14 @@ cargo +1.99.1 run --locked --manifest-path experiments/rust-ui-memory-app/Cargo. | ||
| 17 | 17 | 디자인은 흰 바탕 #FFFFFF, 글자 #182739, 선택 #D3E6F6, 강조 #174C7C를 사용함. 기존 한글 시스템 폰트와 본문/버튼 18px, 제목 26px를 유지함. 상단 작업 버튼, 가운데 파일 목록, 하단 진행/결과의 왼쪽 정렬 구조이며 작은 부가 설명, 장식 카드와 새 아이콘을 추가하지 않음. |
| 18 | 18 | |
| 19 | 19 | 풀기 버튼은 raw GZ에만 출력명을 보내며 ZIP/TAR/TAR.GZ에는 None을 보냄. 모델과 가짜 작업자도 이 계약을 검증함. Start 전송 실패 시에는 연결을 보존하고 추가 요청을 막으며, 양쪽 EOF와 child wait가 모두 올 때까지 교체와 닫기를 허용하지 않음. 이때 Terminal이 없어도 종료 후 오류 확인 화면으로 이동하며 성공으로 표시하지 않음. |
| 20 | 추가: | |
| 21 | 추가: | |
| 22 | 추가: ## Windows 렌더러 시작 검증 | |
| 23 | 추가: | |
| 24 | 추가: Windows는 DirectX 12 하드웨어 장치, 소프트웨어 장치(WARP), Glow 순서로 초기화를 시도합니다. 앱 생성 전에만 다음 렌더러를 시도하며 앱 생성 뒤 오류에는 작업을 중복 실행하지 않습니다. 모두 실패하면 한국어 안내 창을 표시합니다. Linux는 기존 Glow 경로를 유지합니다. | |
| 25 | 추가: | |
| 26 | 추가: ```sh | |
| 27 | 추가: cargo +1.99.1 test --locked --manifest-path experiments/rust-ui-memory-app/Cargo.toml --features ui --test renderer_fallback | |
| 28 | 추가: ``` | |
| 29 | 추가: | |
| 30 | 추가: 이 시험은 선택 순서와 재시도 중단 조건을 검증합니다. Windows WARP와 안내 창의 실제 실행은 Windows 실기로 별도 확인해야 합니다. 파일 크기와 전체 로컬 검증 결과는 validation.json의 renderer_fallback에 기록합니다. |
| @@ -0,0 +1,81 @@ | ||
| 1 | 추가: #[path = "../../experiments/rust-ui-memory-app/src/renderer.rs"] | |
| 2 | 추가: #[allow(dead_code)] | |
| 3 | 추가: mod renderer; | |
| 4 | 추가: use renderer::{Backend, try_backends}; | |
| 5 | 추가: | |
| 6 | 추가: #[test] | |
| 7 | 추가: fn windows_tries_hardware_then_software_then_glow() { | |
| 8 | 추가: let mut seen = Vec::new(); | |
| 9 | 추가: let result = try_backends(true, |backend| { | |
| 10 | 추가: seen.push(backend); | |
| 11 | 추가: Err((backend, true)) | |
| 12 | 추가: }); | |
| 13 | 추가: assert_eq!( | |
| 14 | 추가: seen, | |
| 15 | 추가: [Backend::Dx12Hardware, Backend::Dx12Software, Backend::Glow] | |
| 16 | 추가: ); | |
| 17 | 추가: assert_eq!(result, Err(Backend::Glow)); | |
| 18 | 추가: } | |
| 19 | 추가: | |
| 20 | 추가: #[test] | |
| 21 | 추가: fn successful_software_does_not_try_glow() { | |
| 22 | 추가: let mut seen = Vec::new(); | |
| 23 | 추가: assert_eq!( | |
| 24 | 추가: try_backends(true, |backend| { | |
| 25 | 추가: seen.push(backend); | |
| 26 | 추가: if backend == Backend::Dx12Hardware { | |
| 27 | 추가: Err(((), true)) | |
| 28 | 추가: } else { | |
| 29 | 추가: Ok(()) | |
| 30 | 추가: } | |
| 31 | 추가: }), | |
| 32 | 추가: Ok(()) | |
| 33 | 추가: ); | |
| 34 | 추가: assert_eq!(seen, [Backend::Dx12Hardware, Backend::Dx12Software]); | |
| 35 | 추가: } | |
| 36 | 추가: | |
| 37 | 추가: #[test] | |
| 38 | 추가: fn successful_hardware_stops_retries() { | |
| 39 | 추가: let mut seen = Vec::new(); | |
| 40 | 추가: assert_eq!( | |
| 41 | 추가: try_backends(true, |backend| { | |
| 42 | 추가: seen.push(backend); | |
| 43 | 추가: Ok::<_, ((), bool)>(()) | |
| 44 | 추가: }), | |
| 45 | 추가: Ok(()) | |
| 46 | 추가: ); | |
| 47 | 추가: assert_eq!(seen, [Backend::Dx12Hardware]); | |
| 48 | 추가: } | |
| 49 | 추가: | |
| 50 | 추가: #[test] | |
| 51 | 추가: fn running_app_failure_is_not_restarted() { | |
| 52 | 추가: let mut seen = Vec::new(); | |
| 53 | 추가: assert_eq!( | |
| 54 | 추가: try_backends(true, |backend| { | |
| 55 | 추가: seen.push(backend); | |
| 56 | 추가: Err(("앱 생성 후", false)) | |
| 57 | 추가: }), | |
| 58 | 추가: Err("앱 생성 후") | |
| 59 | 추가: ); | |
| 60 | 추가: assert_eq!(seen, [Backend::Dx12Hardware]); | |
| 61 | 추가: } | |
| 62 | 추가: | |
| 63 | 추가: #[test] | |
| 64 | 추가: fn linux_only_tries_glow() { | |
| 65 | 추가: let mut seen = Vec::new(); | |
| 66 | 추가: assert_eq!( | |
| 67 | 추가: try_backends(false, |backend| { | |
| 68 | 추가: seen.push(backend); | |
| 69 | 추가: Err(((), true)) | |
| 70 | 추가: }), | |
| 71 | 추가: Err(()) | |
| 72 | 추가: ); | |
| 73 | 추가: assert_eq!(seen, [Backend::Glow]); | |
| 74 | 추가: } | |
| 75 | 추가: | |
| 76 | 추가: #[test] | |
| 77 | 추가: fn options_keep_event_loop_available_for_retry() { | |
| 78 | 추가: let options = renderer::options(Backend::Glow, eframe::NativeOptions::default()); | |
| 79 | 추가: assert!(options.run_and_return); | |
| 80 | 추가: assert!(matches!(options.renderer, eframe::Renderer::Glow)); | |
| 81 | 추가: } |
| @@ -133,5 +133,61 @@ | ||
| 133 | 133 | "merge_heads": { |
| 134 | 134 | "password_pr72": "ff86e6ddb7100781c4d3dc0dd388d10e86d2025c", |
| 135 | 135 | "main": "e497fac4309018a2824b2f296a366a648f4429bf" |
| 136 | 추가: }, | |
| 137 | 추가: "renderer_fallback": { | |
| 138 | 추가: "base_remote_main": "26bb9574dfab498b33825b1157678b146822055b", | |
| 139 | 추가: "tested_source_local_commit": "84ca4cc3b0fa457e45c101a4ba5b3720fb80cdd0", | |
| 140 | 추가: "tested_code_tree": "fec757180d04d57808fa424c7014a76816b8af86", | |
| 141 | 추가: "command": "python3 tests/ci/run_rust.py local", | |
| 142 | 추가: "exit_code": 0, | |
| 143 | 추가: "rust_tests_passed": 953, | |
| 144 | 추가: "runner_checks_passed": 34, | |
| 145 | 추가: "linux_build_targets_passed": 21, | |
| 146 | 추가: "linux_test_targets_passed": 21, | |
| 147 | 추가: "windows_cross_targets_passed": 21, | |
| 148 | 추가: "renderer_order_tests_passed": 6, | |
| 149 | 추가: "windows_order": [ | |
| 150 | 추가: "DX12 hardware", | |
| 151 | 추가: "DX12 software/WARP", | |
| 152 | 추가: "Glow" | |
| 153 | 추가: ], | |
| 154 | 추가: "linux_order": [ | |
| 155 | 추가: "Glow" | |
| 156 | 추가: ], | |
| 157 | 추가: "retry_boundary": "앱 생성 전에만 재시도하며 앱 생성 뒤 오류나 정상 종료에는 다시 시작하지 않음", | |
| 158 | 추가: "startup_failure_ui": "Windows MessageBoxW 한국어 안내와 GUI subsystem", | |
| 159 | 추가: "baseline_package_commit": "9159859b761135a6957a3c527b4aa31cae1802b3", | |
| 160 | 추가: "baseline_note": "9159859와 기준 main 사이 experiments/ 및 packaging/ 변경 없음. 사용자가 시험한 설치 파일과 앱 해시 일치.", | |
| 161 | 추가: "artifacts": { | |
| 162 | 추가: "app": { | |
| 163 | 추가: "before_bytes": 20856408, | |
| 164 | 추가: "before_sha256": "64486c3bbf3edde5041957755a21c738baddf3c5a920aaa1f09b143e9f2a05df", | |
| 165 | 추가: "after_bytes": 29586667, | |
| 166 | 추가: "after_sha256": "a6aabbc0d0411b34fe381e4b73fa737be5b163f6ffdcd562b571ffd5e9d99271", | |
| 167 | 추가: "increase_bytes": 8730259, | |
| 168 | 추가: "local_path": "tests/release-packages/runs/windows-renderer-final/payload/Zipelo.exe" | |
| 169 | 추가: }, | |
| 170 | 추가: "installer": { | |
| 171 | 추가: "before_bytes": 5609149, | |
| 172 | 추가: "before_sha256": "fa9ba9f33897bf4794ff02a2e6151e22bce01b48a8a31eaeb8a0dfb370000ae4", | |
| 173 | 추가: "after_bytes": 7473098, | |
| 174 | 추가: "after_sha256": "e0023e413f09294bf9b123805a5f1f3feabf150f0c25d79952e3cb58a62b6a3f", | |
| 175 | 추가: "increase_bytes": 1863949, | |
| 176 | 추가: "local_path": "tests/release-packages/runs/windows-renderer-final/Zipelo-0.1.0-dev-windows-x64-setup.exe" | |
| 177 | 추가: } | |
| 178 | 추가: }, | |
| 179 | 추가: "windows_runtime_tested": false, | |
| 180 | 추가: "warp_and_message_box_runtime_tested": false, | |
| 181 | 추가: "native_linux_window_rerun": false, | |
| 182 | 추가: "local_logs": [ | |
| 183 | 추가: "tests/renderer-local.log", | |
| 184 | 추가: "tests/renderer-windows.log", | |
| 185 | 추가: "tests/renderer-release.log" | |
| 186 | 추가: ], | |
| 187 | 추가: "initial_build_failures": [ | |
| 188 | 추가: "수동 교차 빌드에서 MinGW 기본 이름을 찾지 못해 기존 gcc-posix 경로를 지정함", | |
| 189 | 추가: "설치 빌드의 생성 캐시가 Git 변경으로 잡혀 개인 저장소 제외 목록에 캐시 경로를 추가하고 같은 소스로 재실행함" | |
| 190 | 추가: ], | |
| 191 | 추가: "evidence_note": "검증과 패키지 생성 후 README와 이 검증 JSON만 갱신함" | |
| 136 | 192 | } |
| 137 | 193 | } |
| @@ -129,6 +129,12 @@ dependencies = [ | ||
| 129 | 129 | "zerocopy", |
| 130 | 130 | ] |
| 131 | 131 | |
| 132 | 추가: [[package]] | |
| 133 | 추가: name = "allocator-api2" | |
| 134 | 추가: version = "0.2.21" | |
| 135 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 136 | 추가: checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" | |
| 137 | 추가: | |
| 132 | 138 | [[package]] |
| 133 | 139 | name = "android-activity" |
| 134 | 140 | version = "0.6.1" |
| @@ -787,6 +793,7 @@ dependencies = [ | ||
| 787 | 793 | "objc2-foundation 0.3.2", |
| 788 | 794 | "parking_lot", |
| 789 | 795 | "percent-encoding", |
| 796 | 추가: "pollster", | |
| 790 | 797 | "profiling", |
| 791 | 798 | "raw-window-handle", |
| 792 | 799 | "send_wrapper", |
| @@ -794,6 +801,7 @@ dependencies = [ | ||
| 794 | 801 | "wasm-bindgen", |
| 795 | 802 | "web-sys", |
| 796 | 803 | "web-time", |
| 804 | 추가: "wgpu", | |
| 797 | 805 | "windows-sys 0.61.2", |
| 798 | 806 | "winit", |
| 799 | 807 | ] |
| @@ -1335,6 +1343,19 @@ dependencies = [ | ||
| 1335 | 1343 | "gl_generator", |
| 1336 | 1344 | ] |
| 1337 | 1345 | |
| 1346 | 추가: [[package]] | |
| 1347 | 추가: name = "gpu-allocator" | |
| 1348 | 추가: version = "0.28.0" | |
| 1349 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 1350 | 추가: checksum = "51255ea7cfaadb6c5f1528d43e92a82acb2b96c43365989a28b2d44ee38f8795" | |
| 1351 | 추가: dependencies = [ | |
| 1352 | 추가: "hashbrown 0.16.1", | |
| 1353 | 추가: "log", | |
| 1354 | 추가: "presser", | |
| 1355 | 추가: "thiserror 2.0.21", | |
| 1356 | 추가: "windows", | |
| 1357 | 추가: ] | |
| 1358 | 추가: | |
| 1338 | 1359 | [[package]] |
| 1339 | 1360 | name = "guillotiere" |
| 1340 | 1361 | version = "0.7.0" |
| @@ -1377,6 +1398,17 @@ dependencies = [ | ||
| 1377 | 1398 | "foldhash 0.1.5", |
| 1378 | 1399 | ] |
| 1379 | 1400 | |
| 1401 | 추가: [[package]] | |
| 1402 | 추가: name = "hashbrown" | |
| 1403 | 추가: version = "0.16.1" | |
| 1404 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 1405 | 추가: checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" | |
| 1406 | 추가: dependencies = [ | |
| 1407 | 추가: "allocator-api2", | |
| 1408 | 추가: "equivalent", | |
| 1409 | 추가: "foldhash 0.2.0", | |
| 1410 | 추가: ] | |
| 1411 | 추가: | |
| 1380 | 1412 | [[package]] |
| 1381 | 1413 | name = "hashbrown" |
| 1382 | 1414 | version = "0.17.1" |
| @@ -2092,6 +2124,15 @@ dependencies = [ | ||
| 2092 | 2124 | "libredox", |
| 2093 | 2125 | ] |
| 2094 | 2126 | |
| 2127 | 추가: [[package]] | |
| 2128 | 추가: name = "ordered-float" | |
| 2129 | 추가: version = "5.5.0" | |
| 2130 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2131 | 추가: checksum = "8c7c9e0d9b23589f26070720bac724174bfec1083e82f7854cdd0267518343c0" | |
| 2132 | 추가: dependencies = [ | |
| 2133 | 추가: "num-traits", | |
| 2134 | 추가: ] | |
| 2135 | 추가: | |
| 2095 | 2136 | [[package]] |
| 2096 | 2137 | name = "ordered-stream" |
| 2097 | 2138 | version = "0.2.0" |
| @@ -2306,6 +2347,12 @@ dependencies = [ | ||
| 2306 | 2347 | "windows-sys 0.61.2", |
| 2307 | 2348 | ] |
| 2308 | 2349 | |
| 2350 | 추가: [[package]] | |
| 2351 | 추가: name = "pollster" | |
| 2352 | 추가: version = "1.0.1" | |
| 2353 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2354 | 추가: checksum = "bc6355899e1c9462875b6757c79f3caa011a1fdae12bbb1a2e72dd1f234f8336" | |
| 2355 | 추가: | |
| 2309 | 2356 | [[package]] |
| 2310 | 2357 | name = "polycool" |
| 2311 | 2358 | version = "0.4.0" |
| @@ -2330,6 +2377,12 @@ dependencies = [ | ||
| 2330 | 2377 | "portable-atomic", |
| 2331 | 2378 | ] |
| 2332 | 2379 | |
| 2380 | 추가: [[package]] | |
| 2381 | 추가: name = "presser" | |
| 2382 | 추가: version = "0.3.1" | |
| 2383 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2384 | 추가: checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" | |
| 2385 | 추가: | |
| 2333 | 2386 | [[package]] |
| 2334 | 2387 | name = "proc-macro-crate" |
| 2335 | 2388 | version = "3.5.0" |
| @@ -2396,6 +2449,12 @@ version = "6.0.0" | ||
| 2396 | 2449 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2397 | 2450 | checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" |
| 2398 | 2451 | |
| 2452 | 추가: [[package]] | |
| 2453 | 추가: name = "range-alloc" | |
| 2454 | 추가: version = "0.1.5" | |
| 2455 | 추가: source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2456 | 추가: checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08" | |
| 2457 | 추가: | |
| 2399 | 2458 | [[package]] |
| 2400 | 2459 | name = "raw-window-handle" |
| 2401 | 2460 | version = "0.6.2" |
| @@ -3362,22 +3421,33 @@ version = "30.0.1" | ||
| 3362 | 3421 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 3363 | 3422 | checksum = "b6b7fb58561a792bc237628ba0792e332de418fefe145f13b5ed8201e6d52f58" |
| 3364 | 3423 | dependencies = [ |
| 3424 | 추가: "arrayvec", | |
| 3425 | 추가: "bit-set", | |
| 3365 | 3426 | "bitflags 2.13.2", |
| 3427 | 추가: "bytemuck", | |
| 3366 | 3428 | "cfg-if", |
| 3367 | 3429 | "cfg_aliases", |
| 3430 | 추가: "gpu-allocator", | |
| 3368 | 3431 | "hashbrown 0.17.1", |
| 3369 | 3432 | "libloading", |
| 3370 | 3433 | "log", |
| 3371 | 3434 | "naga", |
| 3372 | 3435 | "naga-types", |
| 3436 | 추가: "once_cell", | |
| 3437 | 추가: "ordered-float", | |
| 3438 | 추가: "parking_lot", | |
| 3373 | 3439 | "portable-atomic", |
| 3374 | 3440 | "portable-atomic-util", |
| 3441 | 추가: "profiling", | |
| 3442 | 추가: "range-alloc", | |
| 3375 | 3443 | "raw-window-handle", |
| 3376 | 3444 | "renderdoc-sys", |
| 3377 | 3445 | "static_assertions", |
| 3378 | 3446 | "thiserror 2.0.21", |
| 3379 | 3447 | "wgpu-naga-bridge", |
| 3380 | 3448 | "wgpu-types", |
| 3449 | 추가: "windows", | |
| 3450 | 추가: "windows-core", | |
| 3381 | 3451 | ] |
| 3382 | 3452 | |
| 3383 | 3453 | [[package]] |
| @@ -3975,6 +4045,7 @@ name = "zipelo-ui-memory-gui-races" | ||
| 3975 | 4045 | version = "0.1.0" |
| 3976 | 4046 | dependencies = [ |
| 3977 | 4047 | "eframe", |
| 4048 | 추가: "wgpu", | |
| 3978 | 4049 | "zipelo-app-core-memory", |
| 3979 | 4050 | ] |
| 3980 | 4051 |
| @@ -11,7 +11,7 @@ autotests = false | ||
| 11 | 11 | |
| 12 | 12 | [features] |
| 13 | 13 | default = [] |
| 14 | 삭제: gui-race-harness = ["dep:eframe"] | |
| 14 | 추가: gui-race-harness = ["dep:eframe", "dep:wgpu"] | |
| 15 | 15 | |
| 16 | 16 | [dependencies] |
| 17 | 17 | core_memory = { package = "zipelo-app-core-memory", path = "../../experiments/rust-app-core-memory" } |
| @@ -21,3 +21,7 @@ eframe = { version = "=0.37.0", optional = true, default-features = false, featu | ||
| 21 | 21 | name = "zipelo-ui-memory-gui-races" |
| 22 | 22 | path = "main.rs" |
| 23 | 23 | required-features = ["gui-race-harness"] |
| 24 | 추가: | |
| 25 | 추가: [target.'cfg(target_os = "windows")'.dependencies] | |
| 26 | 추가: wgpu = { version = "=30.0.1", optional = true, default-features = false, features = ["std", "dx12"] } | |
| 27 | 추가: eframe = { version = "=0.37.0", optional = true, default-features = false, features = ["wgpu_no_default_features"] } |