mirror of
https://github.com/Dangoware/confetti-box.git
synced 2025-04-19 07:12:58 -05:00
Moved to workspace structure
This commit is contained in:
parent
055bcacdd3
commit
26ec3c0b2e
17 changed files with 41 additions and 25 deletions
30
Cargo.toml
30
Cargo.toml
|
@ -1,24 +1,14 @@
|
|||
[package]
|
||||
name = "confetti_box"
|
||||
version = "0.1.3"
|
||||
edition = "2021"
|
||||
[workspace]
|
||||
resolver = "2"
|
||||
members = [
|
||||
"confetti-box",
|
||||
]
|
||||
|
||||
[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"] }
|
||||
[workspace.package]
|
||||
authors = ["G2"]
|
||||
|
||||
[workspace.lints.rust]
|
||||
unsafe_code = "forbid"
|
||||
|
||||
[profile.production]
|
||||
inherits = "release"
|
||||
|
|
26
confetti-box/Cargo.toml
Normal file
26
confetti-box/Cargo.toml
Normal 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"] }
|
|
@ -14,7 +14,7 @@ use log::{error, info, warn};
|
|||
use rand::distributions::{Alphanumeric, DistString};
|
||||
use rocket::{
|
||||
form::{self, FromFormField, ValueField},
|
||||
serde::{Deserialize, Serialize}, tokio,
|
||||
serde::{Deserialize, Serialize},
|
||||
};
|
||||
use serde_with::{serde_as, DisplayFromStr};
|
||||
use uuid::Uuid;
|
|
@ -4,7 +4,7 @@ use std::{
|
|||
};
|
||||
|
||||
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;
|
||||
|
|
@ -20,9 +20,9 @@ use chrono::{TimeDelta, Utc};
|
|||
use database::{Chunkbase, ChunkedInfo, Mmid, MochiFile, Mochibase};
|
||||
use maud::{html, Markup, PreEscaped};
|
||||
use rocket::{
|
||||
data::ToByteUnit, get, http::ContentType, post, serde::{json::Json, Serialize}, tokio::{
|
||||
self, fs, io::{AsyncSeekExt, AsyncWriteExt}
|
||||
}, Data, Responder, State
|
||||
data::ToByteUnit, get, post, serde::{json::Json, Serialize}, tokio::{
|
||||
fs, io::{AsyncSeekExt, AsyncWriteExt}
|
||||
}, Data, State
|
||||
};
|
||||
use uuid::Uuid;
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Loading…
Reference in a new issue