Add lib.rs, scaffold testing
This commit is contained in:
parent
99d05223d7
commit
d9a6938eb6
11 changed files with 57 additions and 14 deletions
22
src/main.rs
22
src/main.rs
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue