weapon 0.1.1

Cross-device sync engine
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 = "weapon"
version = "0.1.1"
authors = ["Andre Popovitch <andre@popovit.ch>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-device sync engine"
readme = "README.md"
license = "MIT"

[features]
indexeddb = [
    "dep:idb",
    "dep:futures",
    "dep:thiserror",
    "dep:web-sys",
    "dep:serde-wasm-bindgen",
    "dep:js-sys",
]
opfs = [
    "dep:opfs",
    "dep:futures",
    "dep:thiserror",
    "dep:web-sys",
    "dep:serde-wasm-bindgen",
    "dep:js-sys",
]
supabase = [
    "dep:fetch-happen",
    "dep:tsify",
    "dep:wasm-bindgen",
]

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

[[bin]]
name = "weapon-scope"
path = "src/bin/weapon-scope.rs"

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

[dependencies.fetch-happen]
version = "0.3.0"
optional = true

[dependencies.futures]
version = "0.3.31"
optional = true

[dependencies.idb]
version = "0.6.3"
optional = true

[dependencies.im]
version = "15.1.0"
features = ["serde"]

[dependencies.log]
version = "0.4"

[dependencies.opfs]
version = "0.1.4"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.slotmap]
version = "1.0"
features = ["serde"]

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

[dependencies.tsify]
version = "0.5.5"
features = ["js"]
optional = true
default-features = false

[dependencies.wasm-bindgen]
version = "0.2.84"
optional = true

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

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.tsify]
version = "0.5.5"
features = ["js"]
default-features = false

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

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "BroadcastChannel",
    "MessageEvent",
]
optional = true