Create a ...Event struct for each EventType to hold the InputEvent
Guarantee that each ...Event struct can only hold a InputEvent of the corresponding EventType
Demonstrate what the FFEvent does in the force_feedback example.
Device, RawDevice, and VirtualDevice now implement AsFd.
Changed
Removed the evdev::Error type - fallible functions now just return io::Error.
Consistent naming and structure of all new-types for event-codes
Some of them where previously named ...Type now they are all named ...Code
Rename InputEventKind to EventSummary
Created missing EventSummary variants. I know some of them are kind of unused but it is less confusing if they are all there and look the same.
Each variant of the EventSummary enum now has the structure Variant(...Event, ...Type, value)
Renamed Key struct (the one with all the Key constants) to KeyCode to keep the naming consistent!
Rename InputEvent::kind to InputEvent::destructure this now returns a EventSummary
InputEvent::new no longer takes the EventType but u16 as first argument. If the EventType is known we can directly construct the correct variant.
Ensure the unsafe code still does what we expect.
Update the Examples.
The minimum supported rust version (MSRV) is now 1.63, due to AsFd support.
In order for the EventStream types to implement Stream, the stream-trait
feature must now be specified.
Fixed
Update VirtualDevice::fetch_events to yield InputEvents instead of UInputEvents. That was a bug which was not accounted for be the type system. Yielding UInputEvents there will now panic.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the vhost-device group with 12 updates:
1.0.59
1.0.60
0.12.1
0.12.2
1.0.200
1.0.201
1.0.82
1.0.83
0.2.14
0.2.15
1.0.81
1.0.82
1.0.17
1.0.18
1.0.22
1.0.23
1.0.200
1.0.201
1.0.59
1.0.60
0.7.33
0.7.34
0.7.33
0.7.34
Updates
thiserror
from 1.0.59 to 1.0.60Release notes
Sourced from thiserror's releases.
Commits
870d11b
Release 1.0.600ccee7c
Merge pull request #298 from dtolnay/checkcfgcf43d0c
Resolve unexpected_cfgs warningUpdates
evdev
from 0.12.1 to 0.12.2Changelog
Sourced from evdev's changelog.
Commits
Updates
serde
from 1.0.200 to 1.0.201Release notes
Sourced from serde's releases.
Commits
b4f1bc1
Release 1.0.201029ab46
Merge pull request #2737 from dtolnay/checkcfg220ca0c
Resolve unexpected_cfgs warning20306f4
Fix cfg on test_systemtime_overflowUpdates
anyhow
from 1.0.82 to 1.0.83Release notes
Sourced from anyhow's releases.
Commits
96f0392
Release 1.0.8317bbd1e
Merge pull request #363 from dtolnay/checkcfg3ab3c3b
Resolve unexpected_cfgs warning8e62244
Discard CI coverage of backtrace feature on toolchains older than 1.63e77374f
Mirror PR 343 changes from readme to rustdoccb47d7c
Reword no-std documentation change from PR 3436b5bdb1
Wrap PR 343 to 80 columnsf01080b
Merge pull request #343 from Arthur-Milchior/readme1Updates
getrandom
from 0.2.14 to 0.2.15Changelog
Sourced from getrandom's changelog.
Commits
cf65e83
Release v0.2.15 (#419)a24538f
Remove .cargo/config (#421)229d870
Use libc::getrandom on Solaris and update docs. (#420)924c88d
Unconditionally uselibc::getrandom
on Illumos andlibc::geentropy
on Sol...20c2213
Unify getentropy-based implementations (#418)dca4961
Unconditionally use libc::getrandom on FreeBSD (#416)d4b0ef0
Use libc::getrandom on DragonflyBSD (#411)0d55923
Add Apple visionOS support (#410)Updates
proc-macro2
from 1.0.81 to 1.0.82Release notes
Sourced from proc-macro2's releases.
Commits
8dc63f3
Release 1.0.82790cb41
Merge pull request #457 from dtolnay/defaultfeatures2ebe711
Fix use of deprecated default_features in Cargo.tomla720819
Delete unused nightly cfg37c5d18
Merge pull request #456 from dtolnay/checkcfg5e02f52
Suppress unknown_lints warning on old rustc2660d30
Resolve unexpected_cfgs warningUpdates
ryu
from 1.0.17 to 1.0.18Release notes
Sourced from ryu's releases.
Commits
12746aa
Release 1.0.1886b1932
Merge pull request #55 from dtolnay/checkcfg6132d8b
Resolve unexpected_cfgs warning7b7c262
Remove html_root_url reminder from Cargo.tomla05753c
Revert "Temporarily disable miri on doctests"8a06923
Explicitly install a Rust toolchain for cargo-outdated jobdbb973b
Temporarily disable miri on doctestsUpdates
semver
from 1.0.22 to 1.0.23Release notes
Sourced from semver's releases.
Commits
69efd3c
Release 1.0.23451b419
Merge pull request #318 from dtolnay/checkcfg5b71485
Resolve unexpected_cfgs warningc520af7
Revert "Temporarily disable miri on doctests"73b5d9e
Merge pull request #313 from Saecki/patch-1e8d61de
chore: fix typo in safety commentd282d48
Explicitly install a Rust toolchain for cargo-outdated job6e6ba22
Temporarily disable miri on doctestsUpdates
serde_derive
from 1.0.200 to 1.0.201Release notes
Sourced from serde_derive's releases.
Commits
b4f1bc1
Release 1.0.201029ab46
Merge pull request #2737 from dtolnay/checkcfg220ca0c
Resolve unexpected_cfgs warning20306f4
Fix cfg on test_systemtime_overflowUpdates
thiserror-impl
from 1.0.59 to 1.0.60Release notes
Sourced from thiserror-impl's releases.
Commits
870d11b
Release 1.0.600ccee7c
Merge pull request #298 from dtolnay/checkcfgcf43d0c
Resolve unexpected_cfgs warningUpdates
zerocopy
from 0.7.33 to 0.7.34Commits
Updates
zerocopy-derive
from 0.7.33 to 0.7.34Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show