Cargo Features

[dependencies]
itertools = { version = "0.13.0", default-features = false, features = ["use_std", "use_alloc"] }
default = use_std

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

use_std default = use_alloc

Enables use_std of either

Affects itertools::Itertools.duplicates, itertools::Itertools.duplicates_by, itertools::Itertools.unique, itertools::Itertools.unique_by, itertools::Itertools.all_unique, itertools::Itertools.into_group_map, itertools::Itertools.into_group_map_by, itertools::Itertools.into_grouping_map, itertools::Itertools.into_grouping_map_by, itertools::Itertools.counts, itertools::Itertools.counts_by

use_alloc use_std

Affects free::join, free::sorted, free::sorted_unstable, itertools::Itertools.chunk_by, itertools::Itertools.group_by, itertools::Itertools.chunks, itertools::Itertools.tee, itertools::Itertools.kmerge, itertools::Itertools.kmerge_by, itertools::Itertools.multi_cartesian_product, itertools::Itertools.combinations, itertools::Itertools.combinations_with_replacement, itertools::Itertools.permutations, itertools::Itertools.powerset, itertools::Itertools.collect_vec, itertools::Itertools.join, itertools::Itertools.sorted_unstable, itertools::Itertools.sorted_unstable_by, itertools::Itertools.sorted_unstable_by_key