- Removing workspace setup for cargo

This should make building much more straight forward in the future
as currently builds have to follow a much stranger method
- Removed fluff storage file
No longer going to support uploading API. This is with the assumption that
most who use this software are going to know how to upload files to their
server anyway
This commit is contained in:
shockrah
2022-01-02 14:21:32 -08:00
parent 1e2ff50214
commit 5440c508e5
5 changed files with 100 additions and 241 deletions

2086
api/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -6,8 +6,8 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
#rocket = { git = "https://github.com/SergioBenitez/Rocket", features = [ "json" ] }
rocket = { version = "0.5.0-rc.1", features = [ "json" ] }
tokio = "1.0"
serde = { version = "1.0", features = [ "derive" ] }
lazy_static = "1.4.0"

View File

@@ -1,4 +1,4 @@
#![feature(decl_macro)]
//#![feature(decl_macro)]
#[macro_use] extern crate rocket;
#[macro_use] extern crate lazy_static;
use std::env;
@@ -10,7 +10,7 @@ mod video;
mod thumbnail;
mod common;
#[tokio::main]
#[rocket::main]
async fn main() {
// emoji's crash my terminal
env::set_var("ROCKET_CLI_COLORS", "false");

View File

@@ -1,11 +0,0 @@
{
"keys":[
{
"name": "shockrah",
"key": "asdf"
}
],
"videos": {
"video": { "name": "cool" }
}
}