Made requirement of setting feature flags to access derive macros more explicit in the documentation.

This commit is contained in:
JR Smith 2021-07-01 16:04:19 -04:00
parent 3eb5a4dab9
commit 3b7b8000ce

View File

@ -6,7 +6,12 @@
//! # Derive
//!
//! If the `derive` cargo feature is enabled, you can derive `ToSql` and `FromSql` implementations for custom Postgres
//! types.
//! types. Explicitly, modify your `Cargo.toml` file to include the following:
//!
//! ```toml
//! [dependencies]
//! postgres-types = { version = "0.X.X", features = ["derive"] }
//! ```
//!
//! ## Enums
//!