Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions drivers/native/src/devices/window_screen/window.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
use alloc::sync::Arc;

use arboard::Clipboard;
use graphics::{InputData, Key, Point, State};
use pixels::{Pixels, SurfaceTexture};
use synchronization::rwlock::RwLock;
use synchronization::{blocking_mutex::raw::CriticalSectionRawMutex, channel::Sender};
use synchronization::{Arc, blocking_mutex::raw::CriticalSectionRawMutex, channel::Sender};
use winit::{
application::ApplicationHandler,
dpi::LogicalSize,
Expand Down
4 changes: 2 additions & 2 deletions drivers/wasm/src/devices/graphics/mouse.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use alloc::{boxed::Box, string::String, sync::Arc};
use alloc::{boxed::Box, string::String};
use file_system::{DirectBaseOperations, DirectCharacterDevice, MountOperations, Size};
use graphics::{InputData, Point, State};
use synchronization::{blocking_mutex::raw::CriticalSectionRawMutex, rwlock::RwLock};
use synchronization::{Arc, blocking_mutex::raw::CriticalSectionRawMutex, rwlock::RwLock};
use task::block_on;
use wasm_bindgen::{JsCast, prelude::Closure};
use web_sys::{HtmlCanvasElement, MouseEvent, TouchEvent};
Expand Down
3 changes: 3 additions & 0 deletions modules/synchronization/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ embassy-sync = { workspace = true, features = ["std"] }

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
embassy-sync = { workspace = true }

[target.'cfg(any(target_os = "linux", target_os = "windows", target_os = "macos"))'.dev-dependencies]
critical-section = { workspace = true, features = ["std"] }
Loading
Loading