mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	Allow to disable specialized tokenizations (again)
In PR #2773, I added the `chinese`, `hebrew`, `japanese` and `thai` feature flags to allow melisearch to be built without huge specialed tokenizations that took up 90% of the melisearch binary size. Unfortunately, due to some recent changes, this doesn't work anymore. The problem lies in excessive use of the `default` feature flag, which infects the dependency graph. Instead of adding `default-features = false` here and there, it's easier and more future-proof to not declare `default` in `milli` and `meilisearch-types`. I've renamed it to `all-tokenizers`, which also makes it a bit clearer what it's about.
This commit is contained in:
		| @@ -13,7 +13,7 @@ license.workspace = true | ||||
| [dependencies] | ||||
| anyhow = "1.0.70" | ||||
| csv = "1.2.1" | ||||
| milli = { path = "../milli", default-features = false } | ||||
| milli = { path = "../milli" } | ||||
| mimalloc = { version = "0.1.36", default-features = false } | ||||
| serde_json = { version = "1.0.95", features = ["preserve_order"] } | ||||
|  | ||||
| @@ -31,7 +31,7 @@ flate2 = "1.0.25" | ||||
| reqwest = { version = "0.11.16", features = ["blocking", "rustls-tls"], default-features = false } | ||||
|  | ||||
| [features] | ||||
| default = ["milli/default"] | ||||
| default = ["milli/all-tokenizations"] | ||||
|  | ||||
| [[bench]] | ||||
| name = "search_songs" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user