-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Complete the missing TLS feature. * Make the `cfg` attributes more clear. * Format the project issued by command `cargo +nightly fmt`. * Small changes on cargo file. * Update CHANGES.md. * Add documentation for `Tls::get_ssl_acceptor_builder()` and remove unused imports. * Add the `cfg` macro with required feature on `TLS` tests. * Update actix-settings/src/settings/tls.rs Co-authored-by: Rob Ede <[email protected]> * Copy the workflow steps related to OpenSSL for windows from [actix-web workflow](https://github.com/actix/actix-web/blob/a7375b687658790122c72e27e476affdd7bc1cb6/.github/workflows/ci.yml#L38-L45). * ci: install openssl 1.1.1 * Replaced `apply_settings` with `try_apply_settings` for a better error handling. * Updated the example. * Add `OpenSSL` error. * Restrict `OpenSSL` error only for `tls` feature. * Rename feature `tls` to `openssl`. * Add doc feature `broken_intra_doc_links` to `get_ssl_acceptor_builder` function. --------- Co-authored-by: Rob Ede <[email protected]>
- Loading branch information
Showing
10 changed files
with
140 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,15 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install OpenSSL | ||
if: matrix.target.os == 'windows-latest' | ||
shell: bash | ||
run: | | ||
set -e | ||
choco install openssl --version=1.1.1.2100 -y --no-progress | ||
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' >> $GITHUB_ENV | ||
echo "RUSTFLAGS=-C target-feature=+crt-static" >> $GITHUB_ENV | ||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,6 +92,15 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install OpenSSL | ||
if: matrix.target.os == 'windows-latest' | ||
shell: bash | ||
run: | | ||
set -e | ||
choco install openssl --version=1.1.1.2100 -y --no-progress | ||
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' >> $GITHUB_ENV | ||
echo "RUSTFLAGS=-C target-feature=+crt-static" >> $GITHUB_ENV | ||
- name: Install Rust (${{ matrix.version.name }}) | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters