Installation

Prerequisites, .env, CLI commands, quick start.

● ● ●
[workspace]
members = ["myapp"]
resolver = "3"

[workspace.package]
version = "0.1.0"
edition = "2024"
rust-version = "1.94"

[workspace.dependencies]
# pick exactly one engine: sqlite, postgres, mysql or mariadb
runique = { version = "3.0.0", features = ["postgres"] }
tokio   = { version = "1", features = ["full"] }
serde   = { version = "1", features = ["derive"] }
SECRET_KEY=a_long_random_secret_key
DATABASE_URL=postgres://user:password@localhost:5432/my_database
DEBUG=true
# Install the CLI
cargo install runique

# Generate the project
runique new my-project

# Start the admin daemon (regenerates src/admins/)
runique start

# Migrations
runique makemigrations
runique migration up

# Roll back / list: through SeaORM
sea-orm-cli migrate down -n 1
sea-orm-cli migrate status