kittest: No `debug_open_snapshot` on wasm (#7606)
This commit is contained in:
parent
3fdc5641aa
commit
4d4f90eb31
|
|
@ -94,7 +94,7 @@ env_logger = { version = "0.11.8", default-features = false }
|
||||||
glow = "0.16.0"
|
glow = "0.16.0"
|
||||||
glutin = { version = "0.32.3", default-features = false }
|
glutin = { version = "0.32.3", default-features = false }
|
||||||
glutin-winit = { version = "0.5.0", default-features = false }
|
glutin-winit = { version = "0.5.0", default-features = false }
|
||||||
home = "0.5.9" # need to puse to an old version because newer version are incompatible with wasm (at least when building Rerun)
|
home = "0.5.9"
|
||||||
image = { version = "0.25.6", default-features = false }
|
image = { version = "0.25.6", default-features = false }
|
||||||
js-sys = "0.3.81"
|
js-sys = "0.3.81"
|
||||||
kittest = { version = "0.2.0", git = "https://github.com/rerun-io/kittest.git" }
|
kittest = { version = "0.2.0", git = "https://github.com/rerun-io/kittest.git" }
|
||||||
|
|
|
||||||
|
|
@ -61,12 +61,15 @@ wgpu = { workspace = true, features = [
|
||||||
|
|
||||||
# snapshot dependencies
|
# snapshot dependencies
|
||||||
dify = { workspace = true, optional = true }
|
dify = { workspace = true, optional = true }
|
||||||
open = { workspace = true, optional = true }
|
|
||||||
tempfile = { workspace = true, optional = true }
|
|
||||||
|
|
||||||
# Enable this when generating docs.
|
# Enable this when generating docs.
|
||||||
document-features = { workspace = true, optional = true }
|
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]
|
[dev-dependencies]
|
||||||
egui = { workspace = true, features = ["default_fonts"] }
|
egui = { workspace = true, features = ["default_fonts"] }
|
||||||
image = { workspace = true, features = ["png"] }
|
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
|
/// This method is marked as deprecated to trigger errors in CI (so that it's not accidentally
|
||||||
/// committed).
|
/// committed).
|
||||||
#[deprecated = "Only for debugging, don't commit this."]
|
#[deprecated = "Only for debugging, don't commit this."]
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
pub fn debug_open_snapshot(&mut self) {
|
pub fn debug_open_snapshot(&mut self) {
|
||||||
let image = self
|
let image = self
|
||||||
.render()
|
.render()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue