fastnn 0.3.3

A robust deep learning library in Rust with CUDA kernels
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"
rust-version = "1.87"
name = "fastnn"
version = "0.3.3"
build = "build.rs"
exclude = [
    "docs/",
    ".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A robust deep learning library in Rust with CUDA kernels"
readme = "README.md"
keywords = [
    "deep-learning",
    "neural-network",
    "cuda",
    "gpu",
    "machine-learning",
]
categories = [
    "science",
    "mathematics",
]
license = "MIT"
repository = "https://github.com/CanReader/FastNN"

[features]
cuda = []
default = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "tensor_ops"
path = "benches/tensor_ops.rs"
harness = false

[dependencies.flate2]
version = "1.0"

[dependencies.libm]
version = "0.2"

[dependencies.rand]
version = "0.10"

[dependencies.rand_distr]
version = "0.6"

[dependencies.rayon]
version = "1.8"

[dependencies.ureq]
version = "3.4"

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[build-dependencies.cc]
version = "1.0"
features = ["parallel"]

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