Cargo Features

[dependencies]
timesource = { version = "0.1.3", default-features = false, features = ["all", "binary", "cbor", "json", "protobuf"] }
default = json

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

all = cbor, json, protobuf

Enable all supported encodings

binary cbor? protobuf? = data-encoding, lazy_static

Feature used by binary formats

Enables data-encoding of timesource-core

cbor all? = binary

Provide support for encoding and decoding using minicbor

Enables cbor of timesource-core

json default all?

Provide support for serde with JSON.

Enables json of timesource-core

protobuf all? = binary

Provide support for encoding and decoding using protobuf and prost

Enables protobuf of timesource-core

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.

data-encoding binary?
lazy_static binary?