Skip to content

A wide string Rust library for converting to and from wide-character strings, including UTF-16 and UTF-32 encoding.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

VoidStarKat/widestring-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8aee92d · Mar 21, 2025
Mar 21, 2025
Sep 12, 2021
Mar 15, 2025
Mar 15, 2025
Aug 26, 2022
Sep 12, 2021
Jan 22, 2016
Apr 6, 2024
Mar 15, 2025
Mar 15, 2025
Mar 21, 2025
Mar 14, 2025
Mar 14, 2025
Aug 26, 2022
Mar 14, 2025

Repository files navigation

widestring

Crates.io Documentation Crates.io Build status

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

Macros for converting string literals to UTF-16 and UTF-32 strings at compile time are also included.

Requires Rust 1.58 or greater. If you need support for older versions of Rust, use 0.x versions of this crate.

Documentation

Optional Features

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

    This enables the owned string types and aliases.

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

  • debugger_visualizer Add debugger visualizer data for crate types. Requires Rust 1.71 or newer

License

All files in this library are dual-licensed and 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.

About

A wide string Rust library for converting to and from wide-character strings, including UTF-16 and UTF-32 encoding.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Sponsor this project

Languages