Forge module wrapping infrastructure-transcription — local speech-to-text engine selection (stub / whisper.cpp).
| Tier | application |
| Role | unclassified (baselined) |
| Path | crates/application/transcription |
| Edition | 2024 |
| Targets | application_transcription |
| Public items | 9 across 0 modules |
| Tests | 2 |
What it is for
application-transcription — wraps infrastructure-transcription.
Adds the Forge ModuleIdentity and an engine-selection seam (build_transcriber) so a consumer picks a LOCAL engine from config instead of hardcoding an impl. No schema of its own: the legal consumer persists the transcript into its own evidence tables (extracted_text + a custody event), so this wrapper owns no migration. See ADR 0019.
Capabilities
EngineConfig
application-transcription — wraps infrastructure-transcription.
| Item |
|---|
pub enum EngineConfig |
EngineConfig :: fn default() -> Self |
fn build_transcriber(cfg : & EngineConfig) -> Result <Arc <dyn Transcriber>, TranscriptionError> |
TranscriptionModule
application-transcription — wraps infrastructure-transcription.
| Item |
|---|
pub struct TranscriptionModule |
TranscriptionModule :: fn new() -> Self |
TranscriptionModule :: fn name(& self) -> & 'static str |
TranscriptionModule :: fn version(& self) -> & 'static str |
TranscriptionModule :: fn migrations(& self) -> Vec <MigrationSet> |
TranscriptionModule :: async fn migrate_pending(& self, _pool : & PgPool) -> std::result::Result <u32, MigrationError> |
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`
| Item | What it is |
|---|---|
pub enum EngineConfig | Which local engine backs the transcriber |
EngineConfig :: fn default() -> Self | — |
fn build_transcriber(cfg : & EngineConfig) -> Result <Arc <dyn Transcriber>, TranscriptionError> | Build a local transcriber from config |
pub struct TranscriptionModule | Forge module identity for transcription (no migrations — schema-less wrapper). |
TranscriptionModule :: fn new() -> Self | Create the module. |
TranscriptionModule :: fn name(& self) -> & 'static str | — |
TranscriptionModule :: fn version(& self) -> & 'static str | — |
TranscriptionModule :: fn migrations(& self) -> Vec <MigrationSet> | — |
TranscriptionModule :: async fn migrate_pending(& self, _pool : & PgPool) -> std::result::Result <u32, MigrationError> | — |
No pub use re-exports: every item above is declared in this crate.
Boundary
Reaches into infrastructure.
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) |
| Location | crates/application/transcription |
| Vocabulary in force (lexicon) | current |
Tier flow. Which tiers this crate's own edges cross.
flowchart LR n_application["application"] --> n_infrastructure["infrastructure"]
Dependencies
Runtime, in this workspace.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `application-core` | application | no | always |
| `infrastructure-transcription` | infrastructure | no | always |
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
async-trait | ^0.1 | — | no | always |
sqlx | ^0.8 | runtime-tokio, postgres, chrono, uuid, json | no | always |
Development, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
tokio | ^1 | full, macros, rt-multi-thread | no | always |
Build. None.
Depended on by. Nothing in this workspace.
Signal flow — what reaches this crate, and what it reaches.
flowchart LR SELF["application-transcription"] SELF -->|runtime| n_application_core["application-core"] SELF -->|runtime| n_infrastructure_transcription["infrastructure-transcription"] classDef self fill:#1f883d,stroke:#1f883d,color:#fff; class SELF self;
Feature flags
| Feature | Enables | On by default |
|---|---|---|
cuda | whisper-rs, infrastructure-transcription/cuda | no |
default | — | yes |
faster-whisper | infrastructure-transcription/faster-whisper | no |
whisper-rs | infrastructure-transcription/whisper-rs | no |
flowchart LR n_cuda["cuda"] --> n_whisper_rs["whisper-rs"] n_cuda["cuda"] --> n_infrastructure_transcription_cuda["infrastructure-transcription/cuda"] n_default["default"] n_faster_whisper["faster-whisper"] --> n_infrastructure_transcription_faster_whisper["infrastructure-transcription/faster-whisper"] n_whisper_rs["whisper-rs"] --> n_infrastructure_transcription_whisper_rs["infrastructure-transcription/whisper-rs"]
Targets
| Kind | Name | Source |
|---|---|---|
| lib | application_transcription | `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
| Property | Evidence |
|---|---|
| async public surface | yes |
| async runtime | none detected |
| database access | yes |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | yes |
No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.
Configuration
| Variable | Read in |
|---|---|
CARGO_PKG_VERSION | src/lib.rs |
Related capabilities
No workspace crate depends on this one.
Verification
| Kind | Count |
|---|---|
| Unit tests | 2 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
Evidence by module. How often each public module is named by something executable.
| Module | Tests | Examples | Consumers |
|---|---|---|---|
crate root | 3 | 0 | 0 |
What the tests establish, by name:
factory_builds_stub_and_transcribes—src/lib.rsmodule_identity—src/lib.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 4 | 9 |
Public modules with a //! block | 0 | 0 |
pie showData
title Public items with rustdoc
"Documented" : 4
"No rustdoc detected" : 5
Metrics
| Metric | Value |
|---|---|
| Rust source files | 1 |
| Source lines | 115 |
| Code lines | 80 |
| Public API items | 9 |
| Public modules | 0 |
| Tests | 2 |
| Examples | 0 |
| Cargo features | 4 |
| Direct runtime dependencies | 4 |
| Workspace reverse dependencies | 0 |
pie showData
title Public API by kind
"enum" : 1
"function" : 1
"method" : 6
"struct" : 1
pie showData
title Rust source composition
"Code" : 80
"Blank or comment" : 35
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.