Skip to content

Commit b95650f

Browse files
authored
Merge pull request #85 from weiznich/fix_readme
Fix readme
2 parents e528cfb + b7221e3 commit b95650f

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All user visible changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/), as described
55
for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md)
66

7+
## [0.3.1] - 2023-06-07
8+
9+
* Minor readme fixes
10+
* Add a missing `UpdateAndFetchResults` impl
11+
712
## [0.3.0] - 2023-05-26
813

914
* Compatibility with diesel 2.1

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "diesel-async"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = ["Georg Semmler <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
autotests = false
77
license = "MIT OR Apache-2.0"
88
readme = "README.md"

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ A normal project should use a setup similar to the following one:
2727

2828
```toml
2929
[dependencies]
30-
diesel = "2.0.3" # no backend features need to be enabled
31-
diesel-async = { version = "0.2.1", features = ["postgres"] }
30+
diesel = "2.1.0" # no backend features need to be enabled
31+
diesel-async = { version = "0.3.1", features = ["postgres"] }
3232
```
3333

3434
This allows to import the relevant traits from both crates:
@@ -50,11 +50,11 @@ table! {
5050
#[diesel(table_name = users)]
5151
struct User {
5252
id: i32,
53-
name: Text,
53+
name: String,
5454
}
5555

5656
// create an async connection
57-
let mut connection = AsyncPgConnection::establish(std::env::var("DATABASE_URL")?).await?;
57+
let mut connection = AsyncPgConnection::establish(&std::env::var("DATABASE_URL")?).await?;
5858

5959
// use ordinary diesel query dsl to construct your query
6060
let data: Vec<User> = users::table

0 commit comments

Comments
 (0)