| Crates.io | cadi-core |
| lib.rs | cadi-core |
| version | 2.0.0 |
| created_at | 2026-01-11 23:19:21.72778+00 |
| updated_at | 2026-01-12 06:21:55.825075+00 |
| description | CADI core types and utilities for content-addressed development |
| homepage | https://conflictingtheories.github.io/cadi |
| repository | https://github.com/ConflictingTheories/cadi |
| max_upload_size | |
| id | 2036699 |
| size | 393,814 |
Core types and utilities for the CADI (Content-Addressed Development Interface) system.
CADI is a universal build and distribution system that treats all artifacts as content-addressed chunks. It enables:
This crate provides the foundational types and utilities used throughout the CADI ecosystem:
Add this to your Cargo.toml:
[dependencies]
cadi-core = "1.0"
use cadi_core::{Chunk, ChunkMetadata};
use std::collections::HashMap;
// Create chunk metadata
let metadata = ChunkMetadata {
title: Some("My Code Chunk".to_string()),
description: Some("A reusable code component".to_string()),
keywords: vec!["rust".to_string(), "library".to_string()],
..Default::default()
};
// Create a chunk
let chunk = Chunk {
id: "abc123def456".to_string(),
content: "fn hello() { println!(\"Hello, World!\"); }".as_bytes().to_vec(),
metadata,
content_type: "application/rust".to_string(),
timestamp: chrono::Utc::now(),
..Default::default()
};
Full API documentation available at docs.rs/cadi-core
MIT License - See LICENSE file in the repository