From 9ea40afcb932cefcf6a8874bf93fa1fa25651178 Mon Sep 17 00:00:00 2001 From: Hugo Hakim Damer Date: Tue, 16 Jul 2024 18:30:01 +0200 Subject: [PATCH] fixup! feat: improve URI handling by basing it on the libcoap type. --- .github/workflows/ci.yml | 12 ++++++------ .idea/runConfigurations/Test.xml | 5 +---- libcoap/src/message/request.rs | 3 +-- libcoap/src/message/response.rs | 1 - libcoap/tests/common/mod.rs | 5 ++--- libcoap/tests/dtls_client_server_test.rs | 2 +- libcoap/tests/tcp_client_server_test.rs | 2 +- libcoap/tests/udp_client_server_test.rs | 2 +- 8 files changed, 13 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cdf4ac..5a2f431 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,23 +24,23 @@ jobs: - uses: actions/checkout@v3 with: submodules: true - - uses: dtolnay/rust-toolchain@master + - uses: dtolnay/rust-toolchain@stable with: components: rust-src - toolchain: nightly + toolchain: stable - if: matrix.dtls_backend == 'gnutls' uses: awalsh128/cache-apt-pkgs-action@latest with: packages: libgnutls28-dev libgnutls30 version: 1.0 - if: matrix.crate == 'libcoap-rs' && matrix.dtls_backend != 'gnutls' - run: cargo test -p ${{ matrix.crate }} --no-default-features --features dtls,tcp,vendored --features dtls_${{ matrix.dtls_backend }} --features dtls_${{ matrix.dtls_backend }}_vendored --no-fail-fast -- -Z unstable-options --report-time --ensure-time + run: cargo test -p ${{ matrix.crate }} --no-default-features --features dtls,tcp,vendored --features dtls_${{ matrix.dtls_backend }} --features dtls_${{ matrix.dtls_backend }}_vendored --no-fail-fast - if: matrix.crate == 'libcoap-rs' && matrix.dtls_backend == 'gnutls' - run: cargo test -p ${{ matrix.crate }} --no-default-features --features dtls,tcp,vendored --features dtls_${{ matrix.dtls_backend }} --no-fail-fast -- -Z unstable-options --report-time --ensure-time + run: cargo test -p ${{ matrix.crate }} --no-default-features --features dtls,tcp,vendored --features dtls_${{ matrix.dtls_backend }} --no-fail-fast - if: matrix.crate == 'libcoap-sys' && matrix.dtls_backend != 'gnutls' - run: cargo test -p ${{ matrix.crate }} --features dtls,dtls_backend_${{ matrix.dtls_backend }},dtls_backend_${{ matrix.dtls_backend }}_vendored --no-fail-fast -- -Z unstable-options --report-time --ensure-time + run: cargo test -p ${{ matrix.crate }} --features dtls,dtls_backend_${{ matrix.dtls_backend }},dtls_backend_${{ matrix.dtls_backend }}_vendored --no-fail-fast - if: matrix.crate == 'libcoap-sys' && matrix.dtls_backend == 'gnutls' - run: cargo test -p ${{ matrix.crate }} --features dtls,dtls_backend_${{ matrix.dtls_backend }} --no-fail-fast -- -Z unstable-options --report-time --ensure-time + run: cargo test -p ${{ matrix.crate }} --features dtls,dtls_backend_${{ matrix.dtls_backend }} --no-fail-fast lint: runs-on: ubuntu-latest diff --git a/.idea/runConfigurations/Test.xml b/.idea/runConfigurations/Test.xml index cc90d30..c24ebd0 100644 --- a/.idea/runConfigurations/Test.xml +++ b/.idea/runConfigurations/Test.xml @@ -2,10 +2,7 @@