Cargo Features

[dependencies]
fastnum = { version = "0.1.3", default-features = false, features = ["std", "libm", "numtraits", "rand", "zeroize", "serde", "diesel", "diesel_postgres", "diesel_mysql", "sqlx", "sqlx_postgres", "sqlx_mysql", "utoipa", "test-util"] }
default = std

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

std default

Affects f32::powi, f64::powi

libm

Enables libm

Affects f32::powi, f64::powi

numtraits = num-traits

Enables numtraits of bnum

rand

Enables rand

zeroize

Enables zeroize

serde

Enables serde, serde of bnum

Affects extras::serde

diesel diesel_mysql? diesel_postgres?

Enables diesel

Affects extras::diesel

diesel_postgres = diesel

Enables postgres_backend of diesel

diesel_mysql = diesel

Enables mysql_backend of diesel

sqlx sqlx_mysql? sqlx_postgres?

Enables sqlx

Affects extras::sqlx

sqlx_postgres = bytes, sqlx

Enables postgres of sqlx

Affects sqlx::pg

sqlx_mysql = sqlx

Enables mysql of sqlx

Affects sqlx::mysql

utoipa

Enables macros of utoipa

test-util

For internal use only

Affects decimal::extras

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.

num-traits numtraits?
bytes sqlx_postgres?