Cargo Features

[dependencies]
r2d2_odbc_api = { version = "0.2.0", default-features = false, features = ["rocket_pooling", "iodbc", "hfsql"] }
default = rocket_pooling

The rocket_pooling feature is set by default whenever r2d2_odbc_api is added without default-features = false somewhere in the dependency tree.

rocket_pooling default = rocket, rocket_sync_db_pools
iodbc

Enables iodbc of odbc-api ^0.50.0

odbc-api:

In order to work with iodbc we need to only use symbols defined in ODBC 3.5. We need to use narrow function calls and preferale link against libiodbc.so instead of libodbc.so.

hfsql

Enables iodbc of odbc-api ^0.50.0

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.

rocket rocket_pooling
rocket_sync_db_pools rocket_pooling