Cargo Features

sentinel = { version = "0.5.4", default-features = false, features = ["alloc", "nightly", "memchr", "libc"] }
default = alloc, memchr

These default features are set whenever sentinel is added without default-features = false somewhere in the dependency tree.

alloc default

Adds support for the alloc crate.


Adds support for nightly features such as extern_types and allocator_api.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

memchr default

Enables memchr

Use the memchr crate to look for a null byte in C-like strings.

libc implicit feature

Enables libc

Use libc's strlen to look for null characters.