Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

widestring-rs

> 编程语言
Open source

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

100 stars0 likes0 views
WebsiteGitHub

About

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

widestring

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

  • Crate API Reference
  • Latest Changes

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:

  • MIT License (https://opensource.org/license/mit)
  • Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0)

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.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustruststringunicodeutf-16

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言