Debian Codegraph @

third_party/rust/unix_path/Readme.md

raw
1 # `unix_path`
2
3 Platform-independent handling of Unix paths, including `#![no_std]`
4 environments. This crate is mostly extracted from `std`, except that it uses
5 [`unix_str`] instead of `std`'s `OsStr` and some methods are renamed
6 appropriately.
7
8 [`unix_str`]: https://crates.io/crates/unix_str
9
10 ## Features
11
12 - `shrink_to`: implements the unstable `shrink_to` method;
13 - `alloc`: implements `PathBuf` and transformations with `Box`, `Rc` and `Arc`;
14 - `std`: `alloc` + implements the `Error` trait for errors. Enabled by default;
15 - `serde`: Implements `Serialize` and `Deserialize` for `Path` and `PathBuf`.
16
17 ## License
18
19 Licensed under either of
20
21 - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE)
22 or http://www.apache.org/licenses/LICENSE-2.0)
23 - MIT license ([LICENSE-MIT](LICENSE-MIT)
24 or http://opensource.org/licenses/MIT)
25
26 at your option.
27
28 ## Contribution
29
30 Unless you explicitly state otherwise, any contribution intentionally submitted
31 for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
32 dual licensed as above, without any additional terms or conditions.