Skip to content

Commit 3b7b800

Browse files
author
JR Smith
committed
Made requirement of setting feature flags to access derive macros more explicit in the documentation.
1 parent 3eb5a4d commit 3b7b800

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

postgres-types/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
//! # Derive
77
//!
88
//! If the `derive` cargo feature is enabled, you can derive `ToSql` and `FromSql` implementations for custom Postgres
9-
//! types.
9+
//! types. Explicitly, modify your `Cargo.toml` file to include the following:
10+
//!
11+
//! ```toml
12+
//! [dependencies]
13+
//! postgres-types = { version = "0.X.X", features = ["derive"] }
14+
//! ```
1015
//!
1116
//! ## Enums
1217
//!

0 commit comments

Comments
 (0)