Martin Berg Alstad f3fa0334c2 Simplify query argument.
Truth table and array utils.

Count distinct atomic values.
2024-06-09 11:57:59 +02:00

28 lines
544 B
Rust

use std::net::SocketAddr;
use tokio::net::TcpListener;
use crate::routing::{simplify, table};
mod expressions;
mod parsing;
mod routing;
mod language;
mod config;
mod utils;
#[tokio::main]
async fn main() {
let addr = SocketAddr::from(([127, 0, 0, 1], config::PORT));
let listener = TcpListener::bind(&addr)
.await
.unwrap();
println!("Listening on: {}", listener.local_addr().unwrap());
let routes = simplify::router()
.merge(table::router());
axum::serve(listener, routes).await.unwrap();
}