ntex-rs/ntex has 2,546 GitHub stars and 146 forks. GitHot measured +2 stars in 24 hours. Last checked 2026-11-08 19:54 UTC. Last push 2026-11-02.
framework for composable networking services
What you can do
- openssl and rustls enable the corresponding TLS integrations.
- compress enables HTTP content compression (gzip, deflate and zstd).
- cookie enables cookie support.
- ws enables WebSocket APIs and is enabled by default.
Measured star growth
- in 24h
- +2
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalntex provides a strongly typed component for building asynchronous network applications. It includes HTTP/1, HTTP/2, WebSocket, TLS, and runtime-independent I/O support. MQTT, AMQP, and gRPC are provided by related projects.
Build status
| Platform | Status |
|---|---|
| Linux | |
| macOS | |
| Windows |
Usage
Add ntex to your project:
[dependencies]
ntex = "4"
A minimal web server looks like this:
use ntex::{SharedCfg, web};
#[web::get("/")]
async fn index() -> &'static str {
"Hello world!"
}
#[ntex::main]
async fn main() -> std::io::Result<()> {
web::HttpServer::new(async |_| web::App::new().service(index))
.bind("127.0.0.1:8080", SharedCfg::new("hello-world"))?
.run()
.await
}
Runtime selection
Without an explicit runtime feature, ntex uses its native single-threaded runtime and automatically selects a platform I/O reactor:
- Linux tries
io_uringand falls back to polling. - Other Unix platforms use polling.
- Windows uses IOCP.
Alternative runtimes and native reactors can be selected with Cargo features:
| Feature | Runtime or reactor |
|---|---|
tokio |
Tokio local runtime and I/O driver |
compio |
Compio runtime and completion-based I/O |
neon-polling |
Native runtime with the polling reactor on Unix |
neon-uring |
Native runtime with io_uring on Linux |
Enable at most one runtime or native-reactor selection feature. For example:
[dependencies]
ntex = { version = "4", features = ["tokio"] }
Optional features
opensslandrustlsenable the corresponding TLS integrations.compressenables HTTP content compression (gzip, deflate and zstd).cookieenables cookie support.wsenables WebSocket APIs and is enabled by default.
Related projects
| Project | Description |
|---|---|
| ntex-mqtt | Client and server framework for MQTT v5 and v3.1.1 |
| ntex-amqp | Client and server framework for AMQP 1.0 |
| ntex-grpc | Client and server framework for gRPC |
Documentation and community
- Framework guide
- Web framework documentation
- API documentation
- LLM guide (full text)
- Examples
- Release changes
- Migrating from ntex 3 to ntex 4
- Minimum supported Rust version: 1.97
License
This project is licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,039 starspublic-apis/public-apis
A collective list of free APIs
497,281 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
443,348 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,204 stars