mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Fix the publish job (#7783)
This commit is contained in:
parent
77d2b0017a
commit
54d30da44a
@ -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",
|
||||
|
||||
@ -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(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user