application capa

application-cameras

Forge module wrapping operations-camera-registry (camera plane mount point).

Forge module wrapping operations-camera-registry (camera plane mount point).

Tierapplication
Roleunclassified (baselined)
Pathcrates/application/cameras
Edition2024
Targetsapplication_cameras
Public items7 across 0 modules
Tests3

What it is for

application-cameras — the camera plane's module mount point.

Wraps operations_camera_registry so a application-engine host mounts the camera plane the same way it mounts every other domain module, instead of hand-calling ensure_schema and hand-seeding permission codes.

Migrations are delegated, never enumerated. migrate_pending calls operations_camera_registry::ensure_schema, which owns the migration set. This is the BUG-0001 lesson applied at the module layer: a host (or a module shim) that lists migration files by hand goes stale the moment a migration is added, and the failure is silent until something downstream 403s. The crate that owns the schema is the only thing that should know how many files there are.

migrate_pending: ModuleIdentity::migrate_pending

Capabilities

CamerasModule

application-cameras — the camera plane's module mount point.

Item
pub struct CamerasModule
CamerasModule :: fn new() -> Self
CamerasModule :: fn name(& self) -> & 'static str
CamerasModule :: fn version(& self) -> & 'static str
CamerasModule :: fn migrations(& self) -> Vec <MigrationSet>
CamerasModule :: async fn migrate_pending(& self, pool : & PgPool) -> Result <u32, MigrationError>
CamerasModule :: fn permission_codes(& self) -> Vec <String>

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
pub struct CamerasModuleThe camera-plane module: registry schema + camera RBAC permission codes.
CamerasModule :: fn new() -> Self
CamerasModule :: fn name(& self) -> & 'static str
CamerasModule :: fn version(& self) -> & 'static str
CamerasModule :: fn migrations(& self) -> Vec <MigrationSet>Descriptive only — the engine executes Self::migrate_pending
CamerasModule :: async fn migrate_pending(& self, pool : & PgPool) -> Result <u32, MigrationError>
CamerasModule :: fn permission_codes(& self) -> Vec <String>The camera RBAC ladder from ADR-0004 D3

No pub use re-exports: every item above is declared in this crate.

Boundary

Reaches into operations.

Shares tier application with 120 other crates: application-agreements, application-ai, application-analytics, application-approvals, application-assessments, application-audit-log, application-auth, application-billing, … (120 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)application
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/application/cameras
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_application["application"] --> n_operations["operations"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`application-core`applicationnoalways
`operations-camera-registry`operationsnoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
async-trait^0.1noalways
sqlx^0.8runtime-tokio, postgres, chrono, uuid, jsonnoalways

Development. None.

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["application-cameras"]
  SELF -->|runtime| n_application_core["application-core"]
  SELF -->|runtime| n_operations_camera_registry["operations-camera-registry"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
libapplication_cameras`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfaceyes
async runtimenone detected
database accessyes
network I/Onone detected
unsafe codenone detected
environment variablesyes

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

VariableRead in
CARGO_PKG_VERSIONsrc/lib.rs

No workspace crate depends on this one.

Verification

KindCount
Unit tests3
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root100

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc37
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 3
    "No rustdoc detected" : 4

Metrics

MetricValue
Rust source files1
Source lines113
Code lines70
Public API items7
Public modules0
Tests3
Examples0
Cargo features0
Direct runtime dependencies4
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "method" : 6
    "struct" : 1
pie showData
    title Rust source composition
    "Code" : 70
    "Blank or comment" : 43

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las application · Manual