Cargo Features

[dependencies]
mongoose = { version = "0.6.2", default-features = false, features = ["timestamps", "uuid", "nanoid"] }
default = nanoid, timestamps

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

timestamps default

Enables bson-chrono-0_4 of mongodb ^2.3.1 and chrono-0_4 of bson

bson:

if enabled, include API for interfacing with chrono 0.4

uuid

Enables uuid-1 of bson

bson:

if enabled, include API for interfacing with uuid 1.x

Affects model::Model.generate_uuid, model::Model.read_by_uuid

nanoid default

Enables nanoid

optional

Affects model::Model.generate_nanoid