generated from ElnuDev/rust-project
parent
befc0c0ee3
commit
dad460ad37
@ -0,0 +1,6 @@
|
||||
{
|
||||
"rust-analyzer.linkedProjects": [
|
||||
"./tatoeba/Cargo.toml",
|
||||
"./utils/Cargo.toml"
|
||||
]
|
||||
}
|
@ -1,12 +1,2 @@
|
||||
[package]
|
||||
name = "tatoeba-api"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.3.1"
|
||||
derive_more = "0.99.17"
|
||||
mime = "0.3.17"
|
||||
reqwest = "0.11.18"
|
||||
[workspace]
|
||||
members = ["tatoeba", "utils"]
|
||||
|
@ -0,0 +1,13 @@
|
||||
[package]
|
||||
name = "tatoeba-api"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
utils = { path = "../utils" }
|
||||
actix-web = "4.3.1"
|
||||
derive_more = "0.99.17"
|
||||
mime = "0.3.17"
|
||||
reqwest = "0.11.18"
|
@ -1,7 +1,6 @@
|
||||
mod error;
|
||||
pub use error::{Error, Result};
|
||||
|
||||
pub mod utils;
|
||||
use utils::is_human;
|
||||
|
||||
use actix_web::{get, http::header, App, HttpRequest, HttpResponse, HttpServer, Responder};
|
@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "utils"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.3.1"
|
Loading…
Reference in new issue