mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
kittest: No debug_open_snapshot on wasm (#7606)
This commit is contained in:
@@ -61,12 +61,15 @@ wgpu = { workspace = true, features = [
|
||||
|
||||
# snapshot dependencies
|
||||
dify = { workspace = true, optional = true }
|
||||
open = { workspace = true, optional = true }
|
||||
tempfile = { workspace = true, optional = true }
|
||||
|
||||
# Enable this when generating docs.
|
||||
document-features = { workspace = true, optional = true }
|
||||
|
||||
# Native dependencies:
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
open = { workspace = true, optional = true }
|
||||
tempfile = { workspace = true, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
egui = { workspace = true, features = ["default_fonts"] }
|
||||
image = { workspace = true, features = ["png"] }
|
||||
|
||||
@@ -641,6 +641,7 @@ impl<State> Harness<'_, State> {
|
||||
/// This method is marked as deprecated to trigger errors in CI (so that it's not accidentally
|
||||
/// committed).
|
||||
#[deprecated = "Only for debugging, don't commit this."]
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub fn debug_open_snapshot(&mut self) {
|
||||
let image = self
|
||||
.render()
|
||||
|
||||
Reference in New Issue
Block a user