mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Refactor Graphite dependency management (#1455)
* Refactor Graphite dependency management * Remove deprecated future executor * Code review nits * Remove unused dependencies * Update dependencies and make compile with all features * Replace use of future_executor with wasm-bindgen-futures --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
b7fe38cf31
commit
d2450b4d61
34 changed files with 1584 additions and 1209 deletions
|
@ -12,11 +12,10 @@ serde_json = "1.0"
|
|||
graph-craft = { version = "0.1.0", path = "../graph-craft", features = [
|
||||
"serde",
|
||||
] }
|
||||
graphene-core = { version = "0.1.0", path = "../gcore" }
|
||||
graphene-core = { workspace = true }
|
||||
gpu-executor = { version = "0.1.0", path = "../gpu-executor" }
|
||||
gpu-compiler-bin-wrapper = { version = "0.1.0", path = "../gpu-compiler/gpu-compiler-bin-wrapper" }
|
||||
tempfile = "3.3.0"
|
||||
anyhow = "1.0.68"
|
||||
anyhow = { workspace = true }
|
||||
reqwest = { version = "0.11", features = [
|
||||
"blocking",
|
||||
"serde_json",
|
||||
|
@ -24,4 +23,3 @@ reqwest = { version = "0.11", features = [
|
|||
"rustls",
|
||||
"rustls-tls",
|
||||
] }
|
||||
future-executor = { path = "../future-executor" }
|
||||
|
|
|
@ -16,10 +16,6 @@ pub async fn compile(networks: Vec<ProtoNetwork>, inputs: Vec<Type>, outputs: Ve
|
|||
})
|
||||
}
|
||||
|
||||
pub fn compile_sync(networks: Vec<ProtoNetwork>, inputs: Vec<Type>, outputs: Vec<Type>, io: ShaderIO) -> Result<Shader, reqwest::Error> {
|
||||
future_executor::block_on(compile(networks, inputs, outputs, io))
|
||||
}
|
||||
|
||||
// TODO: should we add the entry point as a field?
|
||||
/// A compiled shader with type annotations.
|
||||
pub struct Shader {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue