Skip to content

Conversation

psentee
Copy link
Contributor

@psentee psentee commented Sep 21, 2024

Adding Lua conversion traits for OsString/OsStr and PathBuf/Path, via bstr methods.

Tested on Linux (should be zero-cost conversion), can't vouch for Windows – relying on bstr crate (already used by mlua) for correct implementation. I can also change it into a Unix-only implementation using std::os::unix::ffi::{OsStrExt, OsStringExt} traits if that's a better approach.

@khvzak khvzak merged commit 6d5e735 into mlua-rs:main Oct 6, 2024
136 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants