Moved to workspace structure

This commit is contained in:
G2-Games 2024-11-09 16:37:36 -06:00
parent 055bcacdd3
commit 26ec3c0b2e
17 changed files with 41 additions and 25 deletions

View file

@ -1,24 +1,14 @@
[package] [workspace]
name = "confetti_box" resolver = "2"
version = "0.1.3" members = [
edition = "2021" "confetti-box",
]
[dependencies] [workspace.package]
blake3 = { version = "1.5.4", features = ["mmap", "rayon", "serde"] } authors = ["G2"]
chrono = { version = "0.4.38", features = ["serde"] }
ciborium = "0.2.2" [workspace.lints.rust]
file-format = { version = "0.26", features = ["reader"] } unsafe_code = "forbid"
log = "0.4"
lz4_flex = "0.11.3"
maud = { version = "0.26", features = ["rocket"] }
rand = "0.8.5"
rocket = { version = "0.5", features = ["json"] }
serde = { version = "1.0.213", features = ["derive"] }
serde_with = { version = "3.11.0", features = ["chrono_0_4"] }
toml = "0.8.19"
unidecode = "0.3.0"
urlencoding = "2.1.3"
uuid = { version = "1.11.0", features = ["serde", "v4"] }
[profile.production] [profile.production]
inherits = "release" inherits = "release"

26
confetti-box/Cargo.toml Normal file
View file

@ -0,0 +1,26 @@
[package]
name = "confetti_box"
version = "0.1.3"
edition = "2021"
license = "GPL-3.0-or-later"
authors.workspace = true
[lints]
workspace = true
[dependencies]
blake3 = { version = "1.5.4", features = ["mmap", "rayon", "serde"] }
chrono = { version = "0.4.38", features = ["serde"] }
ciborium = "0.2.2"
file-format = { version = "0.26", features = ["reader"] }
log = "0.4"
lz4_flex = "0.11.3"
maud = { version = "0.26", features = ["rocket"] }
rand = "0.8.5"
rocket = { version = "0.5", features = ["json"] }
serde = { version = "1.0.213", features = ["derive"] }
serde_with = { version = "3.11.0", features = ["chrono_0_4"] }
toml = "0.8.19"
unidecode = "0.3.0"
urlencoding = "2.1.3"
uuid = { version = "1.11.0", features = ["serde", "v4"] }

View file

@ -14,7 +14,7 @@ use log::{error, info, warn};
use rand::distributions::{Alphanumeric, DistString}; use rand::distributions::{Alphanumeric, DistString};
use rocket::{ use rocket::{
form::{self, FromFormField, ValueField}, form::{self, FromFormField, ValueField},
serde::{Deserialize, Serialize}, tokio, serde::{Deserialize, Serialize},
}; };
use serde_with::{serde_as, DisplayFromStr}; use serde_with::{serde_as, DisplayFromStr};
use uuid::Uuid; use uuid::Uuid;

View file

@ -4,7 +4,7 @@ use std::{
}; };
use rocket::{ use rocket::{
get, http::{uri::Uri, ContentType, Header}, response::{self, Redirect, Responder, Response}, serde::{self, json::Json}, tokio::{self, fs::File}, uri, Request, State get, http::ContentType, response::{self, Redirect, Responder, Response}, serde::{self, json::Json}, tokio::{self, fs::File}, uri, Request, State
}; };
use serde::Serialize; use serde::Serialize;

View file

@ -20,9 +20,9 @@ use chrono::{TimeDelta, Utc};
use database::{Chunkbase, ChunkedInfo, Mmid, MochiFile, Mochibase}; use database::{Chunkbase, ChunkedInfo, Mmid, MochiFile, Mochibase};
use maud::{html, Markup, PreEscaped}; use maud::{html, Markup, PreEscaped};
use rocket::{ use rocket::{
data::ToByteUnit, get, http::ContentType, post, serde::{json::Json, Serialize}, tokio::{ data::ToByteUnit, get, post, serde::{json::Json, Serialize}, tokio::{
self, fs, io::{AsyncSeekExt, AsyncWriteExt} fs, io::{AsyncSeekExt, AsyncWriteExt}
}, Data, Responder, State }, Data, State
}; };
use uuid::Uuid; use uuid::Uuid;

View file

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB