Config New Module (Rust)
Overview
Scaffold determinístico de um Bounded Context seguindo rust-namespace-layout.md:
modules/customers/
domain/entity.rs → Customer (not domain/customer/customer.rs)
domain/ports/repository.rs
application/create_customer.rs
infrastructure/persistence/repository_sqlx.rs
interfaces/http/
Workflow
- Confirmar workspace bootstrap (
config-project-rs). - Executar script com nome do BC (plural, kebab-case ou snake_case).
- Opcional:
--entity=Customerse o singular não for inferível. - Registrar rotas em
api::router(mergemodules::<bc>::interfaces::http::routes()). cargo check -p api.
Commands
node config-new-module-rs/scripts/create-module-rs.mjs customers --entity=Customer
Resources
agents/openai.yamlscripts/create-module-rs.mjsassets/module-template-rs/../config-shared-core-rs/references/rust-namespace-layout.md
Global Standards
- Consultar
../skills-standards.mdseção Rust Stack Standards.