Fix the publish job (#7783)

This commit is contained in:
Andy Leiserson 2025-06-10 10:19:42 -07:00 committed by GitHub
parent 77d2b0017a
commit 54d30da44a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 6 deletions

View File

@ -63,7 +63,10 @@ console_log.workspace = true
fern.workspace = true
wasm-bindgen.workspace = true
wasm-bindgen-futures.workspace = true
wgpu = { path = "../../wgpu", default-features = false, features = ["wgsl"] }
wgpu = { path = "../../wgpu", default-features = false, features = [
"wgsl",
"std",
] }
# We need these features in the framework examples and tests
web-sys = { workspace = true, features = [
"Location",

View File

@ -1,8 +1,4 @@
use alloc::{
string::{String, ToString as _},
vec,
vec::Vec,
};
use alloc::{string::String, vec::Vec};
use core::{future::Future, marker::PhantomData};
use crate::*;
@ -98,6 +94,7 @@ impl From<crate::naga::error::ShaderError<crate::naga::front::wgsl::ParseError>>
for CompilationInfo
{
fn from(value: crate::naga::error::ShaderError<crate::naga::front::wgsl::ParseError>) -> Self {
use alloc::{string::ToString, vec};
CompilationInfo {
messages: vec![CompilationMessage {
message: value.to_string(),
@ -110,6 +107,7 @@ impl From<crate::naga::error::ShaderError<crate::naga::front::wgsl::ParseError>>
#[cfg(feature = "glsl")]
impl From<naga::error::ShaderError<naga::front::glsl::ParseErrors>> for CompilationInfo {
fn from(value: naga::error::ShaderError<naga::front::glsl::ParseErrors>) -> Self {
use alloc::string::ToString;
let messages = value
.inner
.errors
@ -127,6 +125,7 @@ impl From<naga::error::ShaderError<naga::front::glsl::ParseErrors>> for Compilat
#[cfg(feature = "spirv")]
impl From<naga::error::ShaderError<naga::front::spv::Error>> for CompilationInfo {
fn from(value: naga::error::ShaderError<naga::front::spv::Error>) -> Self {
use alloc::{string::ToString, vec};
CompilationInfo {
messages: vec![CompilationMessage {
message: value.to_string(),
@ -148,6 +147,7 @@ impl
crate::naga::WithSpan<crate::naga::valid::ValidationError>,
>,
) -> Self {
use alloc::{string::ToString, vec};
CompilationInfo {
messages: vec![CompilationMessage {
message: value.to_string(),