# 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 = "jonmo"
version = "0.3.1"
build = false
exclude = [
    "assets/",
    ".github/",
    "crates/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ergonomic Bevy-native reactivity powered by FRP signals"
documentation = "https://docs.rs/jonmo"
readme = "README.md"
keywords = [
    "reactive",
    "signals",
    "gamedev",
    "bevy",
]
categories = [
    "asynchronous",
    "gui",
    "game-development",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/databasedav/jonmo"

[package.metadata.cargo-all-features]
allowlist = [
    "builder",
    "tracing",
    "time",
    "debug",
    "std",
    "critical-section",
    "web",
]

[package.metadata.docs.rs]
cargo-args = [
    "-Zunstable-options",
    "-Zrustdoc-scrape-examples",
]
all-features = true

[features]
builder = []
critical-section = [
    "bevy_app/critical-section",
    "bevy_ecs/critical-section",
    "bevy_platform/critical-section",
    "bevy_time?/critical-section",
]
debug = ["bevy/bevy_ui_debug"]
default = [
    "builder",
    "tracing",
    "time",
    "std",
]
deployed_wasm_example = []
std = [
    "bevy_app/std",
    "bevy_ecs/std",
    "bevy_platform/std",
    "bevy_time?/std",
]
time = ["bevy_time"]
tracing = ["bevy_log"]
web = [
    "bevy_app/web",
    "bevy_platform/web",
]

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

[[example]]
name = "basic"
path = "examples/basic.rs"
doc-scrape-examples = true

[[example]]
name = "basic_builder"
path = "examples/basic_builder.rs"
doc-scrape-examples = true

[[example]]
name = "basic_builder_inject"
path = "examples/basic_builder_inject.rs"
doc-scrape-examples = true

[[example]]
name = "counter"
path = "examples/counter.rs"
doc-scrape-examples = true

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

[[example]]
name = "letters"
path = "examples/letters.rs"
doc-scrape-examples = true

[[example]]
name = "lifetimes"
path = "examples/lifetimes.rs"
doc-scrape-examples = true

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

[[example]]
name = "utils"
crate-type = ["lib"]
path = "examples/utils.rs"
doc-scrape-examples = true

[dependencies.apply]
version = "0.3"

[dependencies.bevy_app]
version = "0.16"
default-features = false

[dependencies.bevy_derive]
version = "0.16"
default-features = false

[dependencies.bevy_ecs]
version = "0.16"
default-features = false

[dependencies.bevy_log]
version = "0.16"
optional = true
default-features = false

[dependencies.bevy_platform]
version = "0.16"
default-features = false

[dependencies.bevy_time]
version = "0.16"
optional = true
default-features = false

[dependencies.cfg-if]
version = "1.0"

[dependencies.document-features]
version = "0.2"
optional = true

[dependencies.dyn-clone]
version = "1.0"

[dependencies.enclose]
version = "1.2"

[dev-dependencies.bevy]
version = "0.16"
features = ["track_location"]

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.test-log]
version = "0.2"
features = ["trace"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]

[lints.clippy]
alloc_instead_of_core = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
