Adapt the cutover to the reviewed core-types API

This commit is contained in:
Dennis Kobert
2026-08-04 13:15:26 +02:00
parent 76ec799496
commit fa29ddf357
24 changed files with 170 additions and 145 deletions
@@ -1,6 +1,5 @@
use criterion::BenchmarkGroup;
use criterion::measurement::Measurement;
use futures::executor::block_on;
use graph_craft::proto::ProtoNetwork;
use graph_craft::util::{DEMO_ART, compile, load_from_name};
use graphene_std::application_io::EditorApi;
@@ -14,7 +13,7 @@ pub fn setup_network(name: &str) -> (DynamicExecutor, ProtoNetwork) {
let preprocessor = preprocessor::Preprocessor::new();
preprocessor.preprocess(&mut network, &|_| None).unwrap();
let proto_network = compile(network);
let executor = block_on(DynamicExecutor::new(proto_network.clone())).unwrap();
let executor = DynamicExecutor::new(proto_network.clone()).unwrap();
(executor, proto_network)
}