| Crates.io | systemprompt-template-provider |
| lib.rs | systemprompt-template-provider |
| version | 0.0.11 |
| created_at | 2026-01-21 17:32:39.287347+00 |
| updated_at | 2026-01-25 21:41:49.714465+00 |
| description | Template provider traits and abstractions for systemprompt.io |
| homepage | https://systemprompt.io |
| repository | https://github.com/systempromptio/systemprompt-core |
| max_upload_size | |
| id | 2059734 |
| size | 40,163 |
Template provider traits and abstractions for systemprompt.io.
Provides template loading abstractions and dynamic type aliases for template-related providers. Includes an embedded loader for compile-time templates and a filesystem loader for runtime template discovery. Re-exports provider contracts for template, component, and page data handling.
Part of the Shared layer in the systemprompt.io architecture.
Add to your Cargo.toml:
[dependencies]
systemprompt-template-provider = "0.0.1"
| Feature | Default | Description |
|---|---|---|
tokio |
No | Enables FileSystemLoader for async file-based template loading |
use systemprompt_template_provider::{
TemplateLoader, TemplateLoaderResult, EmbeddedLoader,
DynTemplateProvider, DynTemplateLoader,
};
use async_trait::async_trait;
let loader: DynTemplateLoader = std::sync::Arc::new(EmbeddedLoader::new());
| Type | Description |
|---|---|
TemplateLoader |
Trait for loading templates by name |
EmbeddedLoader |
Loader for compile-time embedded templates |
FileSystemLoader |
Async filesystem template loader (requires tokio feature) |
DynTemplateProvider |
Arc<dyn TemplateProvider> type alias |
DynTemplateLoader |
Arc<dyn TemplateLoader> type alias |
DynComponentRenderer |
Arc<dyn ComponentRenderer> type alias |
| Crate | Purpose |
|---|---|
systemprompt-provider-contracts |
Provider trait definitions |
| Crate | Purpose |
|---|---|
async-trait |
Async trait support |
tokio |
Async filesystem operations (optional) |
FSL-1.1-ALv2 - See LICENSE for details.