forked from kent/consciousness
Move thalamus/ (poc-daemon) source files into src/thalamus/ as a module of the main crate. The daemon entry point becomes a library function thalamus::run() with a thin poc-daemon binary for backward compatibility. - Copy thalamus source into src/thalamus/, fix crate:: -> super:: - Copy daemon.capnp into schema/, add to build.rs - Re-export daemon_capnp at crate root (capnp codegen requires it) - Add thalamus dependencies (capnp-rpc, tokio-util, toml, rustls, etc.) - Keep thalamus/ subcrate for comparison Co-Authored-By: Proof of Concept <poc@bcachefs.org>
14 lines
460 B
Rust
14 lines
460 B
Rust
// poc-daemon — backward-compatible entry point
|
|
//
|
|
// Delegates to the thalamus module in the main crate.
|
|
// The daemon is now part of the consciousness binary but this
|
|
// entry point is kept for compatibility with existing scripts.
|
|
|
|
use clap::Parser;
|
|
use poc_memory::thalamus;
|
|
|
|
#[tokio::main(flavor = "current_thread")]
|
|
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
let cli = thalamus::Cli::parse();
|
|
thalamus::run(cli.command).await
|
|
}
|