Benign rust 5,237 installs Download

systemprompt-templates 0.54.0

“Template registry, loading, and rendering for systemprompt.io config-as-code AI governance deployments. Handlebars-powered template engine…”

Release published within seven daysimports tokio::fs
SHA-256fa0d23b3f51b10ff41a0e88971b9fdb759092f4ba6ee72cd82d39a2387097dd7
MaleculeH₂(CmF)

Evidence

imports crate::TemplateError lifecycle.rs · lines 1–15
1:3… ! Template-registry loading: provider iteration and partial registration.
2//!
3//! Copyright (c) systemprompt.io — Business Source License 1.1.
4//! See <https://systemprompt.io> for licensing details.
5
6use std::path::Path;
7
8use systemprompt_template_provider::{PartialSource, TemplateDefinition};
9use tracing::{debug, info, warn};
10
11use super::TemplateRegistry;
12use crate::TemplateError;
13
14impl TemplateRegistry {
15 pub async fn initialize(&mut self) -> Result<(), TemplateError> { …
Reads a file into a Rust string lifecycle.rs · lines 133–138
133:31… (&self, path: &Path) -> Result<String, TemplateError> {
134 tokio::fs::read_to_string(path)
135 .await
136 .map_err(|e| TemplateError::LoadError {
137 name: path.display().to_string(),
138 …
References a public code-forge URL README.md · lines 5–6
5:31… mg.shields.io/badge/license-BSL--1.1-2b6cb0?style=flat-square)](https://github.com/systempromptio/systemprompt-core/blob/main/LICENSE)
6[![codecov](https://img.shields.io/codecov/c/github/systempromptio/systempro …
English function-word token "the" README.md · lines 8–12
8:9… Handlebars templates from registered providers and filesystem sources using configured priorities.
9
10**Layer**: Domain — business-logic modules that implement systemprompt.io features. Part of the [systemprompt-core](https://github.com/systempromptio/systemprompt-core) workspace.
11
12## Overvie …
imports tokio::fs core_provider.rs · lines 1–20
1:4… Filesystem-backed [`TemplateProvider`] used by the core engine and the
2//! `defaults/` template tree.
3//!
4//! Copyright (c) systemprompt.io — Business Source License 1.1.
5//! See <https://systemprompt.io> for licensing details.
6
7use std::collections::HashMap;
8use std::path::{Path, PathBuf};
9
10use serde::Deserialize;
11use systemprompt_template_provider::{TemplateDefinition, TemplateProvider, TemplateSource};
12use tokio::fs;
13use tracing::{debug, warn};
14
15use crate::error::TemplateResult;
16
17#[derive(Debug, Deserialize, Default)]
18struct TemplateManifest {
19 #[serde(default)]
20 te …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.