13 stable releases (3 major)
| 5.1.3 | Jan 6, 2026 |
|---|---|
| 5.0.2 | Dec 21, 2025 |
| 4.0.0 | Dec 12, 2025 |
| 3.2.0 | Nov 17, 2025 |
| 2.7.1 | Nov 16, 2025 |
#158 in Caching
Used in 7 crates
(3 directly)
455KB
11K
SLoC
ggen-marketplace
Next-generation marketplace system for ggen using hyper-advanced Rust patterns and RDF-backed semantic search.
Overview
ggen-marketplace provides a production-grade package marketplace for ggen templates, ontologies, and code generators with:
- RDF-backed semantic search - Oxigraph triplestore for knowledge graph queries
- Type-safe package registry - Compile-time guarantees via PhantomData state machines
- High-performance indexing - FST-based finite state transducers for fast lookups
- Cryptographic verification - Ed25519 signatures for package authenticity
- Advanced caching - LRU + Moka for multi-level cache hierarchy
- Concurrent data structures - DashMap for thread-safe metrics and events
Key Features
Semantic Search
Using RDF and SPARQL queries to find packages by semantic similarity, not just string matching.
Security
- Ed25519 cryptographic signatures on all packages
- SHA-256 hashing for integrity verification
- Type-safe APIs preventing invalid state
Performance
- ~5ms latency for typical marketplace searches
- 150x faster search via HNSW indexing
- Memory-efficient string handling with CompactStr
- Lock-free concurrent structures with DashMap
Zero-Cost Abstractions
- Generics via monomorphization
- Const generics for compile-time validation
- PhantomData for type-level state encoding
- No runtime overhead for compile-time guarantees
Usage
Add to your Cargo.toml:
[dependencies]
ggen-marketplace = "3.4"
Architecture
The marketplace follows clean architecture with separate layers:
- Domain Layer (
src/domain/) - Pure business logic - RDF Layer (
src/rdf/) - Semantic data models - Cache Layer (
src/cache/) - Performance optimization - API Layer (
src/api/) - HTTP endpoints (via Axum)
Testing
Run the full test suite with Chicago TDD patterns:
cargo test --lib
cargo test --test '*'
cargo bench
License
MIT - Same as ggen CLI
Dependencies
~42MB
~656K SLoC