Add reqwest to dev deps

This commit is contained in:
Daniil Gentili 2023-10-21 22:08:21 +02:00
parent 596768c7df
commit e4a450f03a
3 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ php-tokio = "0.1.4"
[dev-dependencies]
skeptic = "0.13"
reqwest = "0.11.22"
[build-dependencies]
anyhow = "1"

View File

@ -24,6 +24,7 @@
- [Class Object](./types/class_object.md)
- [Closure](./types/closure.md)
- [Functions & methods](./types/functions.md)
- [Async futures](./macros/impl.md#async)
- [Macros](./macros/index.md)
- [Module](./macros/module.md)
- [Module Startup Function](./macros/module_startup.md)

View File

@ -213,6 +213,8 @@ pub extern "C" fn request_shutdown(_type: i32, _module_number: i32) -> i32 {
pub fn get_module(module: ModuleBuilder) -> ModuleBuilder {
module.request_shutdown_function(request_shutdown)
}
# fn main() {}
```
Here's the async PHP code we use to interact with the Rust class we just exposed.