From 87a2d23555f7ee782b3aae52f11c6bb321344961 Mon Sep 17 00:00:00 2001 From: Rafal Rudnicki Date: Wed, 25 Nov 2026 10:42:03 +0000 Subject: [PATCH 1/2] Update allocators to use the stabilized trunk version --- .github/workflows/crates-io.yml | 14 +++++++++++++- Cargo.lock | 7 ------- Cargo.toml | 2 +- sycl/sycl-rs/Cargo.toml | 1 - sycl/sycl-rs/src/usm.rs | 7 +++++-- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/crates-io.yml b/.github/workflows/crates-io.yml index 490b2cf..a755cc6 100644 --- a/.github/workflows/crates-io.yml +++ b/.github/workflows/crates-io.yml @@ -43,10 +43,22 @@ jobs: - name: Create vendored source from current checkout if: matrix.install == 'vendored' + env: + # Runner's _work files fail git's ownership check; trust only the snapshot repo. + GIT_CONFIG_COUNT: "1" + GIT_CONFIG_KEY_0: safe.directory + GIT_CONFIG_VALUE_0: ${{ runner.temp }}/sycl-rs-src run: | + # The runner's reused checkout can reference missing objects, so give cargo a clean repo. + src="$RUNNER_TEMP/sycl-rs-src" + rm -rf "$src" && mkdir -p "$src" + tar -C "$GITHUB_WORKSPACE" --exclude=./.git --exclude=./target -cf - . | tar -x --no-same-owner -C "$src" + git -C "$src" init -q + git -C "$src" add -A + git -C "$src" -c user.name=ci -c user.email=ci@localhost commit -q -m snapshot cargo init --bin "$RUNNER_TEMP/vendor-seed" cd "$RUNNER_TEMP/vendor-seed" - cargo add sycl-rs --git "file://$GITHUB_WORKSPACE" + cargo add sycl-rs --git "file://$src" cargo vendor --versioned-dirs "$RUNNER_TEMP/vendor" > "$RUNNER_TEMP/vendor-config.toml" - name: Query latest version on crates.io diff --git a/Cargo.lock b/Cargo.lock index 1e8acb6..1d16992 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11,12 +11,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "allocator-api2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c880a97d28a3681c0267bd29cff89621202715b065127cd445fa0f0fe0aa2880" - [[package]] name = "anes" version = "0.1.6" @@ -704,7 +698,6 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" name = "sycl-rs" version = "0.1.0" dependencies = [ - "allocator-api2", "bytemuck", "criterion", "cxx", diff --git a/Cargo.toml b/Cargo.toml index b268118..2cfa3fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ members = ["oneapi-rs", "sycl/sycl-rs", "sycl/sycl-rs-derive", "sycl/sycl-rs-sys [workspace.package] edition = "2024" -rust-version = "1.85" +rust-version = "1.100" license = "MIT OR Apache-2.0" repository = "https://github.com/oneapi-src/oneapi-rs" homepage = "https://github.com/oneapi-src/oneapi-rs" diff --git a/sycl/sycl-rs/Cargo.toml b/sycl/sycl-rs/Cargo.toml index bf7e89f..24cac1a 100644 --- a/sycl/sycl-rs/Cargo.toml +++ b/sycl/sycl-rs/Cargo.toml @@ -20,7 +20,6 @@ repository.workspace = true homepage.workspace = true [dependencies] -allocator-api2 = "0.4.0" bytemuck = "1.25.2" cxx = "1.0.198" sycl-rs-sys = { version = "0.1.0", path = "../sycl-rs-sys" } diff --git a/sycl/sycl-rs/src/usm.rs b/sycl/sycl-rs/src/usm.rs index 04f1e69..0a11441 100644 --- a/sycl/sycl-rs/src/usm.rs +++ b/sycl/sycl-rs/src/usm.rs @@ -8,10 +8,13 @@ use crate::queue::Queue; -use allocator_api2::alloc::{AllocError, Allocator}; use sycl_rs_sys::usm::ffi; -use std::{alloc::Layout, marker::PhantomData, ptr::NonNull}; +use std::{ + alloc::{AllocError, Allocator, Layout}, + marker::PhantomData, + ptr::NonNull, +}; type CxxResult = cxx::core::result::Result; From 74d70162eb41db118376b831c66510db3874b11a Mon Sep 17 00:00:00 2001 From: Rafal Rudnicki Date: Thu, 26 Nov 2026 11:13:10 +0000 Subject: [PATCH 2/2] x --- .github/workflows/crates-io.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/crates-io.yml b/.github/workflows/crates-io.yml index a755cc6..490b2cf 100644 --- a/.github/workflows/crates-io.yml +++ b/.github/workflows/crates-io.yml @@ -43,22 +43,10 @@ jobs: - name: Create vendored source from current checkout if: matrix.install == 'vendored' - env: - # Runner's _work files fail git's ownership check; trust only the snapshot repo. - GIT_CONFIG_COUNT: "1" - GIT_CONFIG_KEY_0: safe.directory - GIT_CONFIG_VALUE_0: ${{ runner.temp }}/sycl-rs-src run: | - # The runner's reused checkout can reference missing objects, so give cargo a clean repo. - src="$RUNNER_TEMP/sycl-rs-src" - rm -rf "$src" && mkdir -p "$src" - tar -C "$GITHUB_WORKSPACE" --exclude=./.git --exclude=./target -cf - . | tar -x --no-same-owner -C "$src" - git -C "$src" init -q - git -C "$src" add -A - git -C "$src" -c user.name=ci -c user.email=ci@localhost commit -q -m snapshot cargo init --bin "$RUNNER_TEMP/vendor-seed" cd "$RUNNER_TEMP/vendor-seed" - cargo add sycl-rs --git "file://$src" + cargo add sycl-rs --git "file://$GITHUB_WORKSPACE" cargo vendor --versioned-dirs "$RUNNER_TEMP/vendor" > "$RUNNER_TEMP/vendor-config.toml" - name: Query latest version on crates.io