8 Commits

Author SHA1 Message Date
geoffsee
411115316b update ci 2025-08-28 15:23:19 -04:00
geoffsee
cfbf312e1d Restore github old workflows 2025-08-28 15:14:32 -04:00
geoffsee
c3e38d45b8 - Downgrade edition from 2024 to 2021 in Cargo.toml files for compatibility.
- Fix nested `if let` statements to improve readability and correctness.
- Reorganize imports for consistency and structure.
2025-08-28 15:09:53 -04:00
geoffsee
c3b552468b Format request_with_options calls for improved readability. 2025-08-28 15:03:29 -04:00
geoffsee
b96141857e Update HTTP client methods to use request_with_options for improved flexibility. Adjusted related test cases and examples accordingly. 2025-08-28 15:01:51 -04:00
geoffsee
37fa59a88a run cargo fmt 2025-08-28 14:48:14 -04:00
geoffsee
bd5a84fe95 Add RequestOptions for per-request customization with headers and timeouts
- Introduced the `RequestOptions` struct for flexible HTTP request configurations.
- Added `request_with_options` and `post_with_options` methods.
- Deprecated `request` and `post` in favor of the new methods.
- Updated examples and tests to reflect the new API.
2025-08-28 14:46:07 -04:00
geoffsee
3646a37547 0.3.4 2025-08-28 14:21:36 -04:00

View File

@@ -12,6 +12,28 @@ jobs:
docs:
name: Build and validate documentation
runs-on: ubuntu-latest
defaults:
run:
working-directory: crates/hyper-custom-cert
strategy:
fail-fast: false
matrix:
include:
- name: default-features
features: ""
no-default-features: false
- name: no-default-features
features: ""
no-default-features: true
- name: rustls
features: "rustls"
no-default-features: true
- name: insecure-dangerous
features: "insecure-dangerous"
no-default-features: false
- name: all-features
features: "rustls,insecure-dangerous"
no-default-features: true
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -31,11 +53,30 @@ jobs:
- name: Build documentation
shell: bash
run: cargo doc -p hyper-custom-cert --no-deps
run: |
FLAGS=""
if [ "${{ matrix.no-default-features }}" = "true" ]; then FLAGS="$FLAGS --no-default-features"; fi
if [ -n "${{ matrix.features }}" ]; then FLAGS="$FLAGS --features ${{ matrix.features }}"; fi
echo "Running: cargo doc $FLAGS --no-deps"
cargo doc $FLAGS --no-deps
- name: Check documentation warnings
shell: bash
run: |
FLAGS=""
if [ "${{ matrix.no-default-features }}" = "true" ]; then FLAGS="$FLAGS --no-default-features"; fi
if [ -n "${{ matrix.features }}" ]; then FLAGS="$FLAGS --features ${{ matrix.features }}"; fi
echo "Running: cargo doc $FLAGS --no-deps"
RUSTDOCFLAGS="-D warnings" cargo doc $FLAGS --no-deps
- name: Test documentation examples
shell: bash
run: cargo test --doc
run: |
FLAGS=""
if [ "${{ matrix.no-default-features }}" = "true" ]; then FLAGS="$FLAGS --no-default-features"; fi
if [ -n "${{ matrix.features }}" ]; then FLAGS="$FLAGS --features ${{ matrix.features }}"; fi
echo "Running: cargo test --doc $FLAGS"
cargo test --doc $FLAGS
test:
name: Test before release