# 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 = "cha-plugin-sdk"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SDK for building Cha WASM analyzer plugins — zero-config, no WIT file needed"
homepage = "https://github.com/W-Mai/Cha"
readme = false
keywords = [
    "wasm",
    "plugin",
    "code-quality",
    "static-analysis",
    "cha",
]
categories = [
    "development-tools",
    "wasm",
]
license = "MIT"
repository = "https://github.com/W-Mai/Cha"
resolver = "2"

[features]
test-utils = [
    "dep:cha-core",
    "dep:cha-parser",
    "dep:anyhow",
    "dep:toml",
]

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

[dependencies.cha-plugin-sdk-macros]
version = "0.2.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.anyhow]
version = "1"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.cha-core]
version = "0.2.0"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.cha-parser]
version = "0.2.0"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.toml]
version = "0.8"
optional = true
