From 467e96c03228495b04e92e566c50f8af69753a55 Mon Sep 17 00:00:00 2001 From: Rafal Rudnicki Date: Thu, 6 Aug 2026 13:36:42 +0000 Subject: [PATCH] Add package metadata to toml files --- Cargo.toml | 9 ++++++++- oneapi-rs-derive/Cargo.toml | 10 +++++++++- oneapi-rs-sys/Cargo.toml | 11 +++++++++-- oneapi-rs/Cargo.toml | 22 ++++++++++++++++++---- 4 files changed, 44 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b4bc193..61276a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,10 @@ [workspace] resolver = "3" -members = ["oneapi-rs", "oneapi-rs-derive","oneapi-rs-sys"] +members = ["oneapi-rs", "oneapi-rs-derive", "oneapi-rs-sys"] + +[workspace.package] +edition = "2024" +rust-version = "1.85" +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/oneapi-rs-derive/Cargo.toml b/oneapi-rs-derive/Cargo.toml index ff171cf..6e83a09 100644 --- a/oneapi-rs-derive/Cargo.toml +++ b/oneapi-rs-derive/Cargo.toml @@ -1,7 +1,15 @@ [package] name = "oneapi-rs-derive" version = "0.1.0" -edition = "2024" +description = "Internal procedural macros for oneapi-rs" +publish = ["crates-io"] + +# Inherit settings from the root workspace +edition.workspace = true +rust-version.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true [lib] proc-macro = true diff --git a/oneapi-rs-sys/Cargo.toml b/oneapi-rs-sys/Cargo.toml index 09d5c00..878d3be 100644 --- a/oneapi-rs-sys/Cargo.toml +++ b/oneapi-rs-sys/Cargo.toml @@ -1,8 +1,15 @@ [package] name = "oneapi-rs-sys" version = "0.1.0" -edition = "2024" -license = "MIT OR Apache-2.0" +description = "Internal SYCL FFI implementation for oneapi-rs" +publish = ["crates-io"] + +# Inherit settings from the root workspace +edition.workspace = true +rust-version.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true [dependencies] cxx = "1.0.194" diff --git a/oneapi-rs/Cargo.toml b/oneapi-rs/Cargo.toml index ed5df30..acbb2d1 100644 --- a/oneapi-rs/Cargo.toml +++ b/oneapi-rs/Cargo.toml @@ -1,15 +1,29 @@ [package] name = "oneapi-rs" version = "0.1.0" -edition = "2024" -license = "MIT OR Apache-2.0" +description = "Rust bindings for SYCL" +documentation = "https://docs.rs/oneapi-rs" +keywords = ["oneapi", "sycl", "gpu", "oneapi"] +categories = [ + "api-bindings", + "hardware-support", + "memory-management", + "science"] +publish = ["crates-io"] + +# Inherit settings from the root workspace +edition.workspace = true +rust-version.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true [dependencies] allocator-api2 = "0.4.0" bytemuck = "1.25.1" cxx = "1.0.194" -oneapi-rs-sys = { path = "../oneapi-rs-sys" } -oneapi-rs-derive = { path = "../oneapi-rs-derive" } +oneapi-rs-sys = { version = "0.1.0", path = "../oneapi-rs-sys" } +oneapi-rs-derive = { version = "0.1.0", path = "../oneapi-rs-derive" } pin-project = "1.1.13" thiserror = "2.0.18"