Cargo Features

[dependencies]
spacepackets = { version = "0.11.1", default-features = false, features = ["std", "alloc", "serde", "chrono", "timelib", "defmt"] }
default = std

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

std default = alloc, thiserror

Enables clock and std of chrono

Affects time::std_mod, time::seconds_since_epoch, time::ms_of_day_using_sysclock

alloc std

Enables alloc of chrono and postcard

Affects metadata::build_metadata_opts_from_vec, pdu::WritablePduPacket.to_vec, tlv::WritableTlv.to_vec, ecss::WritablePusPacket.to_vec, cds::DynCdsTimeProvider, cds::get_dyn_time_provider_from_bytes, time::TimeWriter.to_vec, util::UnsignedEnum.to_vec, ascii::alloc_mod_chrono

serde

Enables serde, serde of chrono

chrono alloc? serde? std

Enables chrono

Affects time::CcsdsTimeProvider.chrono_date_time, ascii::alloc_mod_chrono

timelib

Enables time

Affects time::CcsdsTimeProvider.timelib_date_time

defmt

Enables defmt

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.

thiserror std