Extract the authentication database from the File Service #103

Merged
savanni merged 3 commits from authdb into main 2023-11-20 05:02:53 +00:00
3 changed files with 13 additions and 1 deletions
Showing only changes of commit 42e931d780 - Show all commits

3
Cargo.lock generated
View File

@ -140,6 +140,7 @@ name = "authdb"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"base64ct", "base64ct",
"clap",
"cool_asserts", "cool_asserts",
"serde 1.0.188", "serde 1.0.188",
"sha2", "sha2",
@ -926,6 +927,7 @@ dependencies = [
name = "file-service" name = "file-service"
version = "0.2.0" version = "0.2.0"
dependencies = [ dependencies = [
"authdb",
"base64ct", "base64ct",
"build_html", "build_html",
"bytes", "bytes",
@ -944,6 +946,7 @@ dependencies = [
"pretty_env_logger", "pretty_env_logger",
"serde 1.0.188", "serde 1.0.188",
"serde_json", "serde_json",
"sha2",
"tempdir", "tempdir",
"thiserror", "thiserror",
"tokio", "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 # 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] [dependencies]
base64ct = { version = "1", features = [ "alloc" ] } base64ct = { version = "1", features = [ "alloc" ] }
clap = { version = "4", features = [ "derive" ] }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
sha2 = { version = "0.10" } sha2 = { version = "0.10" }
sqlx = { version = "0.7", features = [ "runtime-tokio", "sqlite" ] } sqlx = { version = "0.7", features = [ "runtime-tokio", "sqlite" ] }

View File

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