Upgrade to the Rust 2024 edition (#2367)

* Update to rust 2024 edition

* Fixes

* Clean up imports

* Cargo fmt again

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Dennis Kobert 2025-03-13 01:29:12 +01:00 committed by GitHub
parent 927d7dd9b2
commit beb1c6ae64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
253 changed files with 980 additions and 1371 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "gpu-compiler"
version = "0.1.0"
edition = "2021"
edition = "2024"
license = "MIT OR Apache-2.0"
[features]

View file

@ -1,7 +1,7 @@
[package]
name = "gpu-compiler-bin-wrapper"
version = "0.1.0"
edition = "2021"
edition = "2024"
license = "MIT OR Apache-2.0"
[features]

View file

@ -1,7 +1,7 @@
use graph_craft::{proto::ProtoNetwork, Type};
use wgpu_executor::ShaderIO;
use graph_craft::Type;
use graph_craft::proto::ProtoNetwork;
use std::io::Write;
use wgpu_executor::ShaderIO;
pub fn compile_spirv(request: &CompileRequest, compile_dir: Option<&str>, manifest_path: &str) -> anyhow::Result<Vec<u8>> {
let serialized_graph = serde_json::to_string(&graph_craft::graphene_compiler::CompileRequest {

View file

@ -1,7 +1,6 @@
use gpu_executor::{GPUConstant, ShaderIO, ShaderInput, SpirVCompiler};
use graph_craft::proto::*;
use graphene_core::Cow;
use std::path::{Path, PathBuf};
use tera::Context;
@ -242,7 +241,7 @@ mod test {
name = "project-node"
version = "0.1.0"
authors = ["Example <john.smith@example.com>", "smith.john@example.com", ]
edition = "2021"
edition = "2024"
license = "MIT OR Apache-2.0"
publish = false

View file

@ -2,7 +2,7 @@
authors = [{% for author in authors %}"{{author}}", {% endfor %}]
name = "{{name}}-node"
version = "0.1.0"
edition = "2021"
edition = "2024"
license = "MIT OR Apache-2.0"
publish = false