From 6b7c06f831305463a5d720b086e89f28acd98c65 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Sat, 6 Jan 2024 21:40:47 +0100 Subject: [PATCH] feat: update to use stable rust Fixes #63 --- Cargo.toml | 8 +++----- rust-toolchain.toml | 2 +- src/lib.rs | 4 ---- tests/client.rs | 2 -- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fd55b3f..1c8e841 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reqwless" -version = "0.10.0" +version = "0.11.0" edition = "2021" resolver = "2" description = "HTTP client for embedded devices" @@ -13,7 +13,7 @@ keywords = ["embedded", "async", "http", "no_std"] exclude = [".github"] [dependencies] -buffered-io = { version = "0.4.0", features = ["async"] } +buffered-io = { version = "0.5.0", path = "../buffered-io"} embedded-io = { version = "0.6" } embedded-io-async = { version = "0.6" } embedded-nal-async = "0.7.0" @@ -24,9 +24,7 @@ base64 = { version = "0.21.0", default-features = false } rand_core = { version = "0.6", default-features = true } log = { version = "0.4", optional = true } defmt = { version = "0.3", optional = true } -embedded-tls = { version = "0.16", default-features = false, features = [ - "async", -], optional = true } +embedded-tls = { version = "0.17", default-features = false, optional = true } rand_chacha = { version = "0.3", default-features = false } nourl = "0.1.1" diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e5b8f6e..73998ee 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ # Before upgrading check that everything is available on all tier1 targets here: # https://rust-lang.github.io/rustup-components-history [toolchain] -channel = "nightly-2023-10-21" +channel = "1.75" components = ["clippy"] diff --git a/src/lib.rs b/src/lib.rs index b2c5ecd..9acbda1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,4 @@ #![cfg_attr(not(test), no_std)] -#![allow(unknown_lints, async_fn_in_trait)] -#![allow(stable_features)] -#![feature(async_fn_in_trait)] -#![feature(impl_trait_projections)] #![doc = include_str!("../README.md")] use core::{num::ParseIntError, str::Utf8Error}; diff --git a/tests/client.rs b/tests/client.rs index 3dca76e..4f4e73c 100644 --- a/tests/client.rs +++ b/tests/client.rs @@ -1,5 +1,3 @@ -#![feature(async_fn_in_trait)] -#![allow(incomplete_features)] use embedded_io_async::BufRead; use hyper::server::conn::Http; use hyper::service::{make_service_fn, service_fn};