File tree 3 files changed +11
-6
lines changed
3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All user visible changes to this project will be documented in this file.
4
4
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) , as described
5
5
for Rust libraries in [ RFC #1105 ] ( https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md )
6
6
7
+ ## [ 0.3.1] - 2023-06-07
8
+
9
+ * Minor readme fixes
10
+ * Add a missing ` UpdateAndFetchResults ` impl
11
+
7
12
## [ 0.3.0] - 2023-05-26
8
13
9
14
* Compatibility with diesel 2.1
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " diesel-async"
3
- version = " 0.3.0 "
3
+ version = " 0.3.1 "
4
4
authors = [
" Georg Semmler <[email protected] >" ]
5
- edition = " 2018 "
5
+ edition = " 2021 "
6
6
autotests = false
7
7
license = " MIT OR Apache-2.0"
8
8
readme = " README.md"
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ A normal project should use a setup similar to the following one:
27
27
28
28
``` toml
29
29
[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" ] }
32
32
```
33
33
34
34
This allows to import the relevant traits from both crates:
@@ -50,11 +50,11 @@ table! {
50
50
#[diesel(table_name = users)]
51
51
struct User {
52
52
id : i32 ,
53
- name : Text ,
53
+ name : String ,
54
54
}
55
55
56
56
// 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 ? ;
58
58
59
59
// use ordinary diesel query dsl to construct your query
60
60
let data : Vec <User > = users :: table
You can’t perform that action at this time.
0 commit comments