# 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 = "rvlite"
version = "0.3.0"
authors = ["RuVector Contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Standalone vector database with SQL, SPARQL, and Cypher - powered by RuVector WASM"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ruvnet/ruvector"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[features]
default = []

[lib]
name = "rvlite"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.console_error_panic_hook]
version = "0.1"

[dependencies.js-sys]
version = "0.3"

[dependencies.once_cell]
version = "1.19"

[dependencies.parking_lot]
version = "0.12"

[dependencies.ruvector-core]
version = "2.0.1"
features = ["memory-only"]
default-features = false

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

[dependencies.serde-wasm-bindgen]
version = "0.6"

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.wasm-bindgen]
version = "0.2"

[dependencies.wasm-bindgen-futures]
version = "0.4"

[dependencies.web-sys]
version = "0.3"
features = [
    "console",
    "Window",
    "Event",
    "EventTarget",
    "DomException",
    "DomStringList",
    "IdbDatabase",
    "IdbFactory",
    "IdbObjectStore",
    "IdbObjectStoreParameters",
    "IdbTransaction",
    "IdbTransactionMode",
    "IdbRequest",
    "IdbOpenDbRequest",
    "IdbKeyRange",
    "IdbCursorDirection",
]

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

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

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true

[profile.release.package."*"]
opt-level = "z"
