Cargo Features

[dependencies]
cheap-clone = { version = "0.1.8", default-features = false, features = ["std", "alloc", "among", "bytes", "either", "smol_str", "triomphe", "faststr"] }
default = std

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

std default = alloc

Enables optional either, optional faststr, and optional smol_str, std of optional triomphe

alloc std

Features from optional dependencies

among implicit feature
bytes implicit feature

Enables bytes

bytes:

Types and traits for working with bytes

either implicit feature

Enables either

either:

The enum Either with variants Left and Right is a general purpose sum type with two cases

smol_str implicit feature

Enables smol_str

smol_str:

small-string optimized string type with O(1) clone

triomphe implicit feature
faststr implicit feature

Enables faststr

faststr:

Faststr is a string library that reduces the cost of clone