#wide #string #win32 #utf-16 #utf-32

widestring

A wide string FFI library for converting to and from wide strings, such as those often used in Windows API or other FFI libraries. Both UTF-16 and UTF-32 types are provided.

8 releases

Uses old Rust 2015

0.4.3 Oct 5, 2020
0.4.2 Jun 9, 2020
0.4.0 Aug 18, 2018
0.3.0 Mar 17, 2018
0.1.0 Jan 25, 2016

#23 in Encoding

Download history 44971/week @ 2021-05-26 44335/week @ 2021-06-02 51190/week @ 2021-06-09 58199/week @ 2021-06-16 52767/week @ 2021-06-23 49178/week @ 2021-06-30 52804/week @ 2021-07-07 48809/week @ 2021-07-14 49789/week @ 2021-07-21 59045/week @ 2021-07-28 55780/week @ 2021-08-04 52645/week @ 2021-08-11 82122/week @ 2021-08-18 58457/week @ 2021-08-25 68056/week @ 2021-09-01 57005/week @ 2021-09-08

166,278 downloads per month
Used in 809 crates (81 directly)

MIT/Apache

130KB
1K SLoC

widestring

Crates.io docs.rs Build status Build Status

A wide string Rust FFI library for converting to and from wide strings, such as those often used in Windows API or other FFI libaries. Both UTF-16 and UTF-32 types are provided, including support for malformed encoding.

Documentation

Optional Features

  • alloc - Enabled by default. Enable use of the alloc crate when not using the std library.

    This enables the U16String, U32String, U16CString, U32CString types and alises.

  • std - Enabled by default. Enable features that depend on the Rust std library, including everything in the alloc feature.

License

This library is distributed under the terms of either of:

at your option.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps