Cargo Features

[dependencies]
trait_cast_rs = { version = "0.2.4", default-features = false, features = ["alloc", "downcast_unchecked", "min_specialization", "const_sort"] }
default = alloc

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

alloc default

Affects trait_cast::TraitcastableAnyInfraExt

downcast_unchecked

Affects trait_cast::TraitcastableAnyInfra.downcast_ref_unchecked, trait_cast::TraitcastableAnyInfra.downcast_mut_unchecked, trait_cast::TraitcastableAnyInfraExt.downcast_unchecked

min_specialization
const_sort

Enables const_sort_rs

Affects trait_cast::cmp_type_id