# 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 = "smoldot-light"
version = "0.12.0"
authors = [
    "Parity Technologies <admin@parity.io>",
    "Pierre Krieger <pierre.krieger1708@gmail.com>",
]
include = ["**/*.rs"]
description = "Browser bindings to a light client for Substrate-based blockchains"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
repository = "https://github.com/smol-dot/smoldot"

[[example]]
name = "basic"
required-features = ["std"]

[dependencies.async-channel]
version = "2.0.0"
default-features = false

[dependencies.async-lock]
version = "3.0.0"
default-features = false

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

[dependencies.blake2-rfc]
version = "0.2.18"
default-features = false

[dependencies.derive_more]
version = "0.99.17"

[dependencies.either]
version = "1.9.0"
default-features = false

[dependencies.event-listener]
version = "3.0.0"
default-features = false

[dependencies.fnv]
version = "1.0.7"
default-features = false

[dependencies.futures-channel]
version = "0.3.27"
features = ["alloc"]
default-features = false

[dependencies.futures-lite]
version = "2.0.0"
features = ["alloc"]
default-features = false

[dependencies.futures-util]
version = "0.3.27"
features = [
    "alloc",
    "sink",
]
default-features = false

[dependencies.hashbrown]
version = "0.14.0"
default-features = false

[dependencies.hex]
version = "0.4.3"
default-features = false

[dependencies.itertools]
version = "0.11.0"
features = ["use_alloc"]
default-features = false

[dependencies.log]
version = "0.4.18"
default-features = false

[dependencies.lru]
version = "0.12.0"
features = ["hashbrown"]
default-features = false

[dependencies.no-std-net]
version = "0.6.0"
default-features = false

[dependencies.parking_lot]
version = "0.12.1"
optional = true

[dependencies.pin-project]
version = "1.1.3"

[dependencies.rand]
version = "0.8.5"
features = ["alloc"]
default-features = false

[dependencies.rand_chacha]
version = "0.3.1"
default-features = false

[dependencies.serde]
version = "1.0.183"
features = [
    "alloc",
    "derive",
]
default-features = false

[dependencies.serde_json]
version = "1.0.104"
features = ["alloc"]
default-features = false

[dependencies.siphasher]
version = "1.0.0"
default-features = false

[dependencies.slab]
version = "0.4.8"
default-features = false

[dependencies.smol]
version = "1.3.0"
optional = true

[dependencies.smoldot]
version = "0.14.0"
default-features = false

[dependencies.zeroize]
version = "1.6.0"
features = ["alloc"]
default-features = false

[dev-dependencies.env_logger]
version = "0.10.0"

[features]
default = [
    "std",
    "wasmtime",
]
std = [
    "dep:parking_lot",
    "dep:smol",
    "rand/std",
    "rand/std_rng",
    "smoldot/std",
]
wasmtime = ["smoldot/wasmtime"]
