Cargo Features

[dependencies]
spacetimedb = { version = "1.0.0-rc1", default-features = false, features = ["rand", "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

Enables getrandom and rand

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