Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
jsonrpsee
Commits
1e77c2df
Unverified
Commit
1e77c2df
authored
Dec 22, 2021
by
Niklas Adolfsson
Committed by
GitHub
Dec 22, 2021
Browse files
chore: migrate to rust 2021 (#618)
Implies MSRV 1.56.x
parent
8462905f
Changes
18
Hide whitespace changes
Inline
Side-by-side
benches/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-benchmarks"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Benchmarks for jsonrpsee"
edition
=
"201
8
"
edition
=
"20
2
1"
license
=
"MIT"
publish
=
false
...
...
client/http-client/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-http-client"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
,
"Pierre Krieger <pierre.krieger1708@gmail.com>"
]
description
=
"HTTP client for JSON-RPC"
edition
=
"201
8
"
edition
=
"20
2
1"
license
=
"MIT"
repository
=
"https://github.com/paritytech/jsonrpsee"
homepage
=
"https://github.com/paritytech/jsonrpsee"
...
...
client/transport/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-client-transport"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
,
"Pierre Krieger <pierre.krieger1708@gmail.com>"
]
description
=
"WebSocket client for JSON-RPC"
edition
=
"201
8
"
edition
=
"20
2
1"
license
=
"MIT"
repository
=
"https://github.com/paritytech/jsonrpsee"
homepage
=
"https://github.com/paritytech/jsonrpsee"
...
...
client/transport/src/ws/mod.rs
View file @
1e77c2df
...
...
@@ -26,7 +26,6 @@
mod
stream
;
use
std
::
convert
::{
TryFrom
,
TryInto
};
use
std
::
io
;
use
std
::
net
::{
SocketAddr
,
ToSocketAddrs
};
use
std
::
time
::
Duration
;
...
...
@@ -505,7 +504,6 @@ fn build_tls_config(cert_store: &CertificateStore) -> Result<tokio_rustls::TlsCo
mod
tests
{
use
super
::{
Mode
,
Target
,
Uri
,
WsHandshakeError
};
use
http
::
uri
::
InvalidUri
;
use
std
::
convert
::
TryInto
;
fn
assert_ws_target
(
target
:
Target
,
host
:
&
str
,
host_header
:
&
str
,
mode
:
Mode
,
path_and_query
:
&
str
)
{
assert_eq!
(
&
target
.host
,
host
);
...
...
client/ws-client/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-ws-client"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
,
"Pierre Krieger <pierre.krieger1708@gmail.com>"
]
description
=
"WebSocket client for JSON-RPC"
edition
=
"201
8
"
edition
=
"20
2
1"
license
=
"MIT"
repository
=
"https://github.com/paritytech/jsonrpsee"
homepage
=
"https://github.com/paritytech/jsonrpsee"
...
...
core/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-core"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Utilities for jsonrpsee"
edition
=
"201
8
"
edition
=
"20
2
1"
license
=
"MIT"
[dependencies]
...
...
core/src/client/async_client/helpers.rs
View file @
1e77c2df
...
...
@@ -24,7 +24,6 @@
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
use
std
::
convert
::
TryInto
;
use
std
::
time
::
Duration
;
use
crate
::
client
::
async_client
::
manager
::{
RequestManager
,
RequestStatus
};
...
...
examples/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-examples"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Examples for jsonrpsee"
edition
=
"201
8
"
edition
=
"20
2
1"
publish
=
false
[dev-dependencies]
...
...
http-server/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-http-server"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
,
"Pierre Krieger <pierre.krieger1708@gmail.com>"
]
description
=
"HTTP server for JSON-RPC"
edition
=
"201
8
"
edition
=
"20
2
1"
license
=
"MIT"
repository
=
"https://github.com/paritytech/jsonrpsee"
homepage
=
"https://github.com/paritytech/jsonrpsee"
...
...
jsonrpsee/Cargo.toml
View file @
1e77c2df
...
...
@@ -4,7 +4,7 @@ description = "JSON-RPC crate"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
,
"Pierre Krieger <pierre.krieger1708@gmail.com>"
]
license
=
"MIT"
edition
=
"201
8
"
edition
=
"20
2
1"
repository
=
"https://github.com/paritytech/jsonrpsee"
homepage
=
"https://github.com/paritytech/jsonrpsee"
documentation
=
"https://docs.rs/jsonrpsee"
...
...
proc-macros/Cargo.toml
View file @
1e77c2df
...
...
@@ -4,7 +4,7 @@ description = "Procedueral macros for jsonrpsee"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
,
"Pierre Krieger <pierre.krieger1708@gmail.com>"
]
license
=
"MIT"
edition
=
"201
8
"
edition
=
"20
2
1"
repository
=
"https://github.com/paritytech/jsonrpsee"
homepage
=
"https://github.com/paritytech/jsonrpsee"
documentation
=
"https://docs.rs/jsonrpsee-proc-macros"
...
...
rustfmt.toml
View file @
1e77c2df
hard_tabs
=
true
max_width
=
120
use_small_heuristics
=
"Max"
edition
=
"201
8
"
edition
=
"20
2
1"
test-utils/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-test-utils"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
license
=
"MIT"
edition
=
"201
8
"
edition
=
"20
2
1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
...
...
tests/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-integration-tests"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Integration tests for jsonrpsee"
edition
=
"201
8
"
edition
=
"20
2
1"
license
=
"MIT"
publish
=
false
...
...
types/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-types"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Shared types for jsonrpsee"
edition
=
"201
8
"
edition
=
"20
2
1"
license
=
"MIT"
repository
=
"https://github.com/paritytech/jsonrpsee"
homepage
=
"https://github.com/paritytech/jsonrpsee"
...
...
types/src/params.rs
View file @
1e77c2df
...
...
@@ -27,7 +27,6 @@
//! Types to handle JSON-RPC request parameters according to the [spec](https://www.jsonrpc.org/specification#parameter_structures).
//! Some types come with a "*Ser" variant that implements [`serde::Serialize`]; these are used in the client.
use
std
::
convert
::
TryFrom
;
use
std
::
fmt
;
use
crate
::
error
::
CallError
;
...
...
ws-server/Cargo.toml
View file @
1e77c2df
...
...
@@ -3,7 +3,7 @@ name = "jsonrpsee-ws-server"
version
=
"0.6.1"
authors
=
[
"Parity Technologies <admin@parity.io>"
,
"Pierre Krieger <pierre.krieger1708@gmail.com>"
]
description
=
"WebSocket server for JSON-RPC"
edition
=
"201
8
"
edition
=
"20
2
1"
license
=
"MIT"
repository
=
"https://github.com/paritytech/jsonrpsee"
homepage
=
"https://github.com/paritytech/jsonrpsee"
...
...
ws-server/src/tests.rs
View file @
1e77c2df
...
...
@@ -123,7 +123,7 @@ async fn server_with_handles() -> (SocketAddr, ServerHandle) {
module
.register_subscription
(
"subscribe_hello"
,
"subscribe_hello"
,
"unsubscribe_hello"
,
|
_
,
sink
,
_
|
{
std
::
thread
::
spawn
(
move
||
loop
{
let
_
=
sink
;
let
_
=
&
sink
;
std
::
thread
::
sleep
(
std
::
time
::
Duration
::
from_secs
(
30
));
});
Ok
(())
...
...
@@ -653,7 +653,7 @@ async fn custom_subscription_id_works() {
module
.register_subscription
(
"subscribe_hello"
,
"subscribe_hello"
,
"unsubscribe_hello"
,
|
_
,
sink
,
_
|
{
std
::
thread
::
spawn
(
move
||
loop
{
let
_
=
sink
;
let
_
=
&
sink
;
std
::
thread
::
sleep
(
std
::
time
::
Duration
::
from_secs
(
30
));
});
Ok
(())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment