Registry / web-framework / dropshot

dropshot

JSON →
library0.17.0rscratesunverified

Expose REST APIs from a Rust program with async HTTP server and OpenAPI support.

# Cargo.toml [dependencies] dropshot = "0.17.0"
INSTALL
IMPORT
SIG · DROPSHOT
D
dropshot
web-frameworkrustv0.17.0
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.

HttpServer
use dropshot::HttpServer;

Create a basic Dropshot HTTP server

use dropshot::{HttpServer, ConfigDropshot, ConfigTls}; #[tokio::main] async fn main() { let config = ConfigDropshot::default(); let server = HttpServer::new(config, (), vec![]); println!("Server created"); }
Debug
Known issues
gotchaRequires Tokio runtime; not compatible with other async runtimes
fix
Use #[tokio::main] or manually create a Tokio runtime
affects: >=0.1.0
Upgrade
Version history
0.17.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
dropshot — cargo add dropshot · libregistry