Skip to content

anybox 0.2.0

Choose a tag to compare

@etherealrl etherealrl released this 11 Oct 22:48
· 14 commits to main since this release

my app needs these to move over to anybox, so here they are

what's new:

  • received on every event's stamp, when anybox got it, with the raw QPC on Windows. on a MAKCU it's taken right after the port read (19 to 72 us before your app sees it, checked on the box). arrived is still there but on a Medius it's the box clock smoothed, so use received next to a capture
  • device.events_of(EventKinds::BUTTONS) and friends, a receiver only gets the kinds it asks for and the box only streams what someone wants
  • Connect::auto().can(Action::Move) opens the first box that can do what you need, and anybox::find() now tells you what each box can do
  • close() works on a device you share between threads, every call after it fails with Error::Closed
  • Info.port says which port the box is on
  • the mock feature, Device::mock_medius runs your code against the medius crate's mock box without a box plugged in, plus constructors for events and stamps so you can test your own handling

it's 0.x so a few types changed shape (the stamp, Dropped now says which kind), the compiler will tell you where

cargo add anybox-rs