hyperlane-quick-start
A lightweight, high-performance, and cross-platform Rust HTTP server library built on Tokio. It simplifies modern web service development by providing built-in support for middleware, WebSocket, Server-Sent Events (SSE), and raw TCP communication. With a unified and ergonomic API across Windows, Linux, and MacOS, it enables developers to build robust, scalable, and event-driven network applications with minimal overhead and maximum flexibility.
Run it
&&
Then open http://127.0.0.1:65002.
That is the whole procedure. compose.yaml in the repository root builds the
server image from source, starts MySQL, PostgreSQL and Redis, waits for all three
to report healthy, and starts the server. Nothing has to be configured first — the
release environment file is read automatically in a release build and already
names the three containers.
The first run compiles from source and can take a long time on a small machine.
The repository builds serially by default (.cargo/config.toml sets
build.jobs = 1) and the release profile has no LTO, which lowers the peak
memory a build needs rather than fixing a floor every machine clears. CI
compiles the tree inside a container capped at 2 CPUs and 4 GiB with no swap and
prints the peak that run actually reached, so the number to compare against is
in the job log rather than in this file. On a stronger machine, raise
parallelism explicitly with cargo build --release -j <N>. To skip the build
entirely, pull the published image instead:
| Branch | Image |
|---|---|
master |
hkccr.ccs.tencentyun.com/hyperlane-dev/hyperlane-quick-start:1.0.0 |
playground |
hkccr.ccs.tencentyun.com/hyperlane-dev/hyperlane-quick-start-playground:1.0.0 |
;
;
The server logs its own progress; this is what a healthy start looks like:
[AUTO-CREATION] Initialization complete MySQL (mysql_default) verified,
PostgreSQL (postgres_default) verified, Redis (redis_default) verified
Server listen in 0.0.0.0:65002
The three databases are reachable by their compose service names and are not published to the host, so the stack does not collide with anything else already listening. To inspect one:
;
;
;
Add -T and a command when running these from a script, or they wait on stdin
forever.
Api Docs
License
This project is licensed under the MIT License. For more details, please see the license file.
Contributing
Contributions are welcome! Please submit an issue or create a pull request.
Contact
If you have any questions, please contact the author: root@ltpp.vip.