Skip to content

Commit 4ce9ed9

Browse files
committed
Release v0.3.0
1 parent 8d31269 commit 4ce9ed9

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
sweep-cache: true
9797

9898
- name: Run clippy lints
99-
run: SLANG_DIR=$SLANG_DIR cargo clippy --locked --workspace --all-targets -- --deny warnings
99+
run: SLANG_DIR=$SLANG_DIR cargo clippy --locked --workspace --all-targets --features runtime -- --deny warnings
100100

101101
# Check documentation.
102102
doc:
@@ -128,7 +128,7 @@ jobs:
128128
sweep-cache: true
129129

130130
- name: Check documentation
131-
run: SLANG_DIR=$SLANG_DIR cargo doc --locked --workspace --document-private-items --no-deps
131+
run: SLANG_DIR=$SLANG_DIR cargo doc --locked --workspace --document-private-items --no-deps --features runtime
132132
# Testing.
133133
test:
134134
needs: setup-slang # Depends on setup-slang
@@ -159,4 +159,4 @@ jobs:
159159
sweep-cache: true
160160
- name: Run Cargo Tests
161161
run: |
162-
SLANG_DIR=$SLANG_DIR cargo test --verbose
162+
SLANG_DIR=$SLANG_DIR cargo test --verbose --features runtime

crates/minislang/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "minislang"
33
authors = ["Sébastien Crozet <[email protected]>"]
44
description = "Small wrapper around the shader-slang binding"
55
repository = "https://github.com/dimforge/slang-hal"
6-
version = "0.2.0"
6+
version = "0.3.0"
77
edition = "2024"
88
license = "MIT OR Apache-2.0"
99

crates/slang-hal-build/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name = "slang-hal-build"
33
authors = ["Sébastien Crozet <[email protected]>"]
44
description = "Build script utilities for compile-time Slang shader compilation"
55
repository = "https://github.com/dimforge/slang-hal"
6-
version = "0.2.0"
6+
version = "0.3.0"
77
edition = "2024"
88
license = "MIT OR Apache-2.0"
99

1010
[dependencies]
11-
minislang = { version = "0.2", path = "../minislang" }
11+
minislang = { version = "0.3", path = "../minislang" }
1212
include_dir = "0.7"
1313
walkdir = "2"

crates/slang-hal-derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "slang-hal-derive"
33
authors = ["Sébastien Crozet <[email protected]>"]
44
description = "Proc-macro for Slang shaders."
55
repository = "https://github.com/dimforge/slang-hal"
6-
version = "0.2.0"
6+
version = "0.3.0"
77
edition = "2024"
88
license = "MIT OR Apache-2.0"
99

crates/slang-hal-derive/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ extern crate proc_macro;
55
use darling::FromDeriveInput;
66
use proc_macro::TokenStream;
77
use quote::{ToTokens, quote};
8-
use syn::{Data, DataStruct};
9-
use syn::LitStr;
8+
use syn::{Data, DataStruct, LitStr};
109

1110
#[derive(FromDeriveInput, Clone)]
1211
#[darling(attributes(shader))]

crates/slang-hal/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "slang-hal"
33
authors = ["Sébastien Crozet <[email protected]>"]
44
description = "Abstractions for running Slang shaders with Rust."
55
repository = "https://github.com/dimforge/slang-hal"
6-
version = "0.2.0"
6+
version = "0.3.0"
77
edition = "2024"
88
license = "MIT OR Apache-2.0"
99

@@ -32,8 +32,8 @@ futures = { workspace = true }
3232
async-trait = "0.1"
3333
include_dir = "0.7"
3434

35-
minislang = { version = "0.2", path = "../minislang", optional = true }
36-
slang-hal-derive = { version = "0.2", path = "../slang-hal-derive", optional = true }
35+
minislang = { version = "0.3", path = "../minislang", optional = true }
36+
slang-hal-derive = { version = "0.3", path = "../slang-hal-derive", optional = true }
3737
dashmap = "5"
3838
regex = "1"
3939
bitflags = "2"
@@ -66,5 +66,5 @@ slang-hal = { path = ".", features = ["derive"], default-features = false }
6666

6767
[build-dependencies]
6868
dircpy = "0.3"
69-
slang-hal-build = { version = "0.2", path = "../slang-hal-build", optional = true }
69+
slang-hal-build = { version = "0.3", path = "../slang-hal-build", optional = true }
7070
include_dir = { version = "0.7", optional = true }

crates/slang-hal/src/backend/webgpu.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::manual_async_fn)]
2+
13
use crate::ShaderArgs;
24
use crate::backend::{
35
Backend, BufferUsages, DeviceValue, Dispatch, DispatchGrid, EncaseType, Encoder, MaybeSendSync,
@@ -7,8 +9,6 @@ use crate::shader::ShaderArgsError;
79
use async_channel::RecvError;
810
use bytemuck::{AnyBitPattern, NoUninit};
911
use encase::{ShaderType, StorageBuffer};
10-
#[cfg(feature = "runtime")]
11-
use minislang::shader_slang;
1212
use regex::Regex;
1313
use smallvec::SmallVec;
1414
use std::borrow::Cow;
@@ -362,7 +362,7 @@ impl Backend for WebGpu {
362362
self.submit(encoder)?;
363363

364364
// Read the buffer.
365-
Ok(self.read_buffer(&staging, out).await?)
365+
self.read_buffer(&staging, out).await
366366
}
367367
}
368368
}

0 commit comments

Comments
 (0)