# 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.91"
name = "diaryx_plugin_sdk"
version = "0.3.4"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SDK for building Diaryx Extism WASM plugins"
readme = false
license = "MIT"
repository = "https://github.com/diaryx-org/plugin-sdk"

[features]
context = []
core = []
default = ["core"]
events = []
files = []
full = [
    "core",
    "http",
    "secrets",
    "ws",
    "events",
    "plugins",
    "context",
    "wasi",
    "files",
    "namespaces",
    "proxy",
    "getrandom-shim",
]
getrandom-shim = ["dep:getrandom_03"]
http = []
namespaces = []
plugins = []
proxy = ["http"]
secrets = []
wasi = []
ws = []

[lib]
name = "diaryx_plugin_sdk"
crate-type = ["rlib"]
path = "src/lib.rs"

[dependencies.base64]
version = "0.22"

[dependencies.extism-pdk]
version = "1.4"

[dependencies.getrandom_03]
version = "0.3"
optional = true
default-features = false
package = "getrandom"

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

[dependencies.serde_json]
version = "1.0"

[profile.release]
lto = "fat"
codegen-units = 1
