Cargo Features

[dependencies]
spacetimedb = { version = "1.1.1", default-features = false, features = ["rand", "rand08", "unstable"] }
default = rand

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

rand default = rand08
rand08 rand

Enables getrandom ^0.2 and rand ^0.8

getrandom:

we depend on getrandom and enable the custom feature, so that if someone tries to use rand's ThreadRng, it will fail to link because no one defined __getrandom_custom

unstable

Enables unstable of spacetimedb-bindings-sys

Affects rt::volatile_nonatomic_schedule_immediate