mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 19:41:03 +00:00
92a386277b
* [REFACTORING]Rename whitespace_tokenizer to tag_tokenizer for registration Name representing its purpose is preferred. * Add lindera-tantivy to plume-model's dependencies * Install lindera-tantivy * Add SearchTokenizerConfig struct * Add search tokenizers to config option * Use CONFIG for tokenizers * Use enum to hold tokenizer config instead of initializing on config phase * Use guard instead of duplicate default values * Use as_deref() instead of guard * Move SearchTokenizer from plume-models to plume-models::search::tokenizer * Rename SearchTokenizer to TokenizerKind * Define SearchTokenierConfig::determine_tokenizer() * Use determine_tokenizer in SearchTokenizerConfig::init() * Pass tokenizer config to Searcher methods * Add LowerCase filter to Lindera tokenizer * Add test for Lindera tokenizer * Define SEARCH_LANG env to specify tokenizers set * Run cargo fmt * Make Lindera tokenizer optional * Fix typos
58 lines
1.2 KiB
TOML
58 lines
1.2 KiB
TOML
[package]
|
|
name = "plume-models"
|
|
version = "0.4.0"
|
|
authors = ["Plume contributors"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
activitypub = "0.1.1"
|
|
ammonia = "2.1.1"
|
|
askama_escape = "0.1"
|
|
bcrypt = "0.5"
|
|
guid-create = "0.1"
|
|
heck = "0.3.0"
|
|
itertools = "0.8.0"
|
|
lazy_static = "1.0"
|
|
migrations_internals= "1.4.0"
|
|
openssl = "0.10.22"
|
|
rocket = "0.4.0"
|
|
rocket_i18n = { git = "https://github.com/Plume-org/rocket_i18n", rev = "e922afa7c366038b3433278c03b1456b346074f2" }
|
|
reqwest = "0.9"
|
|
scheduled-thread-pool = "0.2.2"
|
|
serde = "1.0"
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|
|
tantivy = "0.12.0"
|
|
url = "2.1"
|
|
walkdir = "2.2"
|
|
webfinger = "0.4.1"
|
|
whatlang = "0.7.1"
|
|
shrinkwraprs = "0.2.1"
|
|
diesel-derive-newtype = "0.1.2"
|
|
glob = "0.3.0"
|
|
lindera-tantivy = { version = "0.1.2", optional = true }
|
|
|
|
[dependencies.chrono]
|
|
features = ["serde"]
|
|
version = "0.4"
|
|
|
|
[dependencies.diesel]
|
|
features = ["r2d2", "chrono"]
|
|
version = "1.4.2"
|
|
|
|
[dependencies.plume-api]
|
|
path = "../plume-api"
|
|
|
|
[dependencies.plume-common]
|
|
path = "../plume-common"
|
|
|
|
[dependencies.plume-macro]
|
|
path = "../plume-macro"
|
|
|
|
[dev-dependencies]
|
|
diesel_migrations = "1.3.0"
|
|
|
|
[features]
|
|
postgres = ["diesel/postgres", "plume-macro/postgres" ]
|
|
sqlite = ["diesel/sqlite", "plume-macro/sqlite" ]
|
|
search-lindera = ["lindera-tantivy"]
|