rocket 0.5.1

Web framework with a focus on usability, security, extensibility, and speed.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use rocket::local::blocking::Client;

struct SpawnBlockingOnDrop;

impl Drop for SpawnBlockingOnDrop {
    fn drop(&mut self) {
        rocket::tokio::task::spawn_blocking(|| ());
    }
}

#[test]
fn test_access_runtime_in_state_drop() {
    Client::debug(rocket::build().manage(SpawnBlockingOnDrop)).unwrap();
}