Re: WIP: usbredir rust bindings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Aug 03, 2021 at 02:46:51PM +0400, Marc-André Lureau wrote:
> Hi
> Just to let you know that I started a usbredir binding to Rust:
> Atm, it compiles with a custom rusb. I have some MR there (
> &
> See the example:

Awesome work!

I'm actually in favor of moving usbredir codebase to Rust in the
future as it is not that big ~ 6k lines of code (usbredirhost and

> Atm, I pass an open fd with bash for testing, ex:
> exec 3<>/dev/tcp/localhost/7777
> target/debug/examples/usbredir '1050:0407' --fd 3
> Next, it could be extended this with [--tcp host:port], [--unix path],
> [-l|--listen]. Then I suppose it will be close to
> (Note that the Rust code doesn't use poll(), since it isn't portable. See
> The libusb/usbredir APIs don't make it easy to handle events..)

Yes and I think it is fine.


Attachment: signature.asc
Description: PGP signature

[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]