rust-mlp 0.1.0

Small, from-scratch MLP (dense feed-forward) for Rust: predictable, allocation-free hot path, batched training, and optional fast GEMM backend.
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.85"
name = "rust-mlp"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Small, from-scratch MLP (dense feed-forward) for Rust: predictable, allocation-free hot path, batched training, and optional fast GEMM backend."
documentation = "https://docs.rs/rust-mlp"
readme = "README.md"
keywords = [
    "ml",
    "neural-network",
    "mlp",
    "deep-learning",
    "inference",
]
categories = [
    "science",
    "mathematics",
]
license = "MIT"
repository = "https://github.com/marcoshernanz/rust-mlp"

[package.metadata.docs.rs]
all-features = true

[features]
default = []
matrixmultiply = ["dep:matrixmultiply"]
serde = [
    "dep:serde",
    "dep:serde_json",
]

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

[[bin]]
name = "rust-mlp"
path = "src/main.rs"

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

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

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

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

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

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

[dependencies.matrixmultiply]
version = "0.3"
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dev-dependencies.criterion]
version = "0.5"