Repository navigation
Add veil-api (Rust) - #1706
Open
aofusa wants to merge 1 commit into
Open
Add veil-api (Rust)#1706aofusa wants to merge 1 commit into
aofusa wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds veil-api (Rust, framework profile,
emerging,standardmode): an application written with the APIlibrary of veil (crates.io
veil-proxy = "=0.10.1", featuresfull-container+api). veil runs on its own async runtime (epoll readiness reactor in this build; no tokio orhyper); HTTP/2 is veil's own, HTTP/3 is quiche, TLS is rustls. I maintain veil.
#[veil::route]handlers:/baseline11(GET/POST),/baseline2,/pipeline,/json/{count}?m=(serde_json onevery request),
/delay/{ms}(veil's timer),/echo,/ws(WebSocketUpgrade, echo).benchmark.BenchmarkService(all four methods) fromproto/benchmark.proto, generated at build time withveil-proxy-build(prost)./static/*throughApp::serve_dir(File backend: sendfile, open-file/content caches that follow the disk,br/gzip for HTTP/2 and HTTP/3).
[api] compression(the library's middleware).[[listener]]s fromveil.toml: 8080 HTTP/1.1, 8081 TLS HTTP/1.1, 8082 h2c,8443 TLS h2 + h3.
cmake,nasm,libclang-dev(aws-lc-sys) andprotobuf-compiler(prost-build); they areinstalled in the build stage.
Completeness: routing, middleware (
App::layer/layer_on/wrap_on: ordered, scoped, before and after thehandler, can answer early), request, response — see the README.
Subscribed tests: baseline, pipelined, limited-conn, async, latency-1m, latency-10k, latency-500k-8cpu, json-comp,
json-tls, 8gbit, static-tls, baseline-h2, static-h2, baseline-h2c, json-h2c, baseline-h3, static-h3, unary-grpc,
unary-grpc-tls, echo-ws, echo-ws-pipeline, echo-ws-limited.
Local validation (
./scripts/validate.sh veil-api, with veil-proxy 0.10.1 from crates.io):113 passed, 0 failed (frag 9/9, WS 7/7, gRPC h2c and TLS, h3, static-tls compression).
🤖 Generated with Claude Code