Cargo Features

[dependencies]
lsys-lib-area = { version = "0.1.0", default-features = false, features = ["lib-clib", "data-csv", "data-sqlite", "data-sqlite-source", "data-mysql", "index-disk"] }
default = data-csv, index-disk

These default features are set whenever lsys-lib-area is added without default-features = false somewhere in the dependency tree.

lib-clib

启用C库接口

data-csv default = csv

启用CSV数据源

Affects c_lib::lib_area_init_csv, c_lib::lib_area_init_csv_on_disk

data-sqlite data-sqlite-source? = rusqlite

启用SQLITE数据源

Affects c_lib::lib_area_init_sqlite, c_lib::lib_area_init_sqlite_on_disk

data-sqlite-source = data-sqlite

启用SQLITE数据源[内置C源码方式]

data-mysql = mysql

启用mysql数据源支持

Affects c_lib::lib_area_init_mysql, c_lib::lib_area_init_mysql_on_disk

index-disk default = memmap2

索引数据使用硬盘存储

Affects c_lib::lib_area_init_csv_on_disk, c_lib::lib_area_init_sqlite_on_disk, c_lib::lib_area_init_mysql_on_disk

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.

rusqlite data-sqlite?

Enables rusqlite ~0.31.0

csv data-csv
mysql data-mysql?

Enables mysql ~24.0.0

memmap2 index-disk