Cargo Features

[dependencies]
hostaddr = { version = "0.1.1", default-features = false, features = ["std", "alloc", "smol_str_0_3", "smol_str", "triomphe_0_1", "triomphe", "bytes_1", "bytes", "tinyvec", "smallvec", "serde", "arbitrary", "cheap-clone", "quickcheck"] }
default = std

The std feature is set by default whenever hostaddr is added without default-features = false somewhere in the dependency tree.

std default

Enables optional bytes, optional cheap-clone, idna, memchr, percent-encoding, simdutf8, optional smol_str, thiserror, optional tinyvec, and optional triomphe

memchr:

The 'std' feature permits the memchr crate to use the standard library. This permits this crate to use runtime CPU feature detection to automatically accelerate searching via vector instructions. Without the standard library,
this automatic detection is not possible.

alloc

Enables alloc and compiled_data of idna, alloc of optional cheap-clone and alloc of memchr, percent-encoding, and optional tinyvec

memchr:

The 'alloc' feature enables some APIs that require allocation, such as 'Finder::into_owned'. Note that this feature does not enable runtime CPU
feature detection. That still requires 'std'.

smol_str_0_3 smol_str?

Enables smol_str, smol_str_0_3 of optional cheap-clone

smol_str = smol_str_0_3
triomphe_0_1 triomphe?

Enables triomphe, triomphe_0_1 of optional cheap-clone

triomphe = triomphe_0_1
bytes_1 bytes?

Enables bytes, bytes_1 of optional cheap-clone

bytes = bytes_1
tinyvec = tinyvec_1
smallvec = smallvec_1
serde

Enables serde, serde of optional bytes, serde of optional smallvec, optional smol_str, optional tinyvec, and optional triomphe

arbitrary

Enables arbitrary, arbitrary of optional smallvec, optional smol_str, and optional tinyvec

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.

cheap-clone implicit feature

Enables cheap-clone

cheap-clone:

A trait which indicates that such type can be cloned cheaply

tinyvec_1 tinyvec?

Enables tinyvec

smallvec_1 smallvec?

Enables smallvec

quickcheck implicit feature

Enables quickcheck

quickcheck:

Automatic property based testing with shrinking