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
somewhere in the dependency tree.default-features = false - 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
-
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
…