Cargo Features
[dependencies]
tiny_orm_core = { version = "0.4.6", default-features = false, features = ["postgres", "mysql", "sqlite", "any", "sqlx-dev"] }
- default = mysql
-
The
mysql
feature is set by default whenevertiny_orm_core
is added without
somewhere in the dependency tree.default-features = false - postgres = sqlx-dev
-
Affects
model::TinyOrmDbPool
,model::TinyOrmSqlRow
,model::TinyOrmSqlResult
… - mysql default = sqlx-dev
-
Affects
model::TinyOrmDbPool
,model::TinyOrmSqlRow
,model::TinyOrmSqlResult
… - sqlite = sqlx-dev
-
Affects
model::TinyOrmDbPool
,model::TinyOrmSqlRow
,model::TinyOrmSqlResult
… - any = sqlx-dev
-
sqlx:
database
Affects
model::TinyOrmDbPool
,model::TinyOrmSqlRow
,model::TinyOrmSqlResult
… - sqlx-dev any? mysql postgres? sqlite?
-
Enables json, macros, migrate, runtime-tokio, time and tls-rustls of sqlx ^0.7
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.