# 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 = "rlx-sam"
version = "0.2.11"
authors = [
    "Eugene Hauptmann",
    "Nataliya Kosmyna",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Segment Anything Model (SAM v1) for RLX"
readme = "README.md"
keywords = [
    "ml",
    "tensor",
    "compiler",
    "neural-network",
]
categories = [
    "science",
    "algorithms",
]
license = "GPL-3.0-only"
repository = "https://github.com/MIT-RLX/rlx-models"
resolver = "2"

[features]
all-backends = [
    "metal",
    "mlx",
    "cuda",
    "rocm",
    "gpu",
    "vulkan",
]
amd-gpu = ["rocm"]
apple-silicon = [
    "metal",
    "mlx",
    "gpu",
]
cuda = ["rlx-runtime/cuda"]
default = []
gpu = ["rlx-runtime/gpu"]
metal = ["rlx-runtime/metal"]
mlx = ["rlx-runtime/mlx"]
nvidia-gpu = ["cuda"]
portable-gpu = ["gpu"]
rocm = ["rlx-runtime/rocm"]
vulkan = ["rlx-runtime/vulkan"]

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

[[bin]]
name = "rlx-sam-batch"
path = "src/bin/rlx_sam_batch.rs"

[[bin]]
name = "rlx-sam1"
path = "src/bin/rlx_sam1.rs"

[dependencies.anyhow]
version = "1"

[dependencies.image]
version = "0.25"
features = [
    "jpeg",
    "png",
]
default-features = false

[dependencies.rlx-cli]
version = "0.2.11"

[dependencies.rlx-core]
version = "0.2.11"
package = "rlx-models-core"

[dependencies.rlx-cpu]
version = "=0.2.11"

[dependencies.rlx-flow]
version = "=0.2.11"

[dependencies.rlx-ir]
version = "=0.2.11"

[dependencies.rlx-opt]
version = "=0.2.11"

[dependencies.rlx-runtime]
version = "=0.2.11"
features = ["cpu"]
default-features = false

[dependencies.rlx-sam-ir]
version = "0.2.11"

[dependencies.safetensors]
version = "0.7"

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

[dependencies.serde_json]
version = "1"

[lints.clippy]
large_enum_variant = "allow"
manual_range_contains = "allow"
needless_range_loop = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
upper_case_acronyms = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust.unused]
level = "warn"
priority = 0
