Cargo Features

[dependencies]
ruma-identifiers = { version = "0.22.1", default-features = false, features = ["compat", "rand", "serde", "either"] }
default = serde

The serde feature is set by default whenever ruma-identifiers is added without default-features = false somewhere in the dependency tree.

compat

Enables compat of ruma-identifiers-validation ^0.7.0

rand = rand_crate, uuid
serde default = ruma-serde, serde1

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.

either implicit feature

Enables either

either:

The enum Either with variants Left and Right is a general purpose sum type with two cases

rand_crate rand?

Enables rand

ruma-serde serde
serde1 serde

Enables serde

Renamed so we can have a serde feature.

uuid rand?

Enables uuid ^0.8.2