Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IntoLua/FromLua for OsString/OsStr and PathBuf/Path #459

Merged
merged 3 commits into from
Oct 6, 2024

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