Skip to main content

Crate server

Crate server 

Source

Modules§

account
artifact_mgmt
auth_keys
Per-user JWT signing keypairs.
bootstrap
One-time global seeding of the admin database.
command
commodity
config
db
error
provision
Per-user database provisioning.
script
split
tag
user

Functions§

boot
Runs the one-time-per-DB boot sequence: install sqlx drivers, migrate the admin DB, run the idempotent global seed (seed_complete-guarded), and load config. Every startup path MUST call this before reading config — the web binary calls it directly; the CLI/server path goes through start. Safe to call on an already-booted DB (migrate + seed are idempotent).
start