mnn 0.2.0

Rust bindings for MNN, a lightweight deep neural network inference engine.
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 = "mnn"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust bindings for MNN, a lightweight deep neural network inference engine."
documentation = "https://docs.rs/mnn"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/aftershootco/mnn-rs"

[features]
coreml = ["mnn-sys/coreml"]
crt_static = ["mnn-sys/crt_static"]
default = ["mnn-threadpool"]
metal = ["mnn-sys/metal"]
mnn-threadpool = ["mnn-sys/mnn-threadpool"]
opencl = ["mnn-sys/opencl"]
opengl = ["mnn-sys/opengl"]
openmp = ["mnn-sys/openmp"]
profile = ["tracing"]
serde = ["dep:serde"]
tracing = ["dep:tracing"]
vulkan = ["mnn-sys/vulkan"]

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

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

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

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

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

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

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

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

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

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

[dependencies.dunce]
version = "1.0.5"

[dependencies.error-stack]
version = "0.5"

[dependencies.libc]
version = "0.2"

[dependencies.mnn-sys]
version = "0.1"
features = []

[dependencies.oneshot]
version = "0.1"

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

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1.40"
optional = true

[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.bytemuck]
version = "1.17"

[dev-dependencies.clap]
version = "4.5"
features = ["derive"]

[dev-dependencies.divan]
version = "0.1.14"

[dev-dependencies.tracing]
version = "0.1.40"

[dev-dependencies.tracing-subscriber]
version = "0.3.19"

[dev-dependencies.tracing-test]
version = "0.2.5"
features = ["no-env-filter"]

[profile.rwd]
debug = 2
inherits = "release"