Skip to content

Commit 566dada

Browse files
authored
Merge branch 'main' into reso409
2 parents 0c1264b + 84226de commit 566dada

13 files changed

Lines changed: 425797 additions & 1 deletion

File tree

frameworks/wtx-http2/Cargo.lock

Lines changed: 250 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/wtx-http2/Cargo.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
name = "httparena-wtx-http2"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
7+
serde = { default-features = false, features = ["derive"], version = "1.0", }
8+
serde_json = { default-features = false, features = ["std"], version = "1.0" }
9+
tokio = { default-features = false, features = ["macros", "rt-multi-thread"], version = "1.0" }
10+
wtx = { default-features = false, features = ["http-server-framework", "macros", "matchit", "nightly", "optimization", "serde_json", "tokio"], version = "0.44"}
11+
12+
[profile.release]
13+
codegen-units = 1
14+
lto = "thin"
15+
opt-level = 3
16+
panic = "abort"

frameworks/wtx-http2/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM rust:1.95 AS build
2+
RUN rustup default nightly-2026-03-08
3+
WORKDIR /app
4+
COPY Cargo.toml .
5+
RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo build --release && rm -rf src/ target/release/httparena-wtx-http2* target/release/deps/httparena_wtx-http2*
6+
COPY src ./src
7+
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release
8+
9+
FROM debian:bookworm-slim
10+
COPY --from=build /app/target/release/httparena-wtx-http2 /server
11+
EXPOSE 8082
12+
CMD ["/server"]

frameworks/wtx-http2/meta.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"display_name": "wtx",
3+
"language": "Rust",
4+
"type": "production",
5+
"engine": "wtx",
6+
"description": "WTX - HTTP/2 Framework Server",
7+
"repo": "https://github.com/c410-f3r/wtx",
8+
"enabled": true,
9+
"tests": [
10+
"baseline-h2c",
11+
"json-h2c"
12+
]
13+
}

0 commit comments

Comments
 (0)