deepcl-common 0.7.0

Common crate for DeepCL
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 = "2024"
name = "deepcl-common"
version = "0.7.0"
authors = [
    "Dilshod Tadjibaev (@antimora)",
    "Nathaniel Simard (@nathanielsimard)",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common crate for DeepCL"
readme = "README.md"
keywords = [
    "gpu",
    "cuda",
    "wgpu",
]
categories = [
    "science",
    "mathematics",
    "algorithms",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kothagpt/deepcode/tree/main/crates/deepcl-common"
resolver = "2"

[features]
cache = [
    "std",
    "serde_json",
    "dirs",
    "sanitize-filename",
]
default = ["std"]
fp4 = ["float4"]
fp8 = ["float8"]
serde = ["serde_bytes"]
std = [
    "rand/std",
    "futures-lite",
    "rand/thread_rng",
    "serde_json?/std",
]

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

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

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.derive-new]
version = "0.7.0"
default-features = false

[dependencies.derive_more]
version = "0.99.18"
features = [
    "not",
    "add",
    "mul",
    "add_assign",
    "mul_assign",
    "display",
    "not",
    "add",
    "mul",
    "add_assign",
    "mul_assign",
    "display",
]

[dependencies.dirs]
version = "6.0.0"
optional = true

[dependencies.embassy-futures]
version = "0.1.1"

[dependencies.float4]
version = "0.1"
optional = true

[dependencies.float8]
version = "0.4"
optional = true
default-features = false

[dependencies.futures-lite]
version = "2.6.1"
features = ["std"]
optional = true
default-features = false

[dependencies.half]
version = "2.5"
features = [
    "alloc",
    "num-traits",
    "serde",
]
default-features = false

[dependencies.hashbrown]
version = "0.15.5"

[dependencies.log]
version = "0.4.28"
default-features = false

[dependencies.num-traits]
version = "0.2.19"
features = ["libm"]
default-features = false

[dependencies.rand]
version = "0.9.2"
features = ["std_rng"]
default-features = false

[dependencies.sanitize-filename]
version = "0.6"
optional = true

[dependencies.serde]
version = "1.0.228"
features = [
    "derive",
    "alloc",
]
default-features = false

[dependencies.serde_bytes]
version = "0.11.18"
features = [
    "alloc",
    "alloc",
]
optional = true
default-features = false

[dependencies.serde_json]
version = "1.0.145"
features = ["alloc"]
optional = true
default-features = false

[dependencies.spin]
version = "0.10.0"
features = [
    "mutex",
    "spin_mutex",
]

[dev-dependencies.bincode]
version = "2.0.1"
features = [
    "alloc",
    "serde",
]
default-features = false

[dev-dependencies.dashmap]
version = "6.1.0"

[build-dependencies.cfg_aliases]
version = "0.2.1"

[target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic]
version = "1.11.1"

[target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic-util]
version = "0.2.4"
features = ["alloc"]

[target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.spin]
version = "0.10.0"
features = [
    "mutex",
    "spin_mutex",
    "mutex",
    "spin_mutex",
    "portable_atomic",
]

[target.'cfg(not(target_os = "none"))'.dependencies.web-time]
version = "1.1.0"

[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen-futures]
version = "0.4.45"

[target.'cfg(target_has_atomic = "ptr")'.dependencies.spin]
version = "0.10.0"
features = [
    "mutex",
    "spin_mutex",
    "mutex",
    "spin_mutex",
]

[target.'cfg(target_os = "none")'.dependencies.embassy-time]
version = "0.4.0"
default-features = false