| Crates.io | amalgam-core |
| lib.rs | amalgam-core |
| version | 0.6.4 |
| created_at | 2025-08-28 10:46:54.479603+00 |
| updated_at | 2025-09-01 23:46:26.501435+00 |
| description | Core IR and type system for amalgam configuration generator |
| homepage | https://github.com/seryl/amalgam |
| repository | https://github.com/seryl/amalgam |
| max_upload_size | |
| id | 1813997 |
| size | 59,783 |
Core intermediate representation (IR) and type system for the amalgam configuration generator.
amalgam-core provides the foundational type system and intermediate representation used by all amalgam components to translate between different schema and configuration languages.
use amalgam_core::{Type, Schema, TypeSystem};
// Create a schema from various sources
let schema = Schema::new("MyConfig");
// Add types and constraints
schema.add_type(Type::String)
.with_constraint(Constraint::MinLength(1))
.with_constraint(Constraint::Pattern(r"^[a-z]+$"));