rsfulmen
Curated Libraries for Scale
Rust Fulmen helper library for enterprise-scale development.
Lifecycle Phase: alpha | Version: 0.1.0
📖 Read the complete rsfulmen overview for comprehensive documentation including module catalog and roadmap.
Overview
rsfulmen provides consistent, high-quality implementations of common functionality across the FulmenHQ ecosystem. Built on Crucible's schemas and standards, it ensures uniformity and reliability with idiomatic Rust APIs.
Alpha Status: Early adopters; API may evolve before 1.0. See Repository Lifecycle Standard.
Crucible Integration
What is Crucible?
Crucible is the FulmenHQ single source of truth (SSOT) for schemas, standards, and configuration templates. It ensures consistent APIs, documentation structures, and behavioral contracts across all language foundations (gofulmen, pyfulmen, tsfulmen, rsfulmen).
Why rsfulmen?
Rather than copying Crucible assets into every Rust project, rsfulmen provides idiomatic access through type-safe APIs. This keeps your application lightweight, versioned correctly, and aligned with ecosystem-wide standards.
Where to Learn More:
- Crucible Repository — SSOT schemas, docs, and configs
- Fulmen Technical Manifesto — Philosophy and design principles
- gofulmen — Go reference implementation
Modules
Config (config)
Configuration path utilities following the Fulmen Config Path Standard.
- XDG Base Directory compliance (Linux, macOS, Windows)
- Application-specific config/data/cache directories
- Fulmen ecosystem directory helpers
- Legacy config path fallback support
use ;
// Get Fulmen ecosystem config directory
let fulmen_config = get_fulmen_config_dir;
// Linux: ~/.config/fulmen
// macOS: ~/Library/Application Support/Fulmen
// Windows: %APPDATA%\Fulmen
// Get app-specific directories
let app_config = get_app_config_dir;
let xdg = get_xdg_base_dirs;
println!;
Foundry (foundry)
Enterprise-grade foundation utilities providing consistent cross-language implementations from Crucible catalogs. All data is embedded at compile time — no network dependencies required.
Country Codes
ISO 3166-1 country code lookups with triple-index support.
use ;
let usa = lookup_by_alpha2.unwrap;
assert_eq!;
assert_eq!;
// Case-insensitive lookups
let japan = lookup_by_alpha3.unwrap;
assert_eq!;
// Numeric codes (auto zero-padded)
let germany = lookup_by_numeric.unwrap;
assert_eq!;
HTTP Status Codes
HTTP status code registry with grouping helpers.
use ;
let ok = lookup_status.unwrap;
assert_eq!;
assert_eq!;
assert!;
assert!;
let reason = get_reason.unwrap;
assert_eq!;
Exit Codes
Standardized exit codes with categories and signal handling.
use ;
// Use standard constants
exit;
// Look up exit code metadata
let code = lookup_exit_code.unwrap;
assert_eq!;
assert_eq!;
// Signal detection (128+)
assert!; // SIGINT
let signal = get_signal_from_exit.unwrap;
assert_eq!; // SIGINT = 2
Error Handling (error_handling)
Canonical error envelope that extends Pathfinder's schema with optional telemetry
fields (severity, correlation_id, exit_code, etc.). Payloads are JSON
serializable and can be validated offline when schema-validation is enabled.
use ;
let base = new;
let err = wrap
.unwrap;
println!;
Telemetry Metrics (telemetry_metrics)
Taxonomy-backed counters, gauges, and histograms exported as schema-valid JSON events.
use Metrics;
let metrics = new;
metrics.counter.unwrap.inc.unwrap;
let events = metrics.flush.unwrap;
assert!;
Installation
Add to your Cargo.toml:
[]
= "0.1"
Feature Flags
rsfulmen supports minimal installs for lightweight consumers (e.g. sysprims).
[]
# All features (default)
= "0.1"
# Foundry core only (signals, exit-codes, countries, http-statuses)
= { = "0.1", = false, = ["foundry-core"] }
# Add MIME types (adds serde_json)
= { = "0.1", = false, = ["foundry-mime-types"] }
# Add patterns (adds regex/glob)
= { = "0.1", = false, = ["foundry-patterns"] }
# Similarity (standalone module; heavy)
= { = "0.1", = false, = ["similarity"] }
# Schema validation (heavy)
= { = "0.1", = false, = ["schema-validation"] }
Feature Matrix
| Feature | Includes | Notes |
|---|---|---|
foundry-core |
signals, exit-codes, countries, http-statuses | Minimal catalog install |
foundry-mime-types |
mime-types | Adds serde_json |
foundry-patterns |
patterns | Adds regex + glob |
similarity |
rsfulmen::similarity (+ foundry re-export) |
Heavy deps (strsim/unicode) |
schema-validation |
rsfulmen::schema_validation |
Heavy deps (jsonschema/url) |
error-handling |
rsfulmen::error_handling |
Canonical error envelope (adds serde_json) |
telemetry-metrics |
rsfulmen::telemetry_metrics |
Metrics export (schema-valid JSON events) |
crucible |
rsfulmen::crucible |
Embedded SSOT access |
docscribe |
rsfulmen::docscribe |
Doc access + frontmatter parsing |
Development
Prerequisites
- Rust 1.83+
- goneat for SSOT sync (installed via
make bootstrap)
Quick Start
# Install development tools
# Sync Crucible assets
# Run tests
# Run all quality checks
Makefile Targets
| Target | Description |
|---|---|
bootstrap |
Install dependencies and external tools |
sync |
Sync assets from Crucible SSOT |
build |
Build library |
test |
Run all tests |
lint |
Run clippy with strict warnings |
fmt |
Format code with rustfmt |
check-all |
fmt-check + lint + test |
doc |
Generate rustdoc documentation |
version |
Print current version |
Crucible Sync
rsfulmen syncs schemas, documentation, and configuration from Crucible:
# Update to latest Crucible
# Check sync provenance
Synced assets are stored in:
config/crucible-rs/— Configuration files and foundry catalogsschemas/crucible-rs/— JSON schemasdocs/crucible-rs/— Documentation and standards
Ecosystem
rsfulmen is part of the Fulmen helper library family:
| Library | Language | Status |
|---|---|---|
| gofulmen | Go | Reference implementation |
| tsfulmen | TypeScript | Stable |
| pyfulmen | Python | Stable |
| rsfulmen | Rust | Experimental |
All libraries sync from Crucible and follow the Fulmen Helper Library Standard.
Contributing
Contributions are welcome! Please ensure:
- Code follows Rust idioms and conventions
- Tests are included for new functionality
- Documentation is updated
- Changes are consistent with Crucible standards
make check-allpasses before submitting
License
Licensed under the MIT License. See LICENSE file for details.
Changelog
See CHANGELOG.md for version history.