_No description in Cargo.toml._
| Tier | infrastructure |
| Role | infrastructure |
| Path | crates/infrastructure/prompts |
| Edition | 2021 |
| Targets | infrastructure_prompts |
| Public items | 0 across 0 modules |
| Tests | 2 |
What it is for
Library crates for AI prompt template management.
Provides versioned, DB-stored prompt templates for AI enrichment pipelines. Templates are matched to items by category and resolved at runtime with fallback to hardcoded defaults.
# Features
postgres- Enable PostgreSQL storage
Capabilities
No public items.
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
No public items.
Re-exports. Exported here, defined elsewhere.
| Export | Defined in |
|---|---|
PromptTemplateVersion | version::PromptTemplateVersion |
{MatchRules,PromptKind,PromptTemplate} | template::{MatchRules,PromptKind,PromptTemplate} |
Boundary
Depends on no other workspace tier.
Shares tier infrastructure with 82 other crates: infrastructure-acquire, infrastructure-adapters-google-calendar, infrastructure-adapters-google-gmail, infrastructure-adapters-google-places, infrastructure-adapters-google-trends, infrastructure-adapters-shodan, infrastructure-adapters-yelp, infrastructure-agent, … (82 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) | infrastructure |
| Architectural role (taxonomy) | infrastructure |
| Location | crates/infrastructure/prompts |
| Vocabulary in force (lexicon) | current |
Dependencies
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
chrono | ^0.4 | serde | no | always |
serde | ^1 | derive | no | always |
serde_json | ^1 | — | no | always |
sqlx | ^0.8 | runtime-tokio, postgres, chrono, uuid, json | yes | always |
uuid | ^1 | v4, v7, serde, js | no | always |
Development. None.
Build. None.
Depended on by. 2 workspace crates.
Signal flow — what reaches this crate, and what it reaches.
flowchart LR n_application_prompts["application-prompts"] -->|uses| SELF n_domain_classify["domain-classify"] -->|uses| SELF SELF["infrastructure-prompts"] classDef self fill:#1f883d,stroke:#1f883d,color:#fff; class SELF self;
Feature flags
| Feature | Enables | On by default |
|---|---|---|
default | — | yes |
postgres | dep:sqlx | no |
flowchart LR n_default["default"] n_postgres["postgres"] --> n_dep_sqlx["dep:sqlx"]
Targets
| Kind | Name | Source |
|---|---|---|
| lib | infrastructure_prompts | `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 | none detected |
| async runtime | none detected |
| database access | yes |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | none detected |
No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.
Configuration
No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.
Related capabilities
2 workspace crates depend on this one: application-prompts, domain-classify.
Verification
| Kind | Count |
|---|---|
| Unit tests | 2 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
What the tests establish, by name:
test_match_rules_case_insensitive—src/template.rstest_prompt_kind_roundtrip—src/template.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 0 | 0 |
Public modules with a //! block | 0 | 0 |
Metrics
| Metric | Value |
|---|---|
| Rust source files | 3 |
| Source lines | 157 |
| Code lines | 112 |
| Public API items | 0 |
| Public modules | 0 |
| Tests | 2 |
| Examples | 0 |
| Cargo features | 2 |
| Direct runtime dependencies | 5 |
| Workspace reverse dependencies | 2 |
pie showData
title Rust source composition
"Code" : 112
"Blank or comment" : 45
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.