Skip to content

Commit

Permalink
MSRV 1.61 (#248)
Browse files Browse the repository at this point in the history
* Remove proc-macro2 and quote direct deps
---------

Co-authored-by: Gabriel Féron <[email protected]>
  • Loading branch information
rubdos and gferon authored Sep 23, 2023
1 parent 8305357 commit 35f9656
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,22 @@ jobs:
args: --manifest-path ${{ matrix.project }}/Cargo.toml

build:
name: Build
name: Build (${{ matrix.project }}, Rust ${{ matrix.toolchain }})
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.can-fail }}
strategy:
fail-fast: false
matrix:
project: ["libsignal-service-actix", "libsignal-service-hyper"]
toolchain: ["stable", "nightly"]
can-fail: [false]
coverage: [false, true]
exclude:
- toolchain: stable
coverage: true
- toolchain: beta
coverage: true
- toolchain: nightly
coverage: false
include:
- project: "libsignal-service-actix"
# toolchain: "1.52.1"
toolchain: "nightly-2021-05-06"
features: "rust-1-52"
can-fail: true
toolchain: "1.61"
coverage: false
steps:
- uses: actions/checkout@v3
Expand All @@ -67,20 +60,20 @@ jobs:
if: ${{ !matrix.coverage }}
with:
command: test
args: --all-targets --no-fail-fast --manifest-path ${{ matrix.project }}/Cargo.toml --features "${{ matrix.features }}"
args: --all-targets --no-fail-fast --manifest-path ${{ matrix.project }}/Cargo.toml

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --manifest-path ${{ matrix.project }}/Cargo.toml --features "${{ matrix.features }}"
args: --all-targets --manifest-path ${{ matrix.project }}/Cargo.toml

- name: Run tests
uses: actions-rs/cargo@v1
if: ${{ matrix.coverage }}
with:
command: test
args: --all-targets --no-fail-fast --manifest-path ${{ matrix.project }}/Cargo.toml --features "${{ matrix.features }}"
args: --all-targets --no-fail-fast --manifest-path ${{ matrix.project }}/Cargo.toml
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If you're using a Cargo workspace, you should add the `[patch.crates.io]` sectio

### Note on supported Rust versions

`libsignal-service-rs` is the at the core of [Whisperfish][whisperfish], a SailfishOS application. The SailfishOS Rust compiler is relatively old, and therefore the MSRV for `libsignal-service-actix` maps on the compiler for that operating system, including some lag. At moment of writing, this is **Rust 1.52.1** (soon to be updated to 1.61).
`libsignal-service-rs` is the at the core of [Whisperfish][whisperfish], a SailfishOS application. The SailfishOS Rust compiler is relatively old, and therefore the MSRV for `libsignal-service-actix` maps on the compiler for that operating system, including some lag. At moment of writing, this is **Rust 1.61**.

For other platforms, we don't mandate MSRV.

Expand Down Expand Up @@ -78,4 +78,4 @@ version 2.0 (https://www.mozilla.org/en-US/MPL/2.0/).
[whisperfish]: https://gitlab.com/whisperfish/whisperfish/
[presage]: https://github.com/whisperfish/presage/
[ci_workflow]: https://github.com/whisperfish/libsignal-service-rs/actions/workflows/ci.yaml?query=branch:main
[rustdocs]: https://whisperfish.github.io/libsignal-service-rs/libsignal_service
[rustdocs]: https://whisperfish.github.io/libsignal-service-rs/libsignal_service
6 changes: 0 additions & 6 deletions libsignal-service-actix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ base64 = "0.13"

phonenumber = "0.3"

proc-macro2 = { version = "1.0.66", optional = true }
quote = { version = "1.0.33", optional = true }

[dev-dependencies]
env_logger = "0.9"
image = { version = "0.23", default-features = false, features = ["png"] }
Expand All @@ -42,6 +39,3 @@ qrcode = "0.12"
structopt = "0.3"
tokio = { version = "1", features = ["macros"] }
anyhow = "1.0"

[features]
rust-1-52 = ["proc-macro2", "quote"]

0 comments on commit 35f9656

Please sign in to comment.