Thanks to visit codestin.com
Credit goes to lib.rs

2 unstable releases

Uses new Rust 2024

0.1.0-alpha.1 Sep 10, 2025
0.0.0 Aug 31, 2025

#3 in #leaf-protocols

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

54 downloads per month

PolyForm-Noncommercial-1.0.0

6KB
140 lines

Leaf Framework

This is the third major iteration of Muni Town's Leaf Framework. Under heavy development.

The Leaf server and client libraries are currently in a functional proof-of-concept state.

Meri's notes from first reading the code might be a little bit useful in lieu of more fleshed out documentation

To compile and run locally: cargo r -- --otel server -D did:web:localhost. For testing, you can also pass --unsafe-auth-token token123, which enables an authentication bypass, so you don't need a JWT.

Dockerfile build

The Dockerfile for leaf-server uses statically linked C code that is compiled for x86 architectures, which is also what the server is running. On x86 machines we can run docker build -t leaf-server:x86_64 .

For local dev on arm64 machines, we can pass in a build arg: docker build --build-arg TARGET=aarch64-unknown-linux-musl -t leaf-server:arm64 .

Then in either case we can run it as usual: docker run -it --rm -p 5530:5530 -v $(pwd)/data:/data leaf-server

Dependencies

~7–10MB
~117K SLoC