serial-rs
serial-rs copied to clipboard
Serial enumeration
Looks to be some registry parsing for Windows, but for Unix it's merely processing /dev/ entries.
Python's take on serial port enumeration.
This is definitely in the plans. I've done some groundwork for this already by implementing crates needed for listing serial ports on Linux (libudev) and OS X (IOKit and CoreFoundation). Using those APIs seems similar to Python's solution, which mentions using sysfs (libudev) and IOKit. I pasted some links in #14 in case someone wants to start working on this before me.
@dcuddeback Can you respond to my PR so we can ideally merge this code? I've been using it for a while in my own project and it works on Windows and Linux (appveyor fails because of another package not working on Rust 1.3).
@Susurrus I feel like my input has been mostly ignored up to this point, so I think it's a better use of my free time to work on this feature myself than to spend more time trying to guide the existing PRs into an acceptable solution.
Fair enough. In the mean time I'll use my fork for this functionality then. Any idea when this might be available in mainline? Additionally, let me know if there's any way I can help to speed this along beyond what I've already done.
@dcuddeback Any updates on this work and the big refactoring? I'm looking to push my project to crates.io, which requires that it only uses libraries with releases on there, so I'm blocking on serial enumeration in a release.
@dcuddeback any news about this? It would be a great addition to the library.
@dcuddeback is anyone working on this at the moment? If not, I might be able to look into it and make a PR.
Bump again for work? This is pretty important functionality for finding devices in a robust manner.