# 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 = "grits-core"
version = "2.4.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for Grits - a Git-native, local-first issue tracker."
homepage = "https://github.com/babybirdprd/grits"
readme = "README.md"
license = "MIT"
repository = "https://github.com/babybirdprd/grits"

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

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

[dependencies.glob]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.petgraph]
version = "0.6"
features = ["serde-1"]

[dependencies.regex]
version = "1.11"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1.0"

[dependencies.tracing]
version = "0.1.43"

[dependencies.uuid]
version = "1.19.0"
features = [
    "js",
    "v4",
]

[dependencies.walkdir]
version = "2.5.0"

[dev-dependencies.tempfile]
version = "3.2"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rusqlite]
version = "0.32"
features = [
    "bundled",
    "functions",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.streaming-iterator]
version = "0.1"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tree-sitter]
version = "0.26"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tree-sitter-go]
version = "0.23"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tree-sitter-javascript]
version = "0.23"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tree-sitter-python]
version = "0.23"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tree-sitter-rust]
version = "0.24"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tree-sitter-typescript]
version = "0.23"

[target.'cfg(target_arch = "wasm32")'.dependencies.chrono]
version = "0.4"
features = [
    "serde",
    "wasmbind",
]

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

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

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