fish-shell/fish-rust
Mahmoud Al-Qudsi 77dda2cdef Add ToCString trait
This can be used for functions that accept non-Unicode content (i.e. &CStr or
CString) but are often used in our code base with a UTF-8 or UTF-32 string
on-hand.

When such a function is passed a CString, it's passed through as-is and
allocation-free. But when, as is often the case, we have a static string we can
now pass it in directly with all the nice ergonomics thereof instead of having
to manually create and unwrap a CString at the call location.

There's an upstream request to add this functionality to the standard library:
https://github.com/rust-lang/rust/issues/71448
2023-05-25 16:54:07 -05:00
..
src Add ToCString trait 2023-05-25 16:54:07 -05:00
widestring-suffix Initial Rust commit 2023-02-02 19:34:47 -07:00
build.rs Add rsconf build system and check for gettext symbols 2023-05-25 16:54:03 -05:00
Cargo.lock Add rsconf build system and check for gettext symbols 2023-05-25 16:54:03 -05:00
Cargo.toml Add rsconf build system and check for gettext symbols 2023-05-25 16:54:03 -05:00