File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,17 @@ and is implemented for a variety of sources already,
1313including other byte handling crates ` Bytes ` , mmap-ed files,
1414` String ` s and ` Zerocopy ` types.
1515
16+ ## Features
17+
18+ By default the crate enables the ` mmap ` and ` zerocopy ` features.
19+ Other optional features provide additional integrations:
20+
21+ - ` bytes ` &ndash ; support for the [ ` bytes ` ] ( https://crates.io/crates/bytes ) crate so ` bytes::Bytes ` can act as a ` ByteSource ` .
22+ - ` ownedbytes ` &ndash ; adds compatibility with [ ` ownedbytes ` ] ( https://crates.io/crates/ownedbytes ) and implements its ` StableDeref ` trait.
23+ - ` mmap ` &ndash ; enables memory-mapped file handling via the ` memmap2 ` crate.
24+ - ` zerocopy ` &ndash ; exposes the [ ` view ` ] ( src/view.rs ) module for typed zero-copy access and allows using ` zerocopy ` types as sources.
25+ - ` pyo3 ` &ndash ; builds the [ ` pybytes ` ] ( src/pybytes.rs ) module to provide Python bindings for ` Bytes ` .
26+
1627## Comparison
1728
1829| Crate | Active | Extensible | mmap support | Zerocopy Integration | Pyo3 Integration | kani verified |
You can’t perform that action at this time.
0 commit comments