# 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.56.0" name = "sunscreen_math" version = "0.8.1" authors = ["Sunscreen"] description = "This crate contains GPU implementations that support the Sunscreen compiler." homepage = "https://sunscreen.tech" documentation = "https://docs.sunscreen.tech" readme = "crates-io.md" keywords = [ "FHE", "BFV", "lattice", "cryptography", ] categories = ["cryptography"] license = "AGPL-3.0-only" repository = "https://github.com/Sunscreen-tech/Sunscreen" [[bench]] name = "gpu" harness = false [[bench]] name = "cpu" harness = false [dependencies.bytemuck] version = "1.13.0" optional = true [dependencies.crypto-bigint] version = "0.5.2" [dependencies.curve25519-dalek] version = "0.8.1" features = [ "serde", "u64_backend", "alloc", ] default-features = false package = "sunscreen_curve25519" [dependencies.cust] version = "0.3.2" optional = true [dependencies.futures] version = "0.3.26" optional = true [dependencies.lazy_static] version = "1.4.0" [dependencies.metal] version = "0.26.0" optional = true [dependencies.num] version = "0.4.1" [dependencies.ocl] version = "0.19.4" optional = true [dependencies.paste] version = "1.0.14" [dependencies.rand] version = "0.8.5" [dependencies.rayon] version = "1.6.1" [dependencies.sunscreen_math_macros] version = "0.8.1" [dependencies.thiserror] version = "1.0.44" [dependencies.tokio] version = "1.25.0" features = ["rt"] optional = true [dependencies.wgpu] version = "0.17.0" optional = true [dev-dependencies.bytemuck] version = "1.13.0" [dev-dependencies.criterion] version = "0.5.1" default-features = false [build-dependencies.find_cuda_helper] version = "0.2.0" optional = true [build-dependencies.naga] version = "0.13.0" features = ["wgsl-in"] optional = true [build-dependencies.ocl] version = "0.19.4" optional = true [build-dependencies.wgpu-core] version = "0.17.0" features = [ "vulkan", "wgsl", ] optional = true [features] cuda = [ "dep:find_cuda_helper", "dep:cust", "gpu", ] default = [] gpu = [] metal = [ "dep:metal", "gpu", ] nightly-features = [] opencl = [ "dep:ocl", "gpu", ] pina = [] webgpu = [ "dep:wgpu", "dep:tokio", "dep:futures", "dep:naga", "dep:wgpu-core", "dep:bytemuck", "gpu", ]