Viewing:
[package]
name = "client"
version = "0.1.0"
authors = ["neallred <neallred@gmail.com>"]
edition = "2018"
repository = "https://github.com/neallred/scriptured"
description = "High precision and recall scripture searchng for the web."
license = "GPL-3.0"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook"]
[dependencies]
flate2 = "1.0"
lazy_static = "1.4.0"
regex = "1.3.1"
rust-stemmers = "1.2.0"
serde = { version = "1.0.103", features = ["derive"] }
serde_derive = "1.0.103"
serde_json = "1.0.42"
bincode = "1.2.1"
fnv = "1.0.6"
phf = "0.8.0"
primitive-types = "0.6.2"
scripture-types = { path = "../scripture-types" }
data-bundler = { path = "../data-bundler" }
indices = { path = "../indices" }
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.1", optional = true }
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
# compared to the default allocator's ~10K. It is slower than the default
# allocator, however.
#
# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
wee_alloc = { version = "0.4.2", optional = true }
[dev-dependencies]
wasm-bindgen-test = "0.2"
# Having this here gives a warning when doing a regular cargo build,
# but it looks like wasm-pack build does not read from the workspace Cargo.toml,
# so keep this here.
# See https://github.com/rust-lang/rust/issues/56454 for a possible resolution.
[profile.release]
# link time optimizations
lto = true
# Tell `rustc` to optimize for small code size.
# opt-level = "s"
# Tell `rustc` to optimize for code speed.
opt-level = 3
[dependencies.web-sys]
version = "0.3"
features = [
"console", "Performance", "Window"
]
[dependencies.wasm-bindgen]
version = "0.2"
features = ["serde-serialize"]