# 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 = "maa-framework"
version = "1.15.0"
authors = ["MaaFramework Contributors"]
build = false
exclude = [
    "MaaFramework",
    "install",
    "download_plugins",
    ".github",
    ".vscode",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust bindings for MaaFramework"
homepage = "https://github.com/MaaXYZ/MaaFramework"
readme = "README.md"
keywords = [
    "maa",
    "automation",
    "framework",
    "binding",
]
categories = [
    "api-bindings",
    "development-tools",
]
license = "LGPL-3.0"
repository = "https://github.com/MaaXYZ/MaaFramework"

[features]
adb = []
custom = [
    "custom_recognizer",
    "custom_controller",
    "custom_action",
    "sync_context",
]
custom_action = ["sync_context"]
custom_controller = ["sync_context"]
custom_recognizer = ["sync_context"]
default = [
    "toolkit",
    "adb",
    "win32",
    "custom",
    "internal",
]
dynamic = ["maa-framework-sys/dynamic"]
image = ["dep:image"]
internal = []
static = ["maa-framework-sys/static"]
sync_context = []
toolkit = ["maa-framework-sys/toolkit"]
win32 = []

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

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

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

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

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

[dependencies.bitflags]
version = "2"

[dependencies.image]
version = "0.25"
optional = true

[dependencies.maa-framework-sys]
version = "5.10.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.ctor]
version = "0.6"
