# 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 = "rapira"
version = "0.13.2"
authors = ["Rail Khusnutdinov <rail@33.run>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "serialization library like borsh, bincode and speedy"
homepage = "https://github.com/libfunc/rapira/"
documentation = "https://docs.rs/rapira/"
readme = "README.md"
keywords = ["serialization"]
categories = []
license = "MIT OR Apache-2.0"
repository = "https://github.com/libfunc/rapira/"

[features]
alloc = []
default = [
    "std",
    "zerocopy",
    "dep:serde",
    "serde_json",
    "arrayvec",
    "bytes",
    "time",
    "schema",
]
postcard = [
    "dep:postcard",
    "dep:serde",
]
rmp = []
schema = [
    "dep:armour-typ",
    "rapira-derive/schema",
]
solana = [
    "solana-pubkey",
    "solana-signature",
]
std = [
    "thiserror",
    "alloc",
    "simdutf8/std",
]

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

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

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

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

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

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

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

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

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

[dependencies.armour-typ]
version = "0.3"
optional = true

[dependencies.arrayvec]
version = "0.7"
optional = true

[dependencies.bytemuck]
version = "1.23"
features = ["extern_crate_alloc"]
optional = true

[dependencies.bytes]
version = "1.4"
optional = true

[dependencies.byteview]
version = "0.10"
optional = true

[dependencies.compact_str]
version = "0.9"
optional = true

[dependencies.ecow]
version = "0.3"
optional = true

[dependencies.either]
version = "1.15"
optional = true

[dependencies.fjall]
version = "3.1"
optional = true

[dependencies.indexmap]
version = "2.0"
optional = true
default-features = false

[dependencies.postcard]
version = "1.1"
features = ["use-std"]
optional = true
default-features = false

[dependencies.rapira-derive]
version = "0.12.0"

[dependencies.rust_decimal]
version = "1.27"
optional = true

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

[dependencies.serde_json]
version = "1.0"
features = ["alloc"]
optional = true
default-features = false

[dependencies.smallvec]
version = "1.8"
features = [
    "union",
    "const_generics",
    "const_new",
]
optional = true

[dependencies.smol_str]
version = "0.3"
optional = true

[dependencies.solana-pubkey]
version = "4.0"
optional = true

[dependencies.solana-signature]
version = "3.1"
optional = true

[dependencies.thiserror]
version = "2.0"
optional = true

[dependencies.time]
version = "0.3"
optional = true
default-features = false

[dependencies.uuid]
version = "1.3"
optional = true
default-features = false

[dependencies.zerocopy]
version = "0.8"
features = [
    "simd",
    "derive",
]
optional = true

[dev-dependencies]

[target.'cfg(not(target_env = "aarch64-apple-darwin"))'.dependencies.simdutf8]
version = "0.1"
default-features = false

[target.'cfg(target_env = "aarch64-apple-darwin")'.dependencies.simdutf8]
version = "0.1"
features = ["aarch64_neon"]
default-features = false
