Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1422,30 +1422,6 @@ enum Response {
}
```

#### Handler Dispatch Generation

For each handler, the macro generates dispatch code:

**Async Handler Example**:

```rust
Request::FetchData(id) => {
let id_captured = id; // Capture parameter before moving
let state_ptr: *mut MyState = state;

hyper! {
let result = unsafe { (*state_ptr).fetch_data(id_captured).await };

// For remote/local handlers
let resp = Response::new()
.body(serde_json::to_vec(&result).unwrap());
resp.send().unwrap();
}
}
```

The `hyper!` macro lets our custom runtime execute this async code.

#### WIT Bindings Generation

We parse the `wit_world` in our `/api` folder with:
Expand Down