about summary refs log tree commit diff
path: root/crates/engine/Cargo.toml
blob: 1753ef5bdf11e6f89e757f1a0024bda0811ddadd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[package]
name = "gn-search-engine"
description = "The GeneNetwork search engine: the xapian reader moved out of GN4."
# Spelled out, not inherited: this crate is consumed as a vendored directory
# (GN4 builds it from a guix store with no network), and a directory source has
# no workspace root above it to inherit from.
version = "0.1.0"
edition = "2021"
license = "AGPL-3.0-or-later"

[dependencies]
# By path, so a consumer's cargo resolves it inside this checkout: by version
# alone it would look for gn-search-schema on crates.io, where it is not
# published, and fall over at resolve time.
gn-search-schema = { version = "0.1.0", path = "../schema" }
xapian-rs = { git = "https://github.com/Alexanderlacuna/xapian-rs", rev = "70c5eace78dbca29c434cb103cb8b2c5d4246f0d" }
serde_json = "1.0.151"
tokio = { version = "1", features = ["rt"] }

[features]
default = []
# Forward the OpenAPI derive to the schema crate: GN4's `Envelope<T: ToSchema>`
# makes it a type-formation requirement there, so the CONSUMER turns it on.
schema = ["gn-search-schema/schema"]
# The in-memory fixture index and the parity corpus runner's document set.
# A TEST DOUBLE: off by default, because a build that answered a real index path
# with its five recorded hits would fabricate search results.
fixture = []
# The development HTTP server in `src/bin/gn-search.rs`.
serve = []