Skip to content

Instantly share code, notes, and snippets.

@up1
Created February 23, 2025 08:58
Show Gist options
  • Save up1/112d7edd27846c3024a94f73ab086e15 to your computer and use it in GitHub Desktop.
Save up1/112d7edd27846c3024a94f73ab086e15 to your computer and use it in GitHub Desktop.
PayPay with Rust
// 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