os_str_bytes新增bundle.json部件化 Created-by: dragonswordy Commit-by: ljy9810 Merged-by: openharmony_ci Description: ### 一、内容说明(相关的Issue) https://gitcode.com/openharmony/third_party_rust_autocfg/issues/3 ### 二、建议测试周期和提测地址 建议测试完成时间:xxxx.xx.xx 投产上线时间:xxxx.xx.xx 提测地址:CI环境/压测环境 测试账号: ### 三、变更内容 * 3.1 关联PR列表 * 3.2 数据库和部署说明 1. 常规更新 2. 重启unicorn 3. 重启sidekiq 4. 迁移任务:是否有迁移任务,没有写 "无" 5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无" * 3.4 其他技术优化内容(做了什么,变更了什么) - 重构了 xxxx 代码 - xxxx 算法优化 * 3.5 废弃通知(什么字段、方法弃用?) * 3.6 后向不兼容变更(是否有无法向后兼容的变更?) ### 四、研发自测点(自测哪些?冒烟用例全部自测?) 自测测试结论: ### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方) 检查点: | 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 | |------|------------|----------|---------------| | xxx | 否 | 需要 | 不需要 | | | | | | 接口测试: 性能测试: 并发测试: 其他: See merge request: openharmony/third_party_rust_os_str_bytes!5
OsStr Bytes
This crate allows interacting with the data stored by OsStr and
OsString, without resorting to panics or corruption for invalid UTF-8.
Thus, methods can be used that are already defined on [u8] and
Vec<u8>.
Typically, the only way to losslessly construct OsStr or OsString from
a byte sequence is to use OsStr::new(str::from_utf8(bytes)?), which requires
the bytes to be valid in UTF-8. However, since this crate makes conversions
directly between the platform encoding and raw bytes, even some strings invalid
in UTF-8 can be converted.
Usage
Add the following lines to your "Cargo.toml" file:
[dependencies]
os_str_bytes = "6.4"
See the documentation for available functionality and examples.
Rust version support
The minimum supported Rust toolchain version depends on the platform:
| Target | Target Triple | Minimum Version |
|---|---|---|
| Fortanix | *-fortanix-*-sgx |
nightly (sgx_platform) |
| HermitCore | *-*-hermit |
1.57.0 |
| SOLID | *-*-solid_asp3(-*) |
1.57.0 |
| Unix | Unix | 1.57.0 |
| WASI | *-wasi |
1.57.0 |
| WebAssembly | wasm32-*-unknown |
1.57.0 |
| Windows | *-*-windows-* |
1.57.0 |
| Xous | *-*-xous-* |
unstable |
Minor version updates may increase these version requirements. However, the previous two Rust releases will always be supported. If the minimum Rust version must not be increased, use a tilde requirement to prevent updating this crate's minor version:
[dependencies]
os_str_bytes = "~6.4"
License
Licensing terms are specified in COPYRIGHT.
Unless you explicitly state otherwise, any contribution submitted for inclusion in this crate, as defined in LICENSE-APACHE, shall be licensed according to COPYRIGHT, without any additional terms or conditions.