diff --git a/CHANGELOG.md b/CHANGELOG.md index 79d8f08..119d489 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,19 @@ ## [Unreleased] - [Unreleased]: https://github.com/najamelan/ws_stream_tungstenite/compare/0.13.0...dev + [Unreleased]: https://github.com/najamelan/ws_stream_tungstenite/compare/0.14.0...dev +## [0.14.0] - 2024-09-08 + + [0.12.0]: https://github.com/najamelan/ws_stream_tungstenite/compare/0.13.0...0.14.0 + + - **BREAKING_CHANGE**: update async-tungstenite to 0.28 + - **BREAKING_CHANGE**: update tungstenite to 0.24 + ## [0.13.0] - 2024-02-16 - [0.12.0]: https://github.com/najamelan/ws_stream_tungstenite/compare/0.12.0...0.13.0 + [0.13.0]: https://github.com/najamelan/ws_stream_tungstenite/compare/0.12.0...0.13.0 - **BREAKING_CHANGE**: update async-tungstenite to 0.25 diff --git a/Cargo.toml b/Cargo.toml index f9c7f6c..57cfcfb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -72,7 +72,7 @@ features = ["attributes"] version = "^1" [dev-dependencies.async-tungstenite] -features = ["tokio-runtime", "async-std-runtime"] +features = ["tokio-runtime", "async-std-runtime", "url"] version = "^0.28" [dev-dependencies.tokio] @@ -90,10 +90,6 @@ default-features = false features = ["ansi", "env-filter", "fmt", "json", "tracing-log"] version = "^0.3" -[dev-dependencies.tungstenite] -features = ["url"] -version = "^0.24" - [[example]] name = "tokio_codec" path = "examples/tokio_codec.rs" @@ -116,7 +112,7 @@ license = "Unlicense" name = "ws_stream_tungstenite" readme = "README.md" repository = "https://github.com/najamelan/ws_stream_tungstenite" -version = "0.13.0" +version = "0.14.0" [package.metadata] [package.metadata.docs] diff --git a/Cargo.yml b/Cargo.yml index 0740e08..d1224c5 100644 --- a/Cargo.yml +++ b/Cargo.yml @@ -25,7 +25,7 @@ package: # - `git tag x.x.x` with version number. # - `git push && git push --tags` # - version : 0.13.0 + version : 0.14.0 name : ws_stream_tungstenite edition : '2021' authors : [ Naja Melan ] @@ -84,7 +84,7 @@ dependencies: dev-dependencies: async-std : { version: ^1, features: [ attributes ] } - async-tungstenite : { version: ^0.28, features: [ tokio-runtime, async-std-runtime ] } + async-tungstenite : { version: ^0.28, features: [ tokio-runtime, async-std-runtime, url ] } assert_matches : ^1 async_progress : ^0.2 futures : ^0.3 diff --git a/README.md b/README.md index a83f800..58abdda 100644 --- a/README.md +++ b/README.md @@ -46,14 +46,14 @@ With [cargo yaml](https://gitlab.com/storedbox/cargo-yaml): ```yaml dependencies: - ws_stream_tungstenite: ^0.13 + ws_stream_tungstenite: ^0.14 ``` With raw Cargo.toml ```toml [dependencies] - ws_stream_tungstenite = "0.13" + ws_stream_tungstenite = "0.14" ``` ### Upgrade diff --git a/build.rs b/build.rs index 822e446..2794d90 100644 --- a/build.rs +++ b/build.rs @@ -4,6 +4,14 @@ use rustc_version::{ version_meta, Channel }; fn main() { + // Needed to avoid warnings for: + // https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html + // + println!("cargo::rustc-check-cfg=cfg(stable)"); + println!("cargo::rustc-check-cfg=cfg(beta)"); + println!("cargo::rustc-check-cfg=cfg(nightly)"); + println!("cargo::rustc-check-cfg=cfg(rustc_dev)"); + // Set cfg flags depending on release channel // match version_meta().unwrap().channel diff --git a/src/lib.rs b/src/lib.rs index f37f228..e5134b6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,10 +1,10 @@ #![ cfg_attr( nightly, feature(doc_cfg) ) ] #![ doc = include_str!("../README.md") ] -#![ doc ( html_root_url = "https://docs.rs/ws_stream_tungstenite" ) ] -#![ deny ( missing_docs ) ] -#![ forbid ( unsafe_code ) ] -#![ allow ( clippy::suspicious_else_formatting ) ] +#![ doc ( html_root_url = "https://docs.rs/ws_stream_tungstenite" ) ] +#![ deny ( missing_docs ) ] +#![ forbid ( unsafe_code ) ] +#![ allow ( clippy::suspicious_else_formatting, clippy::too_long_first_doc_paragraph ) ] #![ warn (