Cargo Features

[dependencies]
crosstrait = { version = "0.1.1", default-features = false, features = ["std", "alloc", "used_linker"] }
default = std

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

std default = alloc

Enables std of once_cell

once_cell:

Enables once_cell::sync module.

Affects crosstrait::Caster.rc, crosstrait::Caster.arc, crosstrait::Registry

alloc std

Affects crosstrait::Caster.box_

used_linker

Enables used_linker of linkme