449641d158
* Add search engine to the model Add a Tantivy based search engine to the model Implement most required functions for it * Implement indexing and plm subcommands Implement indexation on insert, update and delete Modify func args to get the indexer where required Add subcommand to initialize, refill and unlock search db * Move to a new threadpool engine allowing scheduling * Autocommit search index every half an hour * Implement front part of search Add default fields for search Add new routes and templates for search and result Implement FromFormValue for Page to reuse it on search result pagination Add optional query parameters to paginate template's macro Update to newer rocket_csrf, don't get csrf token on GET forms * Handle process termination to release lock Handle process termination Add tests to search * Add proper support for advanced search Add an advanced search form to /search, in template and route Modify Tantivy schema, add new tokenizer for some properties Create new String query parser Create Tantivy query AST from our own * Split search.rs, add comment and tests Split search.rs into multiple submodules Add comments and tests for Query Make user@domain be treated as one could assume
85 lines
1.8 KiB
TOML
85 lines
1.8 KiB
TOML
[package]
|
|
authors = ["Bat' <baptiste@gelez.xyz>"]
|
|
name = "plume"
|
|
version = "0.2.0"
|
|
[dependencies]
|
|
activitypub = "0.1.3"
|
|
atom_syndication = "0.6"
|
|
canapi = "0.1"
|
|
colored = "1.6"
|
|
dotenv = "0.13"
|
|
failure = "0.1"
|
|
gettext-rs = "0.4"
|
|
guid-create = "0.1"
|
|
heck = "0.3.0"
|
|
num_cpus = "1.0"
|
|
rpassword = "2.0"
|
|
scheduled-thread-pool = "0.2.0"
|
|
serde = "1.0"
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|
|
serde_qs = "0.4"
|
|
tera = "0.11"
|
|
validator = "0.7"
|
|
validator_derive = "0.7"
|
|
webfinger = "0.3.1"
|
|
|
|
[[bin]]
|
|
name = "plume"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies.chrono]
|
|
features = ["serde"]
|
|
version = "0.4"
|
|
|
|
[dependencies.ctrlc]
|
|
features = ["termination"]
|
|
version = "3.1.1"
|
|
|
|
[dependencies.diesel]
|
|
features = ["r2d2", "chrono"]
|
|
version = "*"
|
|
|
|
[dependencies.multipart]
|
|
default-features = false
|
|
features = ["server"]
|
|
version = "0.15"
|
|
|
|
[dependencies.plume-api]
|
|
path = "plume-api"
|
|
|
|
[dependencies.plume-common]
|
|
path = "plume-common"
|
|
|
|
[dependencies.plume-models]
|
|
path = "plume-models"
|
|
|
|
[dependencies.rocket]
|
|
git = "https://github.com/SergioBenitez/Rocket"
|
|
rev = "55459db7732b9a240826a5c120c650f87e3372ce"
|
|
|
|
[dependencies.rocket_codegen]
|
|
git = "https://github.com/SergioBenitez/Rocket"
|
|
rev = "55459db7732b9a240826a5c120c650f87e3372ce"
|
|
|
|
[dependencies.rocket_contrib]
|
|
features = ["tera_templates", "json"]
|
|
git = "https://github.com/SergioBenitez/Rocket"
|
|
rev = "55459db7732b9a240826a5c120c650f87e3372ce"
|
|
|
|
[dependencies.rocket_csrf]
|
|
git = "https://github.com/fdb-hiroshima/rocket_csrf"
|
|
rev = "0dfb822d5cbf65a5eee698099368b7c0f4c61fa4"
|
|
|
|
[dependencies.rocket_i18n]
|
|
git = "https://github.com/BaptisteGelez/rocket_i18n"
|
|
rev = "75a3bfd7b847324c078a355a7f101f8241a9f59b"
|
|
|
|
[features]
|
|
default = ["postgres"]
|
|
postgres = ["plume-models/postgres", "diesel/postgres"]
|
|
sqlite = ["plume-models/sqlite", "diesel/sqlite"]
|
|
|
|
[workspace]
|
|
members = ["plume-api", "plume-cli", "plume-models", "plume-common"]
|