add version argument, move import to test body
Signed-off-by: strawberry <strawberry@pupbrain.dev>
This commit is contained in:
parent
8fffb6ea04
commit
4d7b5eb759
2 changed files with 9 additions and 2 deletions
|
@ -50,6 +50,8 @@ use tracing_subscriber::{prelude::*, EnvFilter};
|
||||||
|
|
||||||
use tokio::sync::oneshot::Sender;
|
use tokio::sync::oneshot::Sender;
|
||||||
|
|
||||||
|
use clap::Parser;
|
||||||
|
|
||||||
pub use conduit::*; // Re-export everything from the library crate
|
pub use conduit::*; // Re-export everything from the library crate
|
||||||
|
|
||||||
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
|
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
|
||||||
|
@ -59,8 +61,13 @@ use tikv_jemallocator::Jemalloc;
|
||||||
#[global_allocator]
|
#[global_allocator]
|
||||||
static GLOBAL: Jemalloc = Jemalloc;
|
static GLOBAL: Jemalloc = Jemalloc;
|
||||||
|
|
||||||
|
#[derive(Parser)]
|
||||||
|
#[clap(version, about, long_about = None)]
|
||||||
|
struct Args {}
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
|
Args::parse();
|
||||||
// Initialize config
|
// Initialize config
|
||||||
let raw_config =
|
let raw_config =
|
||||||
Figment::new()
|
Figment::new()
|
||||||
|
|
|
@ -3,8 +3,6 @@ use std::io::Cursor;
|
||||||
|
|
||||||
pub use data::Data;
|
pub use data::Data;
|
||||||
|
|
||||||
use base64::{engine::general_purpose, Engine as _};
|
|
||||||
|
|
||||||
use crate::{services, Result};
|
use crate::{services, Result};
|
||||||
use image::imageops::FilterType;
|
use image::imageops::FilterType;
|
||||||
|
|
||||||
|
@ -265,6 +263,8 @@ mod tests {
|
||||||
|
|
||||||
use sha2::Digest;
|
use sha2::Digest;
|
||||||
|
|
||||||
|
use base64::{engine::general_purpose, Engine as _};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
struct MockedKVDatabase;
|
struct MockedKVDatabase;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue