Skip to content

Commit

Permalink
targets
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Oct 17, 2024
1 parent 391768d commit 7da7681
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/store/re_data_loader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ default = []
[dependencies]
re_build_info.workspace = true
re_chunk.workspace = true
re_crash_handler.workspace = true # for signal handling
re_log_encoding = { workspace = true, features = ["decoder"] }
re_log_types.workspace = true
re_log.workspace = true
Expand All @@ -46,6 +45,9 @@ rayon.workspace = true
thiserror.workspace = true
walkdir.workspace = true

[target.'cfg(not(any(target_arch = "wasm32", target_os = "windows")))'.dependencies]
re_crash_handler.workspace = true

[dev-dependencies]
re_log_encoding = { workspace = true, features = ["decoder", "encoder"] }
tempfile.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions crates/store/re_data_loader/src/loader_rrd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ impl RetryableFileReader {
.with_context(|| format!("Failed to open file {filepath:?}"))?;
let reader = std::io::BufReader::new(file);

#[cfg(not(any(target_os = "windows", target_arch = "wasm32")))]
re_crash_handler::sigint::track_sigint();

// 50ms is just a nice tradeoff: we just need the delay to not be perceptible by a human
// while not needlessly hammering the CPU.
let rx_ticker = crossbeam::channel::tick(std::time::Duration::from_millis(50));
Expand Down

0 comments on commit 7da7681

Please sign in to comment.