Registry / web-framework / ntex
library3.9.3rscratesunverified

Framework for composable network services.

# Cargo.toml [dependencies] ntex = "3.9.3"
INSTALL
IMPORT
SIG · NTEX
N
ntex
web-frameworkrustv3.9.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

App
use ntex::web::App;

Create a simple HTTP server with ntex.

use ntex::web::{App, HttpRequest, HttpResponse}; async fn index(_req: HttpRequest) -> HttpResponse { HttpResponse::Ok().body("Hello") } #[ntex::main] async fn main() -> std::io::Result<()> { App::new() .route("/", ntex::web::get().to(index)) .bind("127.0.0.1:8080")? .run() .await }
Debug
Known issues
gotchaRequires Tokio runtime; ntex uses Tokio under the hood.
fix
Ensure Tokio is in dependencies and use #[ntex::main] or tokio::main.
affects: >=3.0.0
Upgrade
Version history
3.9.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ntex — cargo add ntex · libregistry