# 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"
name = "sleepfm"
version = "0.0.1"
authors = ["Nataliya Kosmyna"]
build = false
exclude = [
    "data/",
    "scripts/",
    "tests/vectors/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SleepFM Foundation Model — inference in Rust with Burn ML"
readme = "README.md"
keywords = [
    "sleep",
    "psg",
    "foundational",
    "GPU",
    "CPU",
]
categories = [
    "science",
    "mathematics",
]
license = "GPL-3.0-only"
repository = "https://github.com/nataliyakosmyna/sleepfm"

[features]
blas-accelerate = ["burn-ndarray?/blas-accelerate"]
default = ["ndarray"]
metal = [
    "wgpu",
    "burn-wgpu/metal",
]
ndarray = [
    "dep:burn-ndarray",
    "burn/ndarray",
]
openblas-system = ["burn-ndarray?/blas-openblas-system"]
vulkan = [
    "wgpu",
    "burn-wgpu/vulkan",
]
wgpu = ["burn/wgpu"]

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

[[bin]]
name = "gen_sample_psg"
path = "src/bin/gen_sample_psg.rs"

[[bin]]
name = "infer"
path = "src/bin/infer.rs"

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

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

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

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.burn]
version = "0.20.1"
features = [
    "std",
    "simd",
]
default-features = false

[dependencies.burn-ndarray]
version = "0.20.1"
features = [
    "std",
    "simd",
    "multi-threads",
]
optional = true
default-features = false

[dependencies.burn-wgpu]
version = "0.20.1"
optional = true
default-features = true

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.half]
version = "2"
features = ["bytemuck"]

[dependencies.safetensors]
version = "0.7"

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

[dependencies.serde_json]
version = "1"

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
