#string #unix #convert

no-std unix_str

Unix-compatible strings regardless of platform

1 stable release

1.0.0 Aug 3, 2020

#281 in No standard library

Download history 1114/week @ 2024-12-11 1162/week @ 2024-12-18 646/week @ 2024-12-25 900/week @ 2025-01-01 1229/week @ 2025-01-08 1274/week @ 2025-01-15 1691/week @ 2025-01-22 1430/week @ 2025-01-29 1070/week @ 2025-02-05 994/week @ 2025-02-12 970/week @ 2025-02-19 1092/week @ 2025-02-26 1165/week @ 2025-03-05 1705/week @ 2025-03-12 1328/week @ 2025-03-19 1328/week @ 2025-03-26

5,702 downloads per month
Used in 20 crates (4 directly)

MIT/Apache

58KB
1K SLoC

unix_str

Unix-compatible strings regardless of platform, including #![no_std] environents. This crate is extracted from std.

Features

  • shrink_to: implements the unstable shrink_to method;
  • unixstring_ascii: ASCII transformations, std's unstable feature;
  • toowned_clone_into: implements ToOwned::clone_into, an unstable method;
  • alloc: implements UnixString and transformations with Box, Rc and Arc;
  • std: an alias for alloc.

License

Licensed under either of

at your option.

Contribution

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

Features