Repository navigation
0.9.0
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, anddevice.Medius()gives you everything only Medius does - C++: the capi tarball has
anybox.hppandanybox_medius.hppnow, the same API with RAII and exceptions, anddevice.medius()gives you a C++ Medius device instead of a handle formedius.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_nsandanybox::monotonic_ns()), so they line up with other devices and other programs on the same machine. Python'stime.perf_counter_ns()and .NET'sStopwatchread that same clock Events::close()ends a receiver from any thread, arecvwaiting on it returns right away- Python: a receiver that ran out raises
RecvClosedErrornow instead of the closed device's error, aforover 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