mirror of
https://github.com/moghtech/komodo.git
synced 2026-07-28 01:41:54 -05:00
25 lines
433 B
Rust
25 lines
433 B
Rust
#[macro_use]
|
|
extern crate tracing;
|
|
|
|
use rand::{distributions::Alphanumeric, thread_rng, Rng};
|
|
|
|
mod core;
|
|
// mod periphery;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> anyhow::Result<()> {
|
|
logger::init(&Default::default())?;
|
|
// periphery::tests().await?;
|
|
core::tests().await?;
|
|
|
|
Ok(())
|
|
}
|
|
|
|
fn random_string(length: usize) -> String {
|
|
thread_rng()
|
|
.sample_iter(&Alphanumeric)
|
|
.take(length)
|
|
.map(char::from)
|
|
.collect()
|
|
}
|