Cargo Features

[dependencies]
sonic-server = { version = "1.4.9", default-features = false, features = ["allocator-jemalloc", "tokenizer-chinese", "tokenizer-japanese", "benchmark"] }
default = allocator-jemalloc, tokenizer-chinese

These default features are set whenever sonic-server is added without default-features = false somewhere in the dependency tree.

allocator-jemalloc default = tikv-jemallocator
tokenizer-chinese default = jieba-rs
tokenizer-japanese = lindera-core, lindera-dictionary, lindera-tokenizer
benchmark

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

jieba-rs tokenizer-chinese

Enables jieba-rs ^0.6

lindera-core tokenizer-japanese?

Enables lindera-core ^0.27

lindera-dictionary tokenizer-japanese?

Enables lindera-dictionary ^0.27

lindera-tokenizer tokenizer-japanese?

Enables lindera-tokenizer ^0.27

tikv-jemallocator unix allocator-jemalloc

Enables tikv-jemallocator ^0.4