Skip to content

WGPU 26.0.0 fails to compile due to naga dependency error #7915

@altunenes

Description

@altunenes

hello I tried to update wgpu (I have had 24.0.1). But seems WGPU 26.0.0 cannot be compiled due to a trait bound error in the naga 26.0.0 dependency.

    Checking aho-corasick v1.1.3
error[E0277]: the trait bound `std::string::String: WriteColor` is not satisfied
  --> /Users/enes/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/naga-26.0.0/src/error.rs:50:17
   |
50 |                 writer.inner_mut(),
   |                 ^^^^^^^^^^^^^^^^^^ the trait `WriteColor` is not implemented for `std::string::String`
   |
   = help: the following other types implement trait `WriteColor`:
             &'a mut T
             Ansi<W>
             Box<T>
             Buffer
             BufferedStandardStream
             NoColor<W>
             Sink
             StandardStream
           and 2 others
   = note: required for the cast from `&mut std::string::String` to `&mut dyn WriteColor`

error[E0277]: the trait bound `std::string::String: WriteColor` is not satisfied
   --> /Users/enes/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/naga-26.0.0/src/front/wgsl/error.rs:112:20
    |
112 |         term::emit(writer.inner_mut(), &config, &files, &self.diagnostic())
    |                    ^^^^^^^^^^^^^^^^^^ the trait `WriteColor` is not implemented for `std::string::String`
    |
    = help: the following other types implement trait `WriteColor`:
              &'a mut T
              Ansi<W>
              Box<T>
              Buffer
              BufferedStandardStream
              NoColor<W>
              Sink
              StandardStream
            and 2 others
    = note: required for the cast from `&mut std::string::String` to `&mut dyn WriteColor`

    Checking avif-serialize v0.8.5

env:

  • Rust: Latest stable
  • OS: macOS

FYI my cargo toml:

[dependencies]
wgpu = "=26.0.0"
winit = "0.30.11"
bytemuck = { version = "1.21", features = ["derive"] }
egui-wgpu = "=0.32.0"
egui = "=0.32.0"
egui-winit = "=0.32.0"
image = { version = "0.25.6", features = ["png", "hdr","exr"] }
env_logger = "0.11.6"
pollster = "0.4.0"
rfd = "0.15.1"
notify = "7.0.0"
gstreamer = { version = "0.23.7", optional = true }
gstreamer-video = { version = "0.23.6", optional = true }
gstreamer-app = { version = "0.23.5", optional = true }
gstreamer-pbutils = { version = "0.23.5", optional = true }
anyhow = "1.0.96"
log = "0.4.25"
fontdue = "0.9.0"

any ideas? thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions