chore: Move most of keyboard.rs to winit-core

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley
2024-02-04 10:34:59 -08:00
parent 557464489e
commit 2f197315d9
6 changed files with 1789 additions and 1778 deletions

View File

@@ -7,5 +7,7 @@ members = [
resolver = "2"
[workspace.dependencies]
bitflags = "2"
serde = { version = "1", features = ["serde_derive"] }
smol_str = "0.2.0"
winit-core = { path = "./winit-core", default-features = false, features = ["std"] }

View File

@@ -16,7 +16,9 @@ rust-version = "1.70.0"
default = ["std"]
std = ["alloc"]
alloc = []
serde = ["dep:serde"]
serde = ["dep:serde", "smol_str/serde"]
[dependencies]
bitflags.workspace = true
serde = { workspace = true, optional = true }
smol_str.workspace = true

1779
winit-core/src/keyboard.rs Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -12,3 +12,4 @@ compile_error! { "no-std and no-alloc usage are not yet supported" }
pub mod dpi;
pub mod error;
pub mod keyboard;

View File

@@ -61,7 +61,7 @@ rwh_06 = ["dep:rwh_06", "ndk/rwh_06"]
cfg_aliases = "0.2.0"
[dependencies]
bitflags = "2"
bitflags.workspace = true
cursor-icon = "1.1.0"
log = "0.4"
mint = { version = "0.5.6", optional = true }
@@ -70,7 +70,7 @@ rwh_04 = { package = "raw-window-handle", version = "0.4", optional = true }
rwh_05 = { package = "raw-window-handle", version = "0.5.2", features = ["std"], optional = true }
rwh_06 = { package = "raw-window-handle", version = "0.6", features = ["std"], optional = true }
serde = { workspace = true, optional = true }
smol_str = "0.2.0"
smol_str.workspace = true
winit-core.workspace = true
[dev-dependencies]

File diff suppressed because it is too large Load Diff