Convert to monorepo with utils library

main
Elnu 1 year ago
parent befc0c0ee3
commit dad460ad37

@ -0,0 +1,6 @@
{
"rust-analyzer.linkedProjects": [
"./tatoeba/Cargo.toml",
"./utils/Cargo.toml"
]
}

8
Cargo.lock generated

@ -1277,6 +1277,7 @@ dependencies = [
"derive_more",
"mime",
"reqwest",
"utils",
]
[[package]]
@ -1448,6 +1449,13 @@ dependencies = [
"percent-encoding",
]
[[package]]
name = "utils"
version = "0.1.0"
dependencies = [
"actix-web",
]
[[package]]
name = "vcpkg"
version = "0.2.15"

@ -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…
Cancel
Save