[package]
edition = "2021"
rust-version = "1.76"
name = "apple-mpsgraph"
version = "0.2.1"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
"src/**/*",
"swift-bridge/Package.swift",
"swift-bridge/Sources/**/*",
"examples/**/*",
"tests/**/*",
"COVERAGE.md",
"build.rs",
"Cargo.toml",
"README.md",
"LICENSE-*",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's MetalPerformanceShadersGraph framework on macOS, backed by a Swift bridge"
homepage = "https://github.com/doom-fish/mpsgraph-rs"
readme = "README.md"
keywords = [
"mpsgraph",
"metal",
"graph",
"ml",
"apple",
]
categories = [
"api-bindings",
"os::macos-apis",
"graphics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/mpsgraph-rs"
[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[badges.maintenance]
status = "actively-developed"
[lib]
name = "apple_mpsgraph"
crate-type = ["lib"]
path = "src/lib.rs"
[[example]]
name = "01_add_relu"
path = "examples/01_add_relu.rs"
[[example]]
name = "02_compile_matmul"
path = "examples/02_compile_matmul.rs"
[[example]]
name = "03_arithmetic_topk"
path = "examples/03_arithmetic_topk.rs"
[[example]]
name = "04_descriptor_compile"
path = "examples/04_descriptor_compile.rs"
[[example]]
name = "05_concat_split"
path = "examples/05_concat_split.rs"
[[example]]
name = "06_control_flow_call"
path = "examples/06_control_flow_call.rs"
[[example]]
name = "07_gather_random_rnn"
path = "examples/07_gather_random_rnn.rs"
[[test]]
name = "advanced_ops_tests"
path = "tests/advanced_ops_tests.rs"
[[test]]
name = "metadata_tests"
path = "tests/metadata_tests.rs"
[[test]]
name = "ops_tests"
path = "tests/ops_tests.rs"
[dependencies.apple-metal]
version = "0.5.1"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
[profile.release]
debug = 2
strip = "none"