Skip to main content

Module generators

Module generators 

Source
Expand description

Shared helpers for auth generators — migration rendering, name inflection, and route/module injection.

Re-exports§

pub use field::Field;
pub use names::to_pascal;
pub use names::to_snake;
pub use names::to_table_name;
pub use controller::AuthControllerGenerator;
pub use install::AuthInstallGenerator;
pub use scaffold::AuthScaffoldGenerator;

Modules§

controller
doido generate auth:controller — controller with require_user guards.
field
Parsing of name:type[:modifier...] field specs for auth scaffolds.
install
doido generate auth:install — the devise:install + devise User analogue.
migration_support
Migration file rendering and registration — mirrors doido-generators helpers without depending on that crate.
names
Name inflection helpers — same conventions as doido-generators.
route_injector
Injects explicit auth routes understood by the routes! macro.
scaffold
doido generate auth:scaffold — auth install (if needed) + auth-aware scaffold.

Structs§

GeneratedFile
A file emitted by an auth generator.

Traits§

AuthGenerator
Auth generator contract — mirrors doido_generators::Generator without a crate dependency (avoids circular deps with doido-generators).
AuthGeneratorRegistry
Implemented by doido_generators::GeneratorRegistry to merge auth generators.

Functions§

register
Register all auth generators into reg.