MSCTVNF4YSPPILU3RTAFRGWFCNFCIKDFJIKQYUQFXSVJE3FYMQKQC pub fn add(left: usize, right: usize) -> usize {left + right}#[cfg(test)]mod tests {use super::*;#[test]fn it_works() {let result = add(2, 2);assert_eq!(result, 4);}}
[package]name = "shared"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[dependencies]
use actix_web::{get, web::ServiceConfig};use shuttle_actix_web::ShuttleActixWeb;#[get("/")]async fn hello_world() -> &'static str {"Hello World!"}#[shuttle_runtime::main]async fn actix_web() -> ShuttleActixWeb<impl FnOnce(&mut ServiceConfig) + Send + Clone + 'static> {let config = move |cfg: &mut ServiceConfig| {cfg.service(hello_world);};Ok(config.into())}
[package]name = "api-shuttle"version = "0.1.0"edition = "2021"[dependencies]actix-web = "4.3.1"shuttle-actix-web = "0.23.0"shuttle-runtime = "0.23.0"tokio = "1.26.0"
pub fn add(left: usize, right: usize) -> usize {left + right}#[cfg(test)]mod tests {use super::*;#[test]fn it_works() {let result = add(2, 2);assert_eq!(result, 4);}}
[package]name = "api-lib"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[dependencies]
[workspace]members = ["api/lib","api/shuttle","shared"]