Skip to content

Commit d35dd22

Browse files
committed
Update README for uuid changes
1 parent 8444e9d commit d35dd22

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ Documentation is available at https://sfackler.github.io/doc/postgres
1111
git = "https://github.com/sfackler/rust-postgres.git"
1212
```
1313

14-
```toml
15-
# Optional features (on by default)
16-
features = ["uuid"]
17-
```
18-
1914
## Overview
2015
Rust-Postgres is a pure-Rust frontend for the popular PostgreSQL database. It
2116
exposes a high level interface in the vein of JDBC or Go's `database/sql`
@@ -301,12 +296,15 @@ traits.
301296

302297
### UUID type
303298

304-
To enable the [UUID](http://www.postgresql.org/docs/9.4/static/datatype-uuid.html) type just add "uuid_type" to features list:
299+
[UUID][http://www.postgresql.org/docs/9.4/static/datatype-uuid.html] support is
300+
provided optionally by the `uuid` feature. It is enabled by default. To
301+
disable `UUID` support, add `default-features = false` to your Cargo manifest:
305302

306303
```toml
307304
[dependencies.postgres]
308305
git = ...
309-
features = ["uuid_type"]
306+
default-features = false
307+
features = [...]
310308
```
311309

312310
## Development

0 commit comments

Comments
 (0)