scry-gpu 0.1.0

Lightweight GPU compute — dispatch shaders without the graphics baggage
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.85.0"
name = "scry-gpu"
version = "0.1.0"
authors = ["esoc"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight GPU compute — dispatch shaders without the graphics baggage"
documentation = "https://docs.rs/scry-gpu"
readme = "README.md"
keywords = [
    "gpu",
    "compute",
    "vulkan",
    "gpgpu",
]
categories = [
    "graphics",
    "science",
    "concurrency",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Slush97/esolearn/tree/main/crates/scry-gpu"

[features]
bench-wgpu = ["dep:wgpu"]
cuda = ["dep:cudarc"]
default = ["vulkan"]
vulkan = [
    "dep:ash",
    "dep:gpu-allocator",
]

[lib]
name = "scry_gpu"
path = "src/lib.rs"

[[example]]
name = "bench_compute"
path = "examples/bench_compute.rs"

[[example]]
name = "bench_cuda_compare"
path = "examples/bench_cuda_compare.rs"
required-features = [
    "cuda",
    "vulkan",
]

[[example]]
name = "bench_kernel"
path = "examples/bench_kernel.rs"

[[example]]
name = "bench_wgpu_compare"
path = "examples/bench_wgpu_compare.rs"
required-features = ["bench-wgpu"]

[[test]]
name = "compute"
path = "tests/compute.rs"

[[test]]
name = "cuda_compute"
path = "tests/cuda_compute.rs"

[dependencies.ash]
version = "0.38"
features = [
    "linked",
    "debug",
]
optional = true
default-features = false

[dependencies.bytemuck]
version = "1"
features = ["derive"]

[dependencies.cudarc]
version = "0.19"
features = [
    "cublas",
    "nvrtc",
    "cuda-version-from-build-system",
]
optional = true

[dependencies.gpu-allocator]
version = "0.27"
features = ["vulkan"]
optional = true
default-features = false

[dependencies.naga]
version = "24"
features = [
    "wgsl-in",
    "spv-out",
]

[dependencies.thiserror]
version = "2"

[dependencies.wgpu]
version = "24"
optional = true

[dev-dependencies.pollster]
version = "0.4"

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
redundant_pub_crate = "allow"
return_self_not_must_use = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unreachable_pub = "allow"