Documentation
# 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 = "myko"
version = "5.0.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "myko in rust"
homepage = "https://docs.rs/myko"
documentation = "https://docs.rs/myko"
readme = false
license = "AGPL-3.0-or-later"
repository = "https://github.com/ignition-is-go/myko"
resolver = "2"

[package.metadata.flux]
tasks = [
    "check",
    "build",
    "test",
    "lint",
    "publish",
    "check-wasm",
]

[features]
bench = []
ci = [
    "codegen",
    "search",
    "ts-export",
    "profiling",
    "doc-gen",
]
codegen = [
    "dep:dprint-plugin-typescript",
    "ts-export",
]
default = []
doc-gen = []
profiling = ["hyphae/profiling"]
search = []
ts-export = []

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

[[bin]]
name = "docgen"
path = "src/bin/docgen.rs"
required-features = ["codegen"]

[[bin]]
name = "typegen"
path = "src/bin/typegen.rs"
required-features = ["codegen"]

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

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

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

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

[[bench]]
name = "dyn_vs_typed"
path = "benches/dyn_vs_typed.rs"
harness = false
required-features = ["bench"]

[dependencies.ahash]
version = "0.8"

[dependencies.anyhow]
version = "1.0"

[dependencies.async-stream]
version = "0.3"

[dependencies.async-trait]
version = "0.1"

[dependencies.autosocket]
version = "5.0.4"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.ciborium]
version = "0.2"

[dependencies.dashmap]
version = "6.1.0"

[dependencies.erased-serde]
version = "0.4"

[dependencies.flume]
version = "0.11"

[dependencies.futures]
version = "0.3"

[dependencies.hyphae]
version = "^2.0"
features = ["scheduler"]

[dependencies.inventory]
version = "0.3.24"

[dependencies.myko-macros]
version = "5.0.4"

[dependencies.nucleo-matcher]
version = "0.3"

[dependencies.opentelemetry]
version = "0.32.0"
features = ["metrics"]
default-features = false

[dependencies.partially]
version = "0.2"
features = ["derive"]

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.roaring]
version = "0.10"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0"
features = ["raw_value"]

[dependencies.smallvec]
version = "1.13"

[dependencies.strsim]
version = "0.11"

[dependencies.thread_local]
version = "1.1"

[dependencies.tracing]
version = "0.1"

[dependencies.ts-rs]
version = "11.1"
features = ["serde-json-impl"]

[dependencies.url]
version = "2.5"

[dependencies.uuid]
version = "1.23"
features = [
    "v4",
    "v5",
    "serde",
]

[dev-dependencies.ahash]
version = "0.8"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.crossbeam]
version = "0.8"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dprint-plugin-typescript]
version = "0.95.15"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1.10"

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.uuid]
version = "1"
features = ["js"]

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

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