interplane.Get Omega
Read in your language

aien-edge

aien-dev/aien-edge

Brought by drakestapleton

branch main Branches Tags History

aien-edge / AGENTS.md

66 lines · 5390 bytes Raw Blame History Source

aien-edge (native Rust edge server for AIEN static sites)

A small Rust web server (hyper + rustls) that serves prebuilt static sites from memory, with precompressed assets, virtual hosts and automatic Let's Encrypt TLS. It was built to run on a Raspberry Pi at the network edge. It is not in use today: the AIEN sites are served by GitHub Pages. This is hosting infrastructure, not part of the AIEN core. Shared rules: read https://www.aienos.com/agents/RULES.md first. This file adds what is specific to this repository; where the two differ, this file wins here.

Scope

Installation

git clone https://github.com/aien-dev/aien-edge.git
cd aien-edge
cargo build --release   # writes target/release/aien-edge

Needs Rust 1.88 or newer: rust-version = "1.88" in Cargo.toml, and rust-toolchain.toml pins 1.88.0 so rustup selects it here. 1.88 is the oldest release that builds the locked dependencies (time 0.3.55 needs 1.88; several crates use edition 2024). When a dependency update raises that floor, raise rust-version, the rust-toolchain.toml channel and this line together. Cargo.lock is committed. aarch64 builds run on a 64-bit Raspberry Pi OS.

Configuration

Usage

cargo test                              # 9 unit tests in src/site.rs and src/handler.rs
cargo clippy --release -- -D warnings
cargo build --release
target/release/aien-edge <config.toml>  # serves until stopped; SIGHUP reloads every site from disk

Conventions

Safety and approvals

Further reading