Unverified Commit 1e77c2df authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

chore: migrate to rust 2021 (#618)

Implies MSRV 1.56.x
parent 8462905f
......@@ -3,7 +3,7 @@ name = "jsonrpsee-benchmarks"
version = "0.6.1"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Benchmarks for jsonrpsee"
edition = "2018"
edition = "2021"
license = "MIT"
publish = false
......
......@@ -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 = "2018"
edition = "2021"
license = "MIT"
repository = "https://github.com/paritytech/jsonrpsee"
homepage = "https://github.com/paritytech/jsonrpsee"
......
......@@ -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 = "2018"
edition = "2021"
license = "MIT"
repository = "https://github.com/paritytech/jsonrpsee"
homepage = "https://github.com/paritytech/jsonrpsee"
......
......@@ -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);
......
......@@ -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 = "2018"
edition = "2021"
license = "MIT"
repository = "https://github.com/paritytech/jsonrpsee"
homepage = "https://github.com/paritytech/jsonrpsee"
......
......@@ -3,7 +3,7 @@ name = "jsonrpsee-core"
version = "0.6.1"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Utilities for jsonrpsee"
edition = "2018"
edition = "2021"
license = "MIT"
[dependencies]
......
......@@ -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};
......
......@@ -3,7 +3,7 @@ name = "jsonrpsee-examples"
version = "0.6.1"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Examples for jsonrpsee"
edition = "2018"
edition = "2021"
publish = false
[dev-dependencies]
......
......@@ -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 = "2018"
edition = "2021"
license = "MIT"
repository = "https://github.com/paritytech/jsonrpsee"
homepage = "https://github.com/paritytech/jsonrpsee"
......
......@@ -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 = "2018"
edition = "2021"
repository = "https://github.com/paritytech/jsonrpsee"
homepage = "https://github.com/paritytech/jsonrpsee"
documentation = "https://docs.rs/jsonrpsee"
......
......@@ -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 = "2018"
edition = "2021"
repository = "https://github.com/paritytech/jsonrpsee"
homepage = "https://github.com/paritytech/jsonrpsee"
documentation = "https://docs.rs/jsonrpsee-proc-macros"
......
hard_tabs = true
max_width = 120
use_small_heuristics = "Max"
edition = "2018"
edition = "2021"
......@@ -3,7 +3,7 @@ name = "jsonrpsee-test-utils"
version = "0.6.1"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT"
edition = "2018"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
......
......@@ -3,7 +3,7 @@ name = "jsonrpsee-integration-tests"
version = "0.6.1"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Integration tests for jsonrpsee"
edition = "2018"
edition = "2021"
license = "MIT"
publish = false
......
......@@ -3,7 +3,7 @@ name = "jsonrpsee-types"
version = "0.6.1"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Shared types for jsonrpsee"
edition = "2018"
edition = "2021"
license = "MIT"
repository = "https://github.com/paritytech/jsonrpsee"
homepage = "https://github.com/paritytech/jsonrpsee"
......
......@@ -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;
......
......@@ -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 = "2018"
edition = "2021"
license = "MIT"
repository = "https://github.com/paritytech/jsonrpsee"
homepage = "https://github.com/paritytech/jsonrpsee"
......
......@@ -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(())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment