This repository was archived by the owner on Jul 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " proton-api-rs"
3
3
authors = [" Leander Beernaert <lbb-dev@pm.me>" ]
4
- version = " 0.9 .0"
4
+ version = " 0.10 .0"
5
5
edition = " 2021"
6
6
license = " AGPL-3.0-only"
7
7
description = " Unofficial implemention of proton REST API in rust"
@@ -42,7 +42,7 @@ optional = true
42
42
[dev-dependencies ]
43
43
env_logger = " 0.10"
44
44
tokio = {version =" 1" , features = [" full" ]}
45
- wry = {version = " 0.28" }
45
+ # wry = {version = "0.28"}
46
46
47
47
[[example ]]
48
48
name = " user_id"
@@ -52,6 +52,7 @@ required-features = ["http-reqwest"]
52
52
name = " user_id_sync"
53
53
required-features = [" http-ureq" ]
54
54
55
- [[example ]]
56
- name = " captcha"
57
- required-features = [" http-ureq" ]
55
+ # Enable wry dependency when trying this example.
56
+ # [[example]]
57
+ # name = "captcha"
58
+ # required-features = ["http-ureq"]
Original file line number Diff line number Diff line change @@ -95,13 +95,15 @@ pub enum Error {
95
95
Connection ( #[ source] anyhow:: Error ) ,
96
96
#[ error( "Request/Response body error: {0}" ) ]
97
97
Request ( #[ source] anyhow:: Error ) ,
98
+ #[ error( "Encoding/Decoding error: {0}" ) ]
99
+ EncodeOrDecode ( #[ source] anyhow:: Error ) ,
98
100
#[ error( "Unexpected error occurred: {0}" ) ]
99
101
Other ( #[ source] anyhow:: Error ) ,
100
102
}
101
103
102
104
impl From < serde_json:: Error > for Error {
103
105
fn from ( value : serde_json:: Error ) -> Self {
104
- Self :: Request ( value. into ( ) )
106
+ Self :: EncodeOrDecode ( value. into ( ) )
105
107
}
106
108
}
107
109
You can’t perform that action at this time.
0 commit comments