Skip to content

Commit 1f53d84

Browse files
committed
primitives - add postgres feature flag for the postgres field
1 parent d06b61c commit 1f53d84

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

primitives/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = "0.1.0"
44
authors = ["Lachezar Lechev <[email protected]>, Omidiora Samuel <[email protected]>"]
55
edition = "2018"
66

7+
[features]
8+
postgres = ["postgres-types", "bytes"]
9+
710
[dependencies]
811
# Futures
912
futures-preview = { version = "=0.3.0-alpha.19", features = ["compat"]}
@@ -33,5 +36,8 @@ num-derive = "0.2"
3336
# Fixtures
3437
fake = { version = "^1.3", features = ["chrono"] }
3538
rand = { version = "^0.6" }
39+
# postgres feature
40+
postgres-types = {version = "0.1.0-alpha.1", optional = true}
41+
bytes = { version = "0.4.12", optional = true}
3642
# Other
3743
lazy_static = "1.4.0"

0 commit comments

Comments
 (0)