Cargo Features

[dependencies]
relayrl_types = { version = "0.6.0", default-features = false, features = ["ndarray-backend", "tch-backend", "inference-models", "tch-model", "onnx-model", "encryption", "compression", "integrity", "quantization", "metadata", "zerocopy", "codec-basic", "codec-secure", "codec-full"] }
default = ndarray-backend, onnx-model

These default features are set whenever relayrl_types is added without default-features = false somewhere in the dependency tree.

ndarray-backend default = burn-ndarray, half

Affects data::action, data::tensor, data::trajectory, data::records, tensor::SupportedTensorBackend, tensor::DeviceType, tensor::BackendMatcher, tensor::FloatBurnTensor, tensor::IntBurnTensor, tensor::BoolBurnTensor, relayrl_types::prelude.action, relayrl_types::prelude.tensor, relayrl_types::prelude.trajectory, relayrl_types::prelude.records, relayrl_types::model, relayrl_types::prelude.model, model::ModelModule

tch-backend = burn-tch, half

Affects data::action, data::tensor, data::trajectory, data::records, tensor::SupportedTensorBackend, tensor::DeviceType, tensor::BackendMatcher, tensor::FloatBurnTensor, tensor::IntBurnTensor, tensor::BoolBurnTensor, relayrl_types::prelude.action, relayrl_types::prelude.tensor, relayrl_types::prelude.trajectory, relayrl_types::prelude.records, relayrl_types::model, relayrl_types::prelude.model, model::ModelModule

inference-models = onnx-model, tch-model
tch-model inference-models? = tch, tempfile, tokio

Affects relayrl_types::model, relayrl_types::prelude.model, model::ModelModule

onnx-model default inference-models? = ndarray, ort, tempfile, tokio

Affects relayrl_types::model, relayrl_types::prelude.model, model::ModelModule

encryption codec-secure? = bincode, chacha20poly1305

Affects action::CodecConfig.encryption_key, action::EncodedAction.encrypted, data::utilities.encrypt, trajectory::EncodedTrajectory.encrypted, encrypt::generate_key

compression codec-basic? = bincode, lz4_flex, zstd

Affects action::CodecConfig.compression, action::EncodedAction.compressed, data::utilities.compress, trajectory::EncodedTrajectory.compressed

integrity codec-basic? = blake3

Affects action::CodecConfig.verify_integrity, action::EncodedAction.checksum, data::utilities.integrity, data::utilities.chunking, trajectory::EncodedTrajectory.checksum, chunking::TensorChunk.checksum, integrity::compute_checksum, integrity::compute_keyed_hash

quantization codec-full? = half

Affects data::utilities.quantize

metadata codec-full? = bincode

Affects action::CodecConfig.include_metadata, action::EncodedAction.metadata, data::utilities.metadata, trajectory::EncodedTrajectory.metadata

zerocopy codec-basic? = bytes
codec-basic codec-secure? = compression, integrity, zerocopy
codec-secure codec-full? = codec-basic, encryption
codec-full = codec-secure, metadata, quantization

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.

burn-ndarray ndarray-backend
burn-tch tch-backend?
tch tch-model?

Enables tch =0.22.0

ort onnx-model

Enables ort =2.0.0-rc.11

tokio onnx-model tch-model?
tempfile onnx-model tch-model?
ndarray onnx-model
blake3 integrity?
bytes zerocopy?
chacha20poly1305 encryption?
lz4_flex compression?

Enables lz4_flex ^0.12.0

zstd compression?
bincode compression? encryption? metadata?

Enables bincode ^2.0.1

half ndarray-backend quantization? tch-backend?