Commit Graph

53 Commits

Author SHA1 Message Date
Taiki Endo 5f512923c4 Deprecate in favor of futures-rustls 2024-01-07 06:46:48 +09:00
dependabot[bot] affe6ec575
m: Update smol requirement from 1.0 to 2.0
Updates the requirements on [smol](https://github.com/smol-rs/smol) to permit the latest version.
- [Release notes](https://github.com/smol-rs/smol/releases)
- [Changelog](https://github.com/smol-rs/smol/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/smol/compare/v1.0.0...v2.0.0)

---
updated-dependencies:
- dependency-name: smol
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 13:27:16 -08:00
Taiki Endo 9e04a0619d Bump MSRV to 1.61
rustls requires it.

```
error: package `rustls v0.21.8` cannot be built because it requires rustc 1.61 or newer, while the currently active rustc version is 1.60.0
```
2023-10-30 20:07:41 +09:00
Taiki Endo 45e9d666ff Add MSRV check to CI 2023-10-08 15:54:01 +09:00
Taiki Endo 1a18c4bd11 Migrate to Rust 2021 2023-10-08 15:54:01 +09:00
John Nunley 7c66d84277
v0.4.1
Signed-off-by: John Nunley <dev@notgull.net>
2023-09-25 10:59:46 -07:00
Taiki Endo 47482ffaaa Update actions/checkout action to v4 2023-09-10 18:19:57 +09:00
Taiki Endo 0ea5f133c6 Fix deprecated warning
```
warning: use of deprecated method `async_rustls::rustls::RootCertStore::add_server_trust_anchors`: Please use `add_trust_anchors` instead
```
2023-08-06 17:29:27 +09:00
Taiki Endo d41c9e23dd Update test certificates from tokio-rustls 2023-08-06 17:29:27 +09:00
Taiki Endo 0068f9ba16 Update webpki-roots to 0.25 2023-08-06 17:29:27 +09:00
John Nunley 36721af620
Add smol-rs logo (#23) 2023-07-17 14:36:32 +09:00
dependabot[bot] d3d338d1bc Update webpki-roots requirement from 0.23 to 0.24
Updates the requirements on [webpki-roots](https://github.com/rustls/webpki-roots) to permit the latest version.
- [Commits](https://github.com/rustls/webpki-roots/compare/v/0.23.1...v/0.24.0)

---
updated-dependencies:
- dependency-name: webpki-roots
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-11 12:45:41 +09:00
dependabot[bot] 4051edbd25 Update rustls-webpki requirement from 0.100 to 0.101
Updates the requirements on [rustls-webpki](https://github.com/rustls/webpki) to permit the latest version.
- [Commits](https://github.com/rustls/webpki/compare/v/0.100.0...v/0.101.1)

---
updated-dependencies:
- dependency-name: rustls-webpki
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-11 12:45:25 +09:00
John Nunley 07e5ba5f3a
v0.4.0 (#19) 2023-04-20 08:35:58 -07:00
Taiki Endo bab348567c Remove rustls-webpki from public API 2023-04-08 02:44:28 +09:00
Taiki Endo d206a5126d Include examples in workspace
This fixes an issue where dependabot does not update dependencies of
examples.
2023-04-08 02:44:28 +09:00
dependabot[bot] dd48018faf Update webpki-roots requirement from 0.22 to 0.23
Updates the requirements on [webpki-roots](https://github.com/rustls/webpki-roots) to permit the latest version.
- [Release notes](https://github.com/rustls/webpki-roots/releases)
- [Commits](https://github.com/rustls/webpki-roots/commits)

---
updated-dependencies:
- dependency-name: webpki-roots
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-04 07:09:23 +09:00
Taiki Endo 6be3487b29 Update rustls-pemfile in examples 2023-03-31 07:19:37 +09:00
Taiki Endo a8905ba01f Use rustls-webpki instead of webpki
d312391239
2023-03-31 07:19:37 +09:00
Luca Cominardi 83bf0e1cfc
Update RusTLS dependency to 0.21 (#14) 2023-03-31 00:28:09 +09:00
Taiki Endo cd5ffe5f9e Minimize GITHUB_TOKEN permissions
Refs: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token
2023-03-26 16:35:12 +09:00
Taiki Endo ad4ef30058 Set CARGO_NET_GIT_FETCH_WITH_CLI=true in CI 2023-01-21 20:07:25 +09:00
Taiki Endo e0c3190710 Fix clippy::uninlined_format_args warning in tests
```
warning: variables can be used directly in the `format!` string
  --> tests/test.rs:59:43
   |
59 |                     .unwrap_or_else(|err| eprintln!("server: {:?}", err));
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
   = note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
   |
59 -                     .unwrap_or_else(|err| eprintln!("server: {:?}", err));
59 +                     .unwrap_or_else(|err| eprintln!("server: {err:?}"));
   |

warning: variables can be used directly in the `format!` string
  --> tests/test.rs:64:46
   |
64 |             .unwrap_or_else(|err: io::Error| eprintln!("server: {:?}", err)),
   |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
   |
64 -             .unwrap_or_else(|err: io::Error| eprintln!("server: {:?}", err)),
64 +             .unwrap_or_else(|err: io::Error| eprintln!("server: {err:?}")),
   |

warning: variables can be used directly in the `format!` string
  --> tests/badssl.rs:19:17
   |
19 |     let input = format!("GET / HTTP/1.0\r\nHost: {}\r\n\r\n", domain);
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
   = note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
   |
19 -     let input = format!("GET / HTTP/1.0\r\nHost: {}\r\n\r\n", domain);
19 +     let input = format!("GET / HTTP/1.0\r\nHost: {domain}\r\n\r\n");
   |
```
2022-12-28 12:41:39 +09:00
Taiki Endo 1ab249da81 Enable dependabot update for Rust 2022-12-28 12:41:39 +09:00
Taiki Endo cd1e57024a Clean up CI config 2022-12-28 12:41:39 +09:00
Taiki Endo 9acbb96d92 Fix clippy::needless_borrow warning
```
warning: the borrowed expression implements the required traits
  --> tests/early-data.rs:89:19
   |
89 |             .args(&["-cert", "./tests/end.cert"])
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-cert", "./tests/end.cert"]`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default

warning: the borrowed expression implements the required traits
  --> tests/early-data.rs:90:19
   |
90 |             .args(&["-key", "./tests/end.rsa"])
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-key", "./tests/end.rsa"]`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: the borrowed expression implements the required traits
  --> tests/early-data.rs:91:19
   |
91 |             .args(&["-port", "12354"])
   |                   ^^^^^^^^^^^^^^^^^^^ help: change this to: `["-port", "12354"]`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
```
2022-12-28 12:41:39 +09:00
Taiki Endo e0e2eae755 Release 0.3.0 2022-11-26 17:36:21 +09:00
Taiki Endo df85df3a7c Ignore buggy clippy::large_enum_variant lint
```
error: large size difference between variants
   --> src/lib.rs:354:1
    |
354 | / pub enum TlsStream<T> {
355 | |     Client(client::TlsStream<T>),
    | |     ---------------------------- the second-largest variant contains at least 0 bytes
356 | |     Server(server::TlsStream<T>),
    | |     ---------------------------- the largest variant contains at least 1504 bytes
357 | | }
    | |_^ the entire enum is at least 0 bytes
    |
    = note: `-D clippy::large-enum-variant` implied by `-D warnings`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
```
2022-11-26 17:36:21 +09:00
John Nunley e70f938475
Port to rustls v0.20 (#9) 2022-10-30 07:10:15 -07:00
Taiki Endo 37aa3f1bad Update actions/checkout action to v3 2022-05-01 14:02:34 +09:00
Taiki Endo b658b3cadb Fix clippy warnings 2022-01-09 13:50:20 +09:00
Taiki Endo 088fed3101 Create GitHub release automatically 2022-01-09 13:43:37 +09:00
Taiki Endo d914b97e48 Format with rustfmt 2022-01-09 13:42:03 +09:00
Taiki Endo f24b2c4006 Clean up CI config 2022-01-09 13:41:44 +09:00
Taiki Endo b0b804038b
Merge pull request #6 from smol-rs/readme
Remove readme field from Cargo.toml
2021-02-14 19:51:20 +09:00
Taiki Endo d80f004606 Remove readme field from Cargo.toml 2021-02-14 19:43:49 +09:00
Taiki Endo 6ead8701d5
Merge pull request #5 from smol-rs/badge
Update license badge to match Cargo.toml
2021-02-14 13:51:03 +09:00
Taiki Endo a80527a6eb Update license badge to match Cargo.toml 2021-02-14 13:38:30 +09:00
Taiki Endo 3287bc36c2
Merge pull request #4 from taiki-e/url
Update URLs
2020-12-26 23:57:33 +09:00
Taiki Endo 8096ecaef7 Update URLs 2020-12-26 23:47:13 +09:00
Taiki Endo 4399043f1d
Merge pull request #3 from taiki-e/ci
Remove CURRENT_WEEK environment variable
2020-12-24 20:38:31 +09:00
Taiki Endo c63fcff22e Remove CURRENT_WEEK environment variable 2020-12-24 20:33:06 +09:00
Stjepan Glavina 3b27451392 Bump to v0.2.0 2020-12-18 19:26:41 +01:00
Stjepan Glavina 56c87077ca
Merge pull request #2 from zethra/new-rustls
Update rustls to 0.19.0
2020-12-18 19:25:26 +01:00
Ben Aaron Goldberg 2c4b442011 Fix environment var setting in CI scripts 2020-11-29 13:06:25 -05:00
Ben Aaron Goldberg fa389c9cac Update rustls to 0.19.0 2020-11-22 12:25:37 -05:00
Stjepan Glavina 7ee9ac7223 Bump to v0.1.2 2020-11-14 14:10:59 +01:00
Stjepan Glavina 7fb7000a6c
Merge pull request #1 from zethra/master
Expose rustls feature flags
2020-11-14 14:09:33 +01:00
Ben Aaron Goldberg 11db83165d Expose rustls feature flags 2020-11-14 02:54:42 -05:00
Stjepan Glavina 63986a063e
Update README.md 2020-10-07 21:17:56 +02:00