Skip to content

Commit

Permalink
use php 8.3 for antidot
Browse files Browse the repository at this point in the history
  • Loading branch information
waghanza committed Jan 4, 2025
1 parent acb1e1c commit 1a4664f
Show file tree
Hide file tree
Showing 19 changed files with 106,710 additions and 4,322 deletions.
110,923 changes: 106,647 additions & 4,276 deletions data.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data.min.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion go/poteto/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
framework:
website: github.com/poteto0/poteto
github: poteto-go/poteto
version: 1.0
2 changes: 1 addition & 1 deletion go/poteto/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module main

require github.com/poteto0/poteto v1.0.1
require github.com/poteto-go/poteto v1.0.1
2 changes: 1 addition & 1 deletion javascript/chubbyts-uwebsockets/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework:
github: chubbyts/chubbyts-framework
version: 1.9
version: '1.10'

engines:
- uwebsockets
Expand Down
2 changes: 1 addition & 1 deletion javascript/chubbyts/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
framework:
github: chubbyts/chubbyts-framework
version: 1.9
version: '1.10'

bootstrap:
- npm -g install typescript
Expand Down
2 changes: 1 addition & 1 deletion kotlin/http4k/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
framework:
website: http4k.org
version: 5.43
version: 5.44
1 change: 1 addition & 0 deletions php/antidot/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language:
version: 8.3
engines:
reactphp:
command: bin/console serve
Expand Down
4 changes: 0 additions & 4 deletions php/mixphp-workerman/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
}
},
"require": {
<<<<<<< Updated upstream
"workerman/workerman": "^5.0",
=======
"workerman/workerman": "~5.0.0",
>>>>>>> Stashed changes
"mix/vega": "~3.0.0"
}
}
12 changes: 11 additions & 1 deletion rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ WORKDIR /usr/src/app
COPY '{{source}}' '{{target}}'
{{/files}}

RUN cargo build --release && strip target/release/server
RUN cargo build --release \
--config profile.release.opt-level = 3 \
--config profile.release.debug = false \
--config profile.release.debug-assertions = false \
--config profile.release.lto = true \
--config profile.release.panic = "abort" \
--config profile.release.incremental = false \
--config profile.release.codegen-units = 1 \
--config profile.release.rpath = false \
--config profile.release.strip = false \
&& strip target/release/server

FROM debian:stable-slim

Expand Down
2 changes: 1 addition & 1 deletion rust/actix/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use actix_web::{get, web, App, HttpServer, Responder, HttpResponse};
use actix_web::{get, web, App, HttpResponse, HttpServer, Responder};

#[get("/user/{id}")]
async fn get_user(id: web::Path<String>) -> String {
Expand Down
5 changes: 4 additions & 1 deletion rust/axum/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ async fn main() {
let router: Router = Router::new()
.route("/", get(|| async {}))
.route("/user", post(|| async {}))
.route("/user/{id}", get(|Path(id): Path<String>| async move { id }));
.route(
"/user/{id}",
get(|Path(id): Path<String>| async move { id }),
);

let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
axum::serve(listener, router.into_make_service())
Expand Down
12 changes: 5 additions & 7 deletions rust/ohkami/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ use ohkami::prelude::*;

fn benchmark_ohkami() -> Ohkami {
Ohkami::new((
"/"
.GET(|| async {Response::OK()}),
"/user"
.POST(|| async {Response::OK()}),
"/user/:id"
.GET(|id: String| async {id}),
"/".GET(|| async { Response::OK() }),
"/user".POST(|| async { Response::OK() }),
"/user/:id".GET(|id: String| async { id }),
))
}

fn main() {
tokio::runtime::Builder::new_multi_thread()
.enable_all()
.event_interval(1)
.build().unwrap()
.build()
.unwrap()
.block_on(benchmark_ohkami().howl("0.0.0.0:3000"))
}
2 changes: 1 addition & 1 deletion rust/oxidy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ async fn main() {
app.add(route!("get /user/:id", user));
app.add(route!("post /user", user_post));
app.run("0.0.0.0:3000").await;
}
}
23 changes: 16 additions & 7 deletions rust/rocket/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
use std::net::{Ipv4Addr};
use std::net::Ipv4Addr;

#[macro_use] extern crate rocket;
#[macro_use]
extern crate rocket;

#[get("/")]
fn index() -> &'static str { "" }
fn index() -> &'static str {
""
}

#[get("/user/<id>")]
fn get_user(id: &str) -> &str { id }
fn get_user(id: &str) -> &str {
id
}

#[post("/user")]
fn post_user() -> &'static str { "" }
fn post_user() -> &'static str {
""
}

#[launch]
fn rocket() -> _ {
fn rocket() -> _ {
let mut config = rocket::config::Config::default();
config.address = Ipv4Addr::new(0, 0, 0, 0).into();
config.port = 3000;
rocket::build().configure(config).mount("/", routes![index, get_user, post_user])
rocket::build()
.configure(config)
.mount("/", routes![index, get_user, post_user])
}
8 changes: 4 additions & 4 deletions rust/salvo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ async fn main() {
);
let acceptor = TcpListener::new("0.0.0.0:3000").bind().await;
Server::new(acceptor).serve(router).await
// let mut server = Server::new(acceptor);
// let http1 = server.http1_mut();
// http1.pipeline_flush(true);
// server.serve(router).await
// let mut server = Server::new(acceptor);
// let http1 = server.http1_mut();
// http1.pipeline_flush(true);
// server.serve(router).await
}
22 changes: 10 additions & 12 deletions rust/silent/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ async fn index(_req: Request) -> Result<Response> {
}

fn main() {
let route = Route::new("")
.get(index)
.append(
Route::new("user").append(
Route::new("<id>").get(
|req| async move {
req.get_path_params::<String>("id")
}
),
).post(index)
);
Server::new().bind("0.0.0.0:3000".parse().unwrap()).run(route);
let route = Route::new("").get(index).append(
Route::new("user")
.append(
Route::new("<id>").get(|req| async move { req.get_path_params::<String>("id") }),
)
.post(index),
);
Server::new()
.bind("0.0.0.0:3000".parse().unwrap())
.run(route);
}
2 changes: 1 addition & 1 deletion rust/tide/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ async fn main() {
app.at("/user").post(|_| async { Ok("") });

app.listen("0.0.0.0:3000").await.unwrap();
}
}
4 changes: 3 additions & 1 deletion rust/warp/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use warp::Filter;
async fn main() {
let index = warp::path::end().and(warp::get()).map(|| "");

let user = warp::path!("user" / u32).and(warp::get()).map(|id: u32| id.to_string());
let user = warp::path!("user" / u32)
.and(warp::get())
.map(|id: u32| id.to_string());

let user_post = warp::path("user").and(warp::post()).map(|| "");

Expand Down

0 comments on commit 1a4664f

Please sign in to comment.