Cargo Features

[dependencies]
feldera_rust_decimal = { version = "1.33.1-feldera.1", default-features = false, features = ["macros", "borsh", "c-repr", "db-diesel-mysql", "db-diesel-postgres", "db-diesel1-mysql", "db-diesel1-postgres", "db-diesel2-mysql", "db-diesel2-postgres", "db-postgres", "db-tokio-postgres", "legacy-ops", "maths", "maths-nopanic", "ndarray", "rand", "rkyv-safe", "proptest", "rkyv-16", "rkyv-32", "rkyv-64", "rocket-traits", "rust-fuzz", "serde", "serde-arbitrary-precision", "serde-bincode", "std", "serde-float", "serde-str", "serde-with-arbitrary-precision", "serde-with-float", "serde-with-str", "tokio-pg"] }
default = serde, std

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

macros

Enables rust_decimal_macros

This needs to be the n-1 published version

borsh = std

Enables borsh

c-repr

Force Decimal to be repr(C)

db-diesel-mysql = db-diesel1-mysql
db-diesel-postgres = db-diesel1-postgres
db-diesel1-mysql db-diesel-mysql? = std

Enables mysql of diesel ^1.0

db-diesel1-postgres db-diesel-postgres? = std

Enables postgres of diesel ^1.0

db-diesel2-mysql = std

Enables mysql of diesel

db-diesel2-postgres = std

Enables postgres of diesel

db-postgres = std

Enables bytes and postgres

db-tokio-postgres tokio-pg? = std

Enables bytes, postgres, and tokio-postgres

legacy-ops
maths maths-nopanic?
maths-nopanic = maths
ndarray

Enables ndarray ^0.15.6

rand

Enables rand

rkyv-safe

Enables validation of rkyv ^0.7.45

proptest

Enables proptest

rkyv-16 = rkyv

Note that rkyv-16, rkyv-32, and rkyv-64 are mutually exclusive.

Enables size_16 of optional rkyv ^0.7.45

rkyv-32 = rkyv

Enables size_32 of optional rkyv ^0.7.45

rkyv-64 = rkyv

Enables size_64 of optional rkyv ^0.7.45

rocket-traits

Enables rocket

rust-fuzz

Enables arbitrary

serde default serde-with-arbitrary-precision? serde-with-float? serde-with-str?

Enables serde

Affects feldera_rust_decimal::serde

serde-arbitrary-precision = serde-with-arbitrary-precision
serde-bincode = serde-str

Backwards compatability

std default borsh? db-diesel1-mysql? db-diesel1-postgres? db-diesel2-mysql? db-diesel2-postgres? db-postgres? db-tokio-postgres?

Enables std of arrayvec, optional borsh, optional bytes, optional rand, optional rkyv ^0.7.45, optional serde, and optional serde_json

rand:

Option (enabled by default): without "std" rand uses libcore; this option enables functionality expected to be available on a standard platform.

serde-float = serde-with-float
serde-str serde-bincode? = serde-with-str
serde-with-arbitrary-precision serde-arbitrary-precision? = serde

Enables arbitrary_precision and std of serde_json

Affects serde::arbitrary_precision, serde::arbitrary_precision_option, serde::DecimalFromString, feldera_rust_decimal::serde

serde-with-float serde-float? = serde

Affects serde::float, serde::float_option, feldera_rust_decimal::serde

serde-with-str serde-str? = serde

Affects serde::str, serde::str_option, feldera_rust_decimal::serde

tokio-pg = db-tokio-postgres

Backwards compatability

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.

diesel1 db-diesel1-mysql? db-diesel1-postgres?

Enables diesel ^1.0

diesel2 db-diesel2-mysql? db-diesel2-postgres?

Enables diesel

rkyv rkyv-16? rkyv-32? rkyv-64? rkyv-safe?

Enables rkyv ^0.7.45

serde_json serde-with-arbitrary-precision?