diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64e6da0..791f5b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,22 @@ on: [push, pull_request] name: Continuous integration jobs: + # TODO: this will require a little more work to figure out + # check_minimal_versions: + # name: Check Minimal Versions + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v2 + # - uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: nightly + # override: true + # - uses: actions-rs/cargo@v1 + # with: + # command: check + # args: --tests -Z direct-minimal-versions + check_native: name: Check Native runs-on: ubuntu-latest @@ -17,6 +33,18 @@ jobs: with: command: check args: --tests + - uses: actions-rs/cargo@v1 + with: + command: check + args: --features native-tls + - uses: actions-rs/cargo@v1 + with: + command: check + args: --features rustls-tls-native-roots + - uses: actions-rs/cargo@v1 + with: + command: check + args: --features rustls-tls-webpki-roots check_wasm: name: Check WASM @@ -33,18 +61,6 @@ jobs: with: command: check args: --tests - - uses: actions-rs/cargo@v1 - with: - command: check - args: --features native-tls - - uses: actions-rs/cargo@v1 - with: - command: check - args: --features rustls-tls-native-roots - - uses: actions-rs/cargo@v1 - with: - command: check - args: --features rustls-tls-webpki-roots test: diff --git a/Cargo.toml b/Cargo.toml index 2cbc5ea..2c63050 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,14 @@ repository = "https://github.com/TannerRogalsky/tokio-tungstenite-wasm" homepage = "https://github.com/TannerRogalsky/tokio-tungstenite-wasm" license-file = "LICENSE" readme = "README.md" -edition = "2018" +edition = "2021" +categories = [ + "wasm", + "web-programming::websocket", + "asynchronous", + "network-programming", +] +keywords = ["websocket", "cross-platform", "wasm", "tokio"] [features] native-tls = ["tokio-tungstenite/native-tls", "dep:native-tls"] @@ -22,8 +29,8 @@ rustls-tls-webpki-roots = [ __rustls-tls = ["dep:rustls"] [dependencies] -thiserror = "1" -http = "1" +thiserror = "1.0" +http = "1.1" httparse = "1.3" futures-util = { version = "0.3", default-features = false, features = [ "sink", @@ -33,7 +40,7 @@ futures-util = { version = "0.3", default-features = false, features = [ [target.'cfg(not(target_arch = "wasm32"))'.dependencies] tokio-tungstenite = "0.21" -tokio = { version = "1", default-features = false, features = ["net"] } +tokio = { version = "1.36", default-features = false, features = ["net"] } native-tls = { version = "0.2", default-features = false, optional = true } rustls = { version = "0.22", default-features = false, optional = true } @@ -59,5 +66,5 @@ features = [ assert-impl = "0.1" [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -tokio = { version = "1", features = ["full"] } +tokio = { version = "1.36", features = ["full"] } rand = "0.8"