Skip to the content.

Sofie

crates.io Build Status Documentation License: MIT

Sofie is a comprehensive, production-ready web framework for Rust that combines simplicity with power. Built on top of VeTiS, it provides everything you need to build modern web applications - from REST APIs to full-featured web services - with a clean, intuitive API that makes development a joy.

Built on top of hyper.

πŸ—ΊοΈ Roadmap

Sofie is continuously evolving! Here’s what we’re working on:

Security & Authentication

Middleware & Features

Real-time & Monitoring

AI & Future

Quick Start

Add to your Cargo.toml:

[dependencies]
sofie = { version = "0.0.9", features = ["http1", "tokio-rt"] }

Basic usage:

use sofie::App;
use http_body_util::{Full};
use bytes::Bytes;
use hyper::Response;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    std_logger::Config::logfmt().init();

    let mut app = App::new();

    app.serve(|_| async move {
        Ok(Response::new(Full::new(Bytes::from("Hello World"))))
    }).await?;

    Ok(())
}

Examples

Check out the examples for complete examples of how to use Sophia in your projects.

Create project from template

You can create a new project from the template using cargo generate:

cargo generate ararog/sofie-templates

Documentation

License

This project is licensed under the MIT License.

Author

Rogerio Pereira Araujo rogerio.araujo@gmail.com