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
|
fern.workspace = true
|
||||||
wasm-bindgen.workspace = true
|
wasm-bindgen.workspace = true
|
||||||
wasm-bindgen-futures.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
|
# We need these features in the framework examples and tests
|
||||||
web-sys = { workspace = true, features = [
|
web-sys = { workspace = true, features = [
|
||||||
"Location",
|
"Location",
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
use alloc::{
|
use alloc::{string::String, vec::Vec};
|
||||||
string::{String, ToString as _},
|
|
||||||
vec,
|
|
||||||
vec::Vec,
|
|
||||||
};
|
|
||||||
use core::{future::Future, marker::PhantomData};
|
use core::{future::Future, marker::PhantomData};
|
||||||
|
|
||||||
use crate::*;
|
use crate::*;
|
||||||
@ -98,6 +94,7 @@ impl From<crate::naga::error::ShaderError<crate::naga::front::wgsl::ParseError>>
|
|||||||
for CompilationInfo
|
for CompilationInfo
|
||||||
{
|
{
|
||||||
fn from(value: crate::naga::error::ShaderError<crate::naga::front::wgsl::ParseError>) -> Self {
|
fn from(value: crate::naga::error::ShaderError<crate::naga::front::wgsl::ParseError>) -> Self {
|
||||||
|
use alloc::{string::ToString, vec};
|
||||||
CompilationInfo {
|
CompilationInfo {
|
||||||
messages: vec![CompilationMessage {
|
messages: vec![CompilationMessage {
|
||||||
message: value.to_string(),
|
message: value.to_string(),
|
||||||
@ -110,6 +107,7 @@ impl From<crate::naga::error::ShaderError<crate::naga::front::wgsl::ParseError>>
|
|||||||
#[cfg(feature = "glsl")]
|
#[cfg(feature = "glsl")]
|
||||||
impl From<naga::error::ShaderError<naga::front::glsl::ParseErrors>> for CompilationInfo {
|
impl From<naga::error::ShaderError<naga::front::glsl::ParseErrors>> for CompilationInfo {
|
||||||
fn from(value: naga::error::ShaderError<naga::front::glsl::ParseErrors>) -> Self {
|
fn from(value: naga::error::ShaderError<naga::front::glsl::ParseErrors>) -> Self {
|
||||||
|
use alloc::string::ToString;
|
||||||
let messages = value
|
let messages = value
|
||||||
.inner
|
.inner
|
||||||
.errors
|
.errors
|
||||||
@ -127,6 +125,7 @@ impl From<naga::error::ShaderError<naga::front::glsl::ParseErrors>> for Compilat
|
|||||||
#[cfg(feature = "spirv")]
|
#[cfg(feature = "spirv")]
|
||||||
impl From<naga::error::ShaderError<naga::front::spv::Error>> for CompilationInfo {
|
impl From<naga::error::ShaderError<naga::front::spv::Error>> for CompilationInfo {
|
||||||
fn from(value: naga::error::ShaderError<naga::front::spv::Error>) -> Self {
|
fn from(value: naga::error::ShaderError<naga::front::spv::Error>) -> Self {
|
||||||
|
use alloc::{string::ToString, vec};
|
||||||
CompilationInfo {
|
CompilationInfo {
|
||||||
messages: vec![CompilationMessage {
|
messages: vec![CompilationMessage {
|
||||||
message: value.to_string(),
|
message: value.to_string(),
|
||||||
@ -148,6 +147,7 @@ impl
|
|||||||
crate::naga::WithSpan<crate::naga::valid::ValidationError>,
|
crate::naga::WithSpan<crate::naga::valid::ValidationError>,
|
||||||
>,
|
>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
|
use alloc::{string::ToString, vec};
|
||||||
CompilationInfo {
|
CompilationInfo {
|
||||||
messages: vec![CompilationMessage {
|
messages: vec![CompilationMessage {
|
||||||
message: value.to_string(),
|
message: value.to_string(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user