• Home
Name Date Size #Lines LOC

..--

.github/workflows/06-Sep-2024-3732

src/06-Sep-2024-1,302845

.cargo_vcs_info.jsonD06-Sep-202494 66

.gitignoreD06-Sep-202472 98

Android.bpD06-Sep-20242.2 KiB7368

CHANGELOG.mdD06-Sep-2024504 2212

Cargo.tomlD06-Sep-20241 KiB3633

Cargo.toml.origD06-Sep-2024585 2422

LICENSED06-Sep-202411.1 KiB202169

LICENSE-APACHED06-Sep-2024566 1410

LICENSE-MITD06-Sep-20241.1 KiB2217

METADATAD06-Sep-2024607 2119

MODULE_LICENSE_APACHE2D06-Sep-20240

OWNERSD06-Sep-202440 21

README.mdD06-Sep-20241.9 KiB4030

TEST_MAPPINGD06-Sep-2024287 1514

cargo_embargo.jsonD06-Sep-2024115 109

README.md

1[![ci badge]][ci link] [![crates.io badge]][crates.io link] [![docs.rs badge]][docs.rs link]
2
3[crates.io badge]: https://img.shields.io/crates/v/shlex.svg?style=flat-square
4[crates.io link]: https://crates.io/crates/shlex
5[docs.rs badge]: https://img.shields.io/badge/docs-online-dddddd.svg?style=flat-square
6[docs.rs link]: https://docs.rs/shlex
7[ci badge]: https://img.shields.io/github/actions/workflow/status/comex/rust-shlex/test.yml?branch=master&style=flat-square
8[ci link]: https://github.com/comex/rust-shlex/actions
9
10Same idea as (but implementation not directly based on) the Python shlex
11module. However, this implementation does not support any of the Python
12module's customization because it makes parsing slower and is fairly useless.
13You only get the default settings of shlex.split, which mimic the POSIX shell:
14<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html>
15
16This implementation also deviates from the Python version in not treating \r
17specially, which I believe is more compliant.
18
19This crate can be used on either normal Rust strings, or on byte strings with
20the `bytes` module. The algorithms used are oblivious to UTF-8 high bytes, so
21internally they all work on bytes directly as a micro-optimization.
22
23Disabling the `std` feature (which is enabled by default) will allow the crate
24to work in `no_std` environments, where the `alloc` crate, and a global
25allocator, are available.
26
27# LICENSE
28
29The source code in this repository is Licensed under either of
30- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
31  https://www.apache.org/licenses/LICENSE-2.0)
32- MIT license ([LICENSE-MIT](LICENSE-MIT) or
33  https://opensource.org/licenses/MIT)
34
35at your option.
36
37Unless you explicitly state otherwise, any contribution intentionally submitted
38for inclusion in the work by you, as defined in the Apache-2.0 license, shall
39be dual licensed as above, without any additional terms or conditions.
40