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 = "6.5.1"
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-ts",
    "search",
    "profiling",
    "doc-gen",
    "ordered-float",
]
codegen-ts = [
    "typegen",
    "dep:ts-rs",
    "dep:dprint-plugin-typescript",
    "ts-rs/serde-compat",
    "ts-rs/serde-json-impl",
    "ts-rs/chrono-impl",
    "ts-rs/uuid-impl",
    "ts-rs/no-serde-warnings",
    "ts-rs/ordered-float-impl",
]
default = []
demo = []
doc-gen = []
ordered-float = ["dep:ordered-float"]
profiling = ["hyphae/profiling"]
search = []
typegen = []

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

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

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

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

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

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

[[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 = "query_live_test"
path = "tests/query_live_test.rs"

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

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

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

[[bench]]
name = "graph"
path = "benches/graph.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 = "6.5.1"

[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 = "^3.0"
features = ["scheduler"]

[dependencies.inventory]
version = "0.3.24"

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

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

[dependencies.num-traits]
version = "0.2"

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

[dependencies.ordered-float]
version = "5"
features = ["serde"]
optional = true

[dependencies.parking_lot]
version = "0.12"

[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 = "12.0.1"
optional = true

[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.gloo-timers]
version = "0.3"
features = ["futures"]

[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"]

[lints.clippy]
arithmetic_side_effects = "deny"
as_conversions = "deny"
disallowed_types = "deny"
exit = "deny"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
panic_in_result_fn = "deny"
string_slice = "deny"
todo = "deny"
unchecked_time_subtraction = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"

[lints.clippy.nursery]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1