Expand description
§Starting A New Project
To start a new project, you can use cargo-generate:
cargo install loco-cli
❯ loco new
✔ ❯ App name? · myapp
? ❯ What would you like to build? ›
❯ lightweight-service (minimal, only controllers and views)
Rest API (with DB and user auth)
Saas app (with DB and user auth)
§Available Features
To avoid compiling unused dependencies, loco gates certain features.
Feature | Default | Description |
---|---|---|
auth_jwt | true | Enable user authentication. |
cli | true | Expose Cli commands. |
`testing | false | Test Utilities Module. |
with-db | true | with-db. |
channels | false | Enable socket channels. |
Re-exports§
Modules§
- This module contains the core components and traits for building a web server application.
- Application Bootstrapping and Logic
- command-line interface for running various tasks and commands related to the application. It allows developers to interact with the application via the command line.
- Configuration Management
- Manage web server routing
- Database Operations
- Defines the application environment. By given the environment you can also load the application configuration
- Application Error Handling
- This module defines the email-related functionality, including the
Mailer
trait and its implementation,Email
structure, and theMailerWorker
for asynchronous email processing. - Model Error Handling
- Database Table Schema Helpers
- Task Management Module
- This module provides utility functions for handling validation errors for structs. It useful if you want to validate model before inset to Database.
Type Aliases§
- Application results options list