Move the cli app into authdb

This commit is contained in:
Savanni D'Gerinel 2023-11-19 23:54:02 -05:00
parent 532210db03
commit 42e931d780
3 changed files with 13 additions and 1 deletions

3
Cargo.lock generated
View File

@ -140,6 +140,7 @@ name = "authdb"
version = "0.1.0"
dependencies = [
"base64ct",
"clap",
"cool_asserts",
"serde 1.0.188",
"sha2",
@ -926,6 +927,7 @@ dependencies = [
name = "file-service"
version = "0.2.0"
dependencies = [
"authdb",
"base64ct",
"build_html",
"bytes",
@ -944,6 +946,7 @@ dependencies = [
"pretty_env_logger",
"serde 1.0.188",
"serde_json",
"sha2",
"tempdir",
"thiserror",
"tokio",

View File

@ -5,8 +5,17 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "authdb"
path = "src/lib.rs"
[[bin]]
name = "auth-cli"
path = "src/bin/cli.rs"
[dependencies]
base64ct = { version = "1", features = [ "alloc" ] }
clap = { version = "4", features = [ "derive" ] }
serde = { version = "1.0", features = ["derive"] }
sha2 = { version = "0.10" }
sqlx = { version = "0.7", features = [ "runtime-tokio", "sqlite" ] }

View File

@ -1,5 +1,5 @@
use authdb::{AuthDB, Username};
use clap::{Parser, Subcommand};
use file_service::{AuthDB, Username};
use std::path::PathBuf;
#[derive(Subcommand, Debug)]