Add lib.rs, scaffold testing

This commit is contained in:
Juno Takano 2025-12-14 19:00:57 -03:00
commit d9a6938eb6
11 changed files with 57 additions and 14 deletions

View file

@ -1,17 +1,8 @@
use std::{backtrace, io, panic, sync, time};
use std::{backtrace, io, panic};
use axum::{routing::get, Router};
use formats::Format;
mod formats;
mod types;
mod handlers;
mod syntax;
mod dev;
static ONSET: sync::LazyLock<time::Instant> =
sync::LazyLock::new(time::Instant::now);
use en::{ONSET, handlers, syntax, dev, formats::Format};
#[tokio::main]
async fn main() -> io::Result<()> {
@ -99,3 +90,12 @@ async fn main() -> io::Result<()> {
Ok(())
}
#[cfg(test)]
mod tests {
#[test]
fn smoke() {
let e = true;
assert!(e);
}
}