1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! # chip_as_code
//!
//! **Semantic Chips — Computation as Text DNA**
//!
//! This crate implements the [Chip as Code](https://logline.foundation) paradigm:
//! policy logic as compilable, auditable, and evolvable text files.
//!
//! ## Quick Start
//!
//! ```rust
//! use chip_as_code::{Chip, ChipHash};
//!
//! let chip = Chip::parse(r#"
//! CHIP v0
//! FEATURES n=2
//! GATES m=1
//! g0 = AND(f0,f1)
//! OUTPUT = g0
//! "#).unwrap();
//!
//! let result = chip.eval(&[true, true]).unwrap();
//! assert!(result);
//!
//! let hash: ChipHash = chip.hash();
//! println!("Chip identity: blake3:{}", hash);
//! ```
//!
//! ## Key Concepts
//!
//! - **Chip**: A boolean circuit defined as text DNA
//! - **Gate**: Atomic operations (AND, OR, NOT, THRESH)
//! - **GateBox**: Constitutional checkpoint (Commit/Ghost/Reject)
//! - **Evolution**: Discrete evolution to learn circuits from data
//!
//! ## Features
//!
//! - `default` — Core parsing, evaluation, and evolution
//! - `gpu` — GPU-accelerated evaluation via wgpu
//!
//! ## Part of the LogLine Ecosystem
//!
//! All crates by [danvoulez](https://crates.io/users/danvoulez):
//! - [`logline`](https://crates.io/crates/logline) — TDLN + JSON✯Atomic bundle
//! - [`ubl-ledger`](https://crates.io/crates/ubl-ledger) — Append-only ledger
//! - [`json_atomic`](https://crates.io/crates/json_atomic) — Canonical JSON + CIDs
pub use ;