From cdb804c0509ff08ced35b3e79aad4eac9415f36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 14 Feb 2024 10:29:22 +0200 Subject: [PATCH] Declare and check MSRV --- .github/workflows/rtsp-types.yml | 28 ++------ Cargo.lock.msrv | 107 +++++++++++++++++++++++++++++++ Cargo.toml | 1 + 3 files changed, 113 insertions(+), 23 deletions(-) create mode 100644 Cargo.lock.msrv diff --git a/.github/workflows/rtsp-types.yml b/.github/workflows/rtsp-types.yml index c602635..17f2820 100644 --- a/.github/workflows/rtsp-types.yml +++ b/.github/workflows/rtsp-types.yml @@ -42,7 +42,7 @@ jobs: strategy: matrix: - toolchain: [stable, beta, nightly] + toolchain: ['1.58', stable, beta, nightly] steps: - uses: actions/checkout@v2 @@ -54,28 +54,10 @@ jobs: toolchain: ${{ matrix.toolchain }} override: true + - name: Use MSRV Cargo.lock + run: cp Cargo.lock.msrv Cargo.lock + if: matrix.toolchain == '1.58' + - name: Run tests run: | cargo test - - armv7-build: - runs-on: ubuntu-latest - - strategy: - matrix: - toolchain: [stable, beta, nightly] - - steps: - - uses: actions/checkout@v2 - - - name: Install ${{ matrix.toolchain }} - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.toolchain }} - target: armv7-unknown-linux-gnueabihf - override: true - - - name: Build - run: | - cargo build --target=armv7-unknown-linux-gnueabihf diff --git a/Cargo.lock.msrv b/Cargo.lock.msrv new file mode 100644 index 0000000..49bf8cd --- /dev/null +++ b/Cargo.lock.msrv @@ -0,0 +1,107 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "cookie-factory" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396de984970346b0d9e93d1415082923c679e5ae5c3ee3dcbd104f5610af126b" + +[[package]] +name = "form_urlencoded" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "idna" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" +dependencies = [ + "unicode-bidi", + "unicode-normalization", +] + +[[package]] +name = "memchr" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "percent-encoding" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" + +[[package]] +name = "rtsp-types" +version = "0.1.0" +dependencies = [ + "cookie-factory", + "nom", + "tinyvec", + "url", +] + +[[package]] +name = "tinyvec" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "unicode-bidi" +version = "0.3.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" + +[[package]] +name = "unicode-normalization" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "url" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", +] diff --git a/Cargo.toml b/Cargo.toml index 7d8b0e1..ac7645d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ keywords = ["rtsp", "network", "protocol", "multimedia", "streaming"] categories = ["network-programming", "multimedia"] description = "RTSP (RFC 7826) types, parser and serializer" readme = "README.md" +rust-version = "1.58" [dependencies] nom = "7.0"