Skip to content

0.9.0

Choose a tag to compare

@etherealrl etherealrl released this 17 Oct 17:49
· 6 commits to main since this release

anybox works from C# now, C++ has its own API, and every language has all of it, Medius included

  • C#: dotnet add package Anybox, .NET 10 on Windows and Linux. the library comes inside the package so you don't need Rust, and device.Medius() gives you everything only Medius does
  • C++: the capi tarball has anybox.hpp and anybox_medius.hpp now, the same API with RAII and exceptions, and device.medius() gives you a C++ Medius device instead of a handle for medius.h
  • every error carries its details in every language (the ports it tried, the boxes that couldn't do it, what it expected and what it found, etc), not just a status and a text
  • event stamps also come in nanoseconds on the OS monotonic clock (Stamp::arrived_ns, received_ns and anybox::monotonic_ns()), so they line up with other devices and other programs on the same machine. Python's time.perf_counter_ns() and .NET's Stopwatch read that same clock
  • Events::close() ends a receiver from any thread, a recv waiting on it returns right away
  • Python: a receiver that ran out raises RecvClosedError now instead of the closed device's error, a for over it still just ends
  • built on medius 3.4.6
  • how to install and use each language is in docs/bindings.md

the Rust API only got additions, so updating from 0.8.0 is just the version number. the C ABI is 2 now, so a C or C++ program needs the new headers and library