lib-misc-utils · crate

shlex

Libraryenvironment

Kinogaki's own shlex, published under the crates.io name so the frozen cc (blake3's build script, splitting CFLAGS-style variables) resolves to it through [patch.crates-io].

Repository
lib-misc-utils (kinogaki/lib-misc-utils)
Folder
libs/lib-misc-utils/crates/shlex
Source
1 file, 99 lines
Tests
1 file, 30 lines
This crate shlex
depends onused by tests alonedependencies for tests alone are listed below, not drawn

What it is

Kinogaki's own shlex, published under the crates.io name so the frozen cc (blake3's build script, splitting CFLAGS-style variables) resolves to it through [patch.crates-io]. It is not upstream shlex: it has the one type cc uses.

Shlex splits a string into words as a POSIX shell would, without expansions: unquoted whitespace separates words; '...' is literal; "..." is literal except \ before $, `, ", \ or a newline; an unquoted \ takes the next character literally (and joins lines before a newline); # at the start of a word comments out the rest of its line. An unterminated quote or a trailing \ ends the words and sets had_error.

Depends on

None.

Third-party

None.

Used by

None.

Third-party crates using it

cc

Modules

One file: the crate root.

Public types and traits

At the crate root

Structs Shlex

Besides these, 1 public function at module level.