diff --git a/Cargo.toml b/Cargo.toml index 072e286..951fa47 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ doctest = false members = ["postgres-from-row-derive"] [workspace.package] -version = "0.4.0" +version = "0.5.0" authors = ["Remo Pas "] edition = "2021" repository = "https://github.com/remkop22/postgres-from-row" @@ -29,7 +29,7 @@ keywords = ["postgres", "postgres-tokio", "postgresql", "from-row", "mapper"] categories = ["database", "parsing", "data-structures"] [workspace.dependencies] -postgres-from-row-derive = { path = "postgres-from-row-derive", version = "=0.4.0" } +postgres-from-row-derive = { path = "postgres-from-row-derive", version = "=0.5.0" } [dependencies] tokio-postgres = { version = "0.7.7", default_features = false } diff --git a/README.md b/README.md index 0110b97..f74ae50 100644 --- a/README.md +++ b/README.md @@ -2,19 +2,13 @@ Derive `FromRow` to generate a mapping between a struct and postgres rows. -This crate works with [postgres]() by default. +This crate is compatible with both [postgres]() and [tokio-postgres](). ```toml [dependencies] -postgres_from_row = "0.4.0" +postgres_from_row = "0.5.0" ``` -If you want to use it with [tokio-postgres](), enable it like so: - -```toml -[dependencies] -postgres_from_row = { version = "0.4.0", default_features = false, features = ["tokio-postgres"] } -``` ## Examples ```rust use postgres_from_row::FromRow;