# 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"
name = "saa-common"
version = "0.27.3"
authors = ["Kromsten <kromsten@megarock.app>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common types and utilities for smart account auth"
readme = false
license = "MIT"
repository = "https://github.com/MegaRockLabs/smart-account-auth"

[features]
cosmos_arb = ["dep:bech32"]
cosmwasm = [
    "dep:cw-schema",
    "cosmwasm-std/std",
    "saa-schema/cosmwasm",
    "std",
    "wasm",
]
cosmwasm_v1 = [
    "dep:cosmwasm-std-v1",
    "wasm",
]
default = [
    "std",
    "replay",
]
ed25519 = []
eth_personal = []
eth_typed_data = [
    "dep:serde_json",
    "std",
]
native = ["dep:cosmwasm-crypto"]
passkeys = []
replay = []
secp256k1 = []
secp256r1 = []
secretwasm = [
    "dep:secretwasm-std",
    "wasm",
]
session = []
solana = [
    "dep:borsh",
    "saa-schema/solana",
]
std = [
    "serde-json-wasm/std",
    "ink?/std",
    "scale?/std",
    "scale-info?/std",
    "saa-schema/std",
]
substrate = [
    "dep:ink",
    "dep:scale",
    "dep:scale-info",
    "saa-schema/substrate",
]
types = ["saa-schema/cosmwasm"]
wasm = ["saa-schema/wasm"]

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

[dependencies.base64]
version = "0.22.1"
features = ["alloc"]
default-features = false

[dependencies.bech32]
version = "0.11.1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.borsh]
version = "1.6.1"
features = ["derive"]
optional = true
default-features = false

[dependencies.cosmwasm-crypto]
version = "3.0.5"
optional = true
default-features = false

[dependencies.cosmwasm-std]
version = "3.0.2"
optional = true

[dependencies.cosmwasm-std-v1]
version = "1.5.11"
optional = true
package = "cosmwasm-std"

[dependencies.cw-schema]
version = "3.0.5"
optional = true

[dependencies.getrandom]
version = "0.2.16"
features = ["custom"]
default-features = false

[dependencies.ink]
version = "5.1.1"
optional = true
default-features = false

[dependencies.saa-schema]
version = "0.27.3"

[dependencies.scale]
version = "3.6.12"
features = ["derive"]
optional = true
default-features = false
package = "parity-scale-codec"

[dependencies.scale-info]
version = "2.11.3"
features = ["derive"]
optional = true
default-features = false

[dependencies.secretwasm-std]
version = "1.1.11"
optional = true
package = "secret-cosmwasm-std"

[dependencies.serde]
version = "1.0.219"
features = ["derive"]
default-features = false

[dependencies.serde-json-wasm]
version = "1.0.1"
default-features = false

[dependencies.serde_json]
version = "0.7.0"
optional = true
default-features = false
package = "serde-cw-value"

[dependencies.strum]
version = "0.28.0"

[dependencies.thiserror]
version = "2.0.18"
default-features = false
