mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-12 18:25:00 +00:00

* Implement experimental Context struct and traits * Add Ctx super trait * Checkpoint * Return Any instead of DynAny * Fix send implementation for inputs with lifetimes * Port more nodes * Uncomment nodes * Port more nodes * Port vector nodes * Partial progress (the stuff I'm more sure about) * Partial progress (the stuff that's not compiling and I'm not sure about) * Fix more errors * First pass of fixing errors introduced by rebase * Port wasm application io * Fix brush node types * Add type annotation * Fix warnings and wasm compilation * Change types for Document Node definitions * Improve debugging for footprint not found errors * Forward context in append artboard node * Fix thumbnails * Fix loading most demo artwork * Wrap output type of all nodes in future * Encode futures as part of the type * Fix document node definitions for future types * Remove Clippy warnings * Fix more things * Fix opening demo art with manual composition upgrading * Set correct type for manual composition * Fix brush * Fix tests * Update docs for deps * Fix up some node signature issues * Code review --------- Co-authored-by: Keavon Chambers <keavon@keavon.com> Co-authored-by: hypercube <0hypercube@gmail.com>
11 lines
368 B
Rust
11 lines
368 B
Rust
use graphene_core::Ctx;
|
|
|
|
#[node_macro::node(category("Network"))]
|
|
async fn get_request(_: impl Ctx, url: String) -> reqwest::Response {
|
|
reqwest::get(url).await.unwrap()
|
|
}
|
|
|
|
#[node_macro::node(category("Network"))]
|
|
async fn post_request(_: impl Ctx, url: String, body: String) -> reqwest::Response {
|
|
reqwest::Client::new().post(url).body(body).send().await.unwrap()
|
|
}
|