hexser 0.6.0

Zero-boilerplate hexagonal architecture with graph-based introspection
Documentation
//! Tutorial 01: Hello Hex
//!
//! This is the complete code from Tutorial 01 that demonstrates
//! the basics of hex with automatic component registration.
//!
//! Run with: cargo run --example tutorial_01_hello

use hexser::prelude::*;

#[derive(HexDomain, HexEntity)]
struct TodoMore {
  id: String,
  title: String,
  done: bool,
}

fn main() {
  println!("🎓 Tutorial 01: Hello Hex\n");
  println!("{}", "=".repeat(50));

  let graph = HexGraph::current();

  println!("\n✅ Component registered automatically!");
  graph.pretty_print();

  println!("\n📊 What we created:");
  println!("  - 1 Domain entity (Todo)");
  println!("  - Automatic registration via derive macro");
  println!("  - Zero boilerplate!");

  println!("\n🎉 You just created your first hexagonal architecture!");
  println!("{}", "=".repeat(50));

  println!("\nNext: Try Tutorial 02 - Adding Ports");
  println!("  cargo run --example tutorial_02_ports");
}