Import and update the file service application and orizentic #72

Merged
savanni merged 36 commits from file-service into main 2023-10-03 23:50:54 +00:00
5 changed files with 1253 additions and 268 deletions
Showing only changes of commit e36657591b - Show all commits

1483
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@ members = [
"cyberpunk-splash", "cyberpunk-splash",
"dashboard", "dashboard",
"emseries", "emseries",
"file-service",
"flow", "flow",
"fluent-ergonomics", "fluent-ergonomics",
"geo-types", "geo-types",
@ -16,6 +17,7 @@ members = [
"kifu/core", "kifu/core",
"kifu/gtk", "kifu/gtk",
"memorycache", "memorycache",
"orizentic",
"screenplay", "screenplay",
"sgf", "sgf",
"nom-training", "nom-training",

View File

@ -10,6 +10,7 @@ RUST_ALL_TARGETS=(
"cyberpunk-splash" "cyberpunk-splash"
"dashboard" "dashboard"
"emseries" "emseries"
"file-service"
"flow" "flow"
"fluent-ergonomics" "fluent-ergonomics"
"geo-types" "geo-types"
@ -19,6 +20,7 @@ RUST_ALL_TARGETS=(
"kifu-core" "kifu-core"
"kifu-gtk" "kifu-gtk"
"memorycache" "memorycache"
"orizentic"
"screenplay" "screenplay"
"sgf" "sgf"
) )

View File

@ -7,19 +7,19 @@ edition = "2018"
# 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
[dependencies] [dependencies]
chrono = { version = "0.4", features = ["serde"] } chrono = { version = "0.4", features = ["serde"] }
hex-string = "0.1.0" hex-string = "0.1.0"
iron = "0.6.1" image = "0.23.5"
logger = "*" iron = "0.6.1"
mime = "0.3.16" logger = "*"
mime_guess = "2.0.3" mime = "0.3.16"
mustache = "0.9.0" mime_guess = "2.0.3"
orizentic = "1.0.0" mustache = "0.9.0"
params = "*" orizentic = { path = "../orizentic" }
router = "*" params = "*"
serde_json = "*" router = "*"
serde = { version = "1.0", features = ["derive"] } serde_json = "*"
sha2 = "0.8.2" serde = { version = "1.0", features = ["derive"] }
uuid = { version = "0.4", features = ["serde", "v4"] } sha2 = "0.8.2"
thiserror = "1.0.20" thiserror = "1.0.20"
image = "0.23.5" uuid = { version = "0.4", features = ["serde", "v4"] }

View File

@ -26,7 +26,7 @@ impl Authentication {
&self, &self,
token_str: String, token_str: String,
) -> Result<orizentic::VerifiedToken, orizentic::Error> { ) -> Result<orizentic::VerifiedToken, orizentic::Error> {
self.auth.decode_and_validate_text(&token_str) self.auth.decode_and_validate_text(token_str)
} }
} }