MCPcopy Index your code
hub / github.com/dylni/os_str_bytes

github.com/dylni/os_str_bytes @7.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 7.2.0 ↗ · + Follow
182 symbols 346 edges 32 files 2 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

OsStr Bytes

This crate provides additional functionality for [OsStr] and [OsString], without resorting to panics or corruption for invalid UTF-8. Thus, familiar methods from [str] and [String] can be used.

GitHub Build Status

Usage

Add the following lines to your "Cargo.toml" file:

[dependencies]
os_str_bytes = "7.2"

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 nightly (rust-toolchain.toml)
SOLID *-*-solid_asp3(-*) 1.81.0
UEFI *-*-uefi nightly (uefi_std)
Unix Unix 1.81.0
WASI *-wasi* 1.81.0
WebAssembly wasm32-*-unknown 1.81.0
Windows *-*-windows-* 1.81.0
Xous *-*-xous-* 1.81.0

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 = "~7.2"

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.

Extension points exported contracts — how you extend this code

Sealed (Interface)
(no doc) [7 implementers]
src/lib.rs
Pattern (Interface)
(no doc) [3 implementers]
src/pattern.rs
TransmuteBox (Interface)
(no doc) [2 implementers]
src/raw_str.rs
OsStrBytesExt (Interface)
(no doc) [1 implementers]
src/ext.rs
OsStrBytes (Interface)
A platform agnostic variant of [`OsStrExt`]. For more information, see [the module-level documentation][module]. [modu [2 …
src/lib.rs
Encoded (Interface)
(no doc) [2 implementers]
src/pattern.rs
RawOsStrCow (Interface)
(no doc) [1 implementers]
src/raw_str.rs
SliceIndex (Interface)
(no doc)
src/ext.rs

Core symbols most depended-on inside this repo

as_os_str
called by 26
src/raw_str.rs
as_encoded_bytes
called by 11
src/raw_str.rs
os_str
called by 9
src/ext.rs
test
called by 7
tests/raw_index.rs
index
called by 6
src/ext.rs
is_continuation
called by 5
src/util.rs
to_bytes
called by 5
src/windows/convert/mod.rs
next
called by 5
src/windows/convert/wtf8/convert.rs

Shape

Method 101
Function 59
Class 12
Interface 9
Enum 1

Languages

Rust100%

Modules by API surface

src/raw_str.rs53 symbols
src/ext.rs28 symbols
src/windows/convert/mod.rs9 symbols
src/lib.rs9 symbols
src/iter/item.rs9 symbols
src/windows/convert/wtf8/convert.rs8 symbols
tests/integration.rs6 symbols
src/windows/convert_io.rs6 symbols
src/windows/convert/wtf8/code_points.rs6 symbols
src/wasm/convert.rs6 symbols
src/pattern.rs6 symbols
src/common/convert_io.rs6 symbols

For agents

$ claude mcp add os_str_bytes \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact