Created
February 23, 2025 08:58
-
-
Save up1/112d7edd27846c3024a94f73ab086e15 to your computer and use it in GitHub Desktop.
PayPay with Rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Cargo.toml | |
[dependencies] | |
actix-web = "4" | |
// main.rs | |
use actix_web::{web, App, HttpResponse, HttpServer}; | |
#[actix_web::main] | |
async fn main() -> std::io::Result<()> { | |
HttpServer::new(|| App::new().route("/", web::get().to(HttpResponse::Ok))) | |
.bind(("127.0.0.1", 8080))? | |
.run() | |
.await | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment