[package]
name = "meilisearch_searchbar"
version = "0.1.0"
edition = "2021"


[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
leptos = { version = "0.6.5", features = ["nightly"] }
leptos_axum = { version = "0.6.5", optional = true }
meilisearch-sdk = { version = "0.27.0", optional = true }
axum = { version = "0.7.4", optional = true }
leptos_meta = { version = "0.6.5", features = ["nightly"] }
leptos_router = { version = "0.6.5", features = ["nightly"] }
console_log = "1.0"
console_error_panic_hook = "0.1.7"
log = "0.4.20"
tower = { verison = "0.4.13", optional = true }
tower-http = { version = "0.5.1", optional = true, features = ["fs"] }
simple_logger = { version = "5.0", optional = true }
tokio = { version = "1.0", features = ["full"], optional = true }
lazy_static = { version = "1.4", optional = true }
serde = "1.0"
serde_json = "1.0"
csv = { version = "1.3", optional = true }

[features]
default = ["ssr"]
hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"]
ssr = [
  "tokio",
  "lazy_static",
  "simple_logger",
  "dep:meilisearch-sdk",
  "dep:axum",
  "leptos/ssr",
  "leptos_meta/ssr",
  "leptos_router/ssr",
  "tower",
  "tower-http",
  "leptos_axum",
  "csv",
]
lazy_static = ["dep:lazy_static"]

[package.metadata.leptos]
output-name = "meilisearch_searchbar"
site-root = "target/site"
site-pkg-dir = "pkg"
assets-dir = "public"
site-addr = "127.0.0.1:3000"
reload-port = 3001
browserquery = "defaults"
watch = false
env = "DEV"
bin-features = ["ssr"]
bin-default-features = false
lib-features = ["hydrate"]
lib-default-features = false
