Closed TechnikTobi closed 1 year ago
Hi, and thanks for the report!
Looks like std::os::unix::ffi::OsStrExt
brings in as_bytes()
(https://doc.rust-lang.org/std/os/unix/ffi/trait.OsStrExt.html) which is being used here to convert between Rust strings and the CString
used to pass data to the underlying C library.
I'm sure there must be a cross-platform way to write this, but I don't have Windows experience or access to a Windows machine, so I don't know it off-hand. A patch to make things cross-platform would be very welcome, if you'd be willing to investigate what the "standard" way of passing CString
paths to FFI libraries is. If you're not up for that, no worries, but I might not get to it for a while (busy time right now, unfortunately).
Resolved in #60 -- thanks again!
Hi, I’m currently trying to get one of my projects to build on windows (using a GitHub action on a
windows-latest
runner, so the environment should be easily reproducible) and ran into a problem regarding the libraries usage of some unix-specific functionality (see following error messages).(This is my first GitHub issue ever, so I am sorry if I missed something critical and I’ll be happy to provide you with any further information required to solve this bug.)