# 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 = "2021"
rust-version = "1.89"
name = "pubky-app-specs"
version = "0.5.3"
build = false
exclude = [
    ".github",
    "pkg",
    "test",
    "build.sh",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pubky.app Data Model Specifications"
homepage = "https://pubky.app"
documentation = "https://github.com/pubky/pubky-app-specs"
readme = "README.md"
license = "MIT"
repository = "https://github.com/pubky/pubky-app-specs"

[features]
openapi = ["utoipa"]

[lib]
name = "pubky_app_specs"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "bundle_specs_npm"
path = "src/bin/bundle_specs_npm.rs"

[[example]]
name = "create_user"
path = "examples/create_user.rs"

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

[dependencies.base32]
version = "0.5.1"

[dependencies.blake3]
version = "1.8.5"

[dependencies.mime]
version = "0.3"

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

[dependencies.serde_json]
version = "1.0.145"

[dependencies.url]
version = "2.5.8"

[dependencies.utoipa]
version = "5.5.0"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pubky]
version = "0.9.1"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.anyhow]
version = "1.0.100"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1.52.3"
features = ["full"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.77"

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6.5"

[target.'cfg(target_arch = "wasm32")'.dependencies.tsify-next]
version = "0.5.6"
features = ["js"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.100"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.77"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.68"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
