Cargo Features

[dependencies]
fraction = { version = "0.15.3", default-features = false, features = ["with-bigint", "with-decimal", "with-dynaint", "with-approx", "with-juniper-support", "with-postgres-support", "with-serde-support", "with-unicode"] }
default = with-bigint, with-decimal, with-dynaint

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

with-bigint default with-approx? = lazy_static

Enables num-bigint and std of num

Affects try_from::with_bigint, try_from::with_bigint, prelude::BigFraction, prelude::DynaFraction, prelude::BigDecimal, prelude::DynaDecimal

with-decimal default

Affects prelude::Decimal, prelude::BigDecimal, prelude::DynaDecimal

with-dynaint default

Affects fraction::dynaint, prelude::DynaFraction, prelude::DynaDecimal

with-approx = with-bigint

Affects fraction::approx

with-juniper-support = juniper

Affects fraction::juniper_support

with-postgres-support = byteorder, bytes, postgres-types

Affects fraction::postgres_support

with-serde-support = serde, serde_derive

Enables serde of num

with-unicode

Affects fraction::unicode_str_io

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.

byteorder with-postgres-support?
bytes with-postgres-support?
postgres-types with-postgres-support?
serde with-serde-support?
serde_derive with-serde-support?
juniper with-juniper-support?

Enables juniper ^0.15

lazy_static with-bigint