Skip to main content

Crate server

Crate server 

Source

Modules§

account
account_state
A stored account as the account-edit form holds it: its parent and every tag, the name tag among them, with the revision digesting them.
artifact_mgmt
auth_keys
Per-user JWT signing keypairs.
bootstrap
One-time global seeding of the admin database.
command
commodity
commodity_state
A stored commodity as the commodity-edit form holds it: every tag, the symbol and name tags among them, with the revision digesting them.
config
db
error
exhausted_pool
A pool whose only connection is held, so the next acquire can only time out.
fleet
Bringing every tenant database to the current schema.
log_capture
Capturing what the tracing subscriber writes, for tests asserting log lines.
logical
Pure, DB-free logical→physical transaction lowering.
lossless
The lossless fixture of the client form tests: one transaction holding everything an edit could lose, and a snapshot of what is stored for it.
preflight
Inventories of the form preflight.
provision
Per-user database provisioning.
script
script_run
Running one stored script over every transaction of an account.
script_state
A stored script as the script-edit form holds it, with the revision digesting its editable fields.
script_tags
Writing a script’s tags back onto a stored transaction.
snapshot
A stored transaction read as one consistent snapshot.
split
Reading the splits of a transaction and their tags.
ssh_keys
SSH public-key parsing and fingerprinting helpers.
tag
tag_state
A stored tag as the tag-edit form holds it, with the revision digesting its editable fields.
telemetry
Process-wide logging setup shared by every binary.
template_state
A stored template as the template-edit form holds it, with the revision digesting its editable fields.
timezone
The per-user timezone config: the zone a user’s report dates are read in.
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