Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the cargo group in /backend with 4 updates #205

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 1, 2024

Bumps the cargo group in /backend with 4 updates: tokio, serde_json, sqlx and clap.

Updates tokio from 1.38.1 to 1.39.2

Release notes

Sourced from tokio's releases.

Tokio v1.39.2

1.39.2 (July 27th, 2024)

This release fixes a regression where the select! macro stopped accepting expressions that make use of temporary lifetime extension. (#6722)

#6722: tokio-rs/tokio#6722

Tokio v1.39.1

1.39.1 (July 23rd, 2024)

This release reverts "time: avoid traversing entries in the time wheel twice" because it contains a bug. (#6715)

#6715: tokio-rs/tokio#6715

Tokio v1.39.0

1.39.0 (July 23rd, 2024)

  • This release bumps the MSRV to 1.70. (#6645)
  • This release upgrades to mio v1. (#6635)
  • This release upgrades to windows-sys v0.52 (#6154)

Added

  • io: implement AsyncSeek for Empty (#6663)
  • metrics: stabilize num_alive_tasks (#6619, #6667)
  • process: add Command::as_std_mut (#6608)
  • sync: add watch::Sender::same_channel (#6637)
  • sync: add {Receiver,UnboundedReceiver}::{sender_strong_count,sender_weak_count} (#6661)
  • sync: implement Default for watch::Sender (#6626)
  • task: implement Clone for AbortHandle (#6621)
  • task: stabilize consume_budget (#6622)

Changed

  • io: improve panic message of ReadBuf::put_slice() (#6629)
  • io: read during write in copy_bidirectional and copy (#6532)
  • runtime: replace num_cpus with available_parallelism (#6709)
  • task: avoid stack overflow when passing large future to block_on (#6692)
  • time: avoid traversing entries in the time wheel twice (#6584)
  • time: support IntoFuture with timeout (#6666)
  • macros: support IntoFuture with join! and select! (#6710)

Fixed

  • docs: fix docsrs builds with the fs feature enabled (#6585)
  • io: only use short-read optimization on known-to-be-compatible platforms (#6668)
  • time: fix overflow panic when using large durations with Interval (#6612)

Added (unstable)

... (truncated)

Commits

Updates serde_json from 1.0.120 to 1.0.121

Release notes

Sourced from serde_json's releases.

v1.0.121

Commits
  • eca2658 Release 1.0.121
  • b0d678c Merge pull request #1160 from iex-rs/efficient-position
  • b1edc7d Optimize position search in error path
  • 40dd7f5 Merge pull request #1159 from iex-rs/fix-recursion
  • 6a306e6 Move call to tri! out of check_recursion!
  • 3f1c6de Ignore byte_char_slices clippy lint in test
  • 3fd6f5f Merge pull request #1153 from dpathakj/master
  • fcb5e83 Correct documentation URL for Value's Index impl.
  • See full diff in compare view

Updates sqlx from 0.7.4 to 0.8.0

Changelog

Sourced from sqlx's changelog.

0.8.0 - 2024-07-22

70 pull requests were merged this release cycle.

#2697 was merged the same day as release 0.7.4 and so was missed by the automatic CHANGELOG generation.

Breaking

  • [#2697]: fix(macros): only enable chrono when time is disabled [[@​saiintbrisson]]
  • [#2973]: Generic Associated Types in Database, replacing HasValueRef, HasArguments, HasStatement [[@​nitn3lav]]
  • [#2482]: chore: bump syn to 2.0 [[@​saiintbrisson]]
    • Deprecated type ascription syntax in the query macros was removed.
  • [#2736]: Fix describe on PostgreSQL views with rules [[@​tsing]]
    • Potentially breaking: nullability inference changes for Postgres.
  • [#2869]: Implement PgHasArrayType for all references [[@​tylerhawkes]]
    • Conflicts with existing manual implementations.
  • [#2940]: fix: Decode and Encode derives (#1031) [[@​benluelo]]
    • Changes lifetime obligations for field types.
  • [#3064]: Sqlite explain graph [[@​tyrelr]]
    • Potentially breaking: nullability inference changes for SQLite.
  • [#3123]: Reorder attrs in sqlx::test macro [[@​bobozaur]]
    • Potentially breaking: attributes on #[sqlx::test] usages are applied in the correct order now.
  • [#3126]: Make Encode return a result [[@​FSMaxB]]
  • [#3130]: Add version information for failed cli migration (#3129) [[@​FlakM]]
    • Breaking changes to MigrateError.
  • [#3181]: feat: no tx migration [[@​cleverjam]]
    • (Postgres only) migrations that should not run in a transaction can be flagged by adding -- no-transaction to the beginning.
    • Breaking change: added field to Migration
  • [#3184]: [BREAKING} fix(sqlite): always use i64 as intermediate when decoding [[@​abonander]]
    • integer decoding will now loudly error on overflow instead of silently truncating.
    • some usages of the query!() macros might change an i32 to an i64.
  • [#3252]: fix #[derive(sqlx::Type)] in Postgres [[@​abonander]]
    • Manual implementations of PgHasArrayType for enums will conflict with the generated one. Delete the manual impl or add #[sqlx(no_pg_array)] where conflicts occur.
    • Type equality for PgTypeInfo is now schema-aware.
  • [#3329]: fix: correct handling of arrays of custom types in Postgres [[@​abonander]]
    • Potential breaking change: PgTypeInfo::with_name() infers types that start with _ to be arrays of the un-prefixed type. Wrap type names in quotes to bypass this behavior.
  • [#3356]: breaking: fix name collision in FromRow, return Error::ColumnDecode for TryFrom errors [[@​abonander]]
    • Breaking behavior change: errors with #[sqlx(try_from = "T")] now return Error::ColumnDecode instead of Error::ColumnNotFound.
    • Breaking because #[sqlx(default)] on an individual field or the struct itself would have previously suppressed the error. This doesn't seem like good behavior as it could result in some potentially very difficult bugs.
      • Instead, create a wrapper implementing From and apply the default explicitly.
  • [#3337]: allow rename with rename_all (close #2896) [[@​DirectorX]]
    • Changes the precedence of #[sqlx(rename)] and #[sqlx(rename_all)] to match the expected behavior (rename wins).
  • [#3285]: fix: use correct names for sslmode options [[@​lily-mosquitoes]]
    • Changes the output of ConnectOptions::to_url_lossy() to match what parsing expects.

Added

... (truncated)

Commits
  • da0ffd7 chore: bump version to 0.8.0
  • 9e1aa74 chore: prepare changelog entry for 0.8.0
  • c90a7ff fix: enable clock and std features of chrono for the workspace
  • c50572e fix: sqlite update_hook char types (#3288)
  • 940d9fb Add example on how to use Transaction as Executor (#3311)
  • eaad7b2 doc: Minor rust docs fixes (#3312)
  • 4fc5b30 breaking: fix name collision in FromRow, return Error::ColumnDecode for `...
  • b37b34b chore:added a testcase for sqlx migrate add ... (#3352)
  • 543395d fix: build script new line at eof (#3353)
  • 4683cc3 Add support for PostgreSQL HSTORE data type (#3343)
  • Additional commits viewable in compare view

Updates clap from 4.5.10 to 4.5.13

Release notes

Sourced from clap's releases.

v4.5.13

[4.5.13] - 2024-07-31

Fixes

  • (derive) Improve error message when #[flatten]ing an optional #[group(skip)]
  • (help) Properly wrap long subcommand descriptions in help

v4.5.12

[4.5.12] - 2024-07-31

Changelog

Sourced from clap's changelog.

[4.5.13] - 2024-07-31

Fixes

  • (derive) Improve error message when #[flatten]ing an optional #[group(skip)]
  • (help) Properly wrap long subcommand descriptions in help

[4.5.12] - 2024-07-31

[4.5.11] - 2024-07-25

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the cargo group in /backend with 4 updates: [tokio](https://github.com/tokio-rs/tokio), [serde_json](https://github.com/serde-rs/json), [sqlx](https://github.com/launchbadge/sqlx) and [clap](https://github.com/clap-rs/clap).


Updates `tokio` from 1.38.1 to 1.39.2
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](tokio-rs/tokio@tokio-1.38.1...tokio-1.39.2)

Updates `serde_json` from 1.0.120 to 1.0.121
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.120...v1.0.121)

Updates `sqlx` from 0.7.4 to 0.8.0
- [Changelog](https://github.com/launchbadge/sqlx/blob/main/CHANGELOG.md)
- [Commits](launchbadge/sqlx@v0.7.4...v0.8.0)

Updates `clap` from 4.5.10 to 4.5.13
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](clap-rs/clap@clap_complete-v4.5.10...v4.5.13)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo
- dependency-name: sqlx
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: cargo
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust labels Aug 1, 2024
@praseodym praseodym requested review from praseodym and cikzh August 1, 2024 10:00
@praseodym praseodym self-assigned this Aug 1, 2024
@praseodym
Copy link
Contributor

After the sqlx version bump to 0.8.0, Clippy complains about the [sqlx::test] macro usage being incorrect:

error: expected string literal
   --> src/polling_station/mod.rs:176:27
    |
176 |     #[sqlx::test(fixtures(path = "../../fixtures", scripts("elections", "polling_stations")))]
    |                           ^^^^

error: expected string literal
   --> src/polling_station/mod.rs:300:27
    |
300 |     #[sqlx::test(fixtures(path = "../../fixtures", scripts("elections")))]
    |                           ^^^^

I feel like this is a bug in sqlx 0.8.0 because their documentation still includes #[sqlx::test(fixtures(path = "./fixtures", scripts("users", "posts")))].

@cikzh what do you think?

@cikzh
Copy link
Contributor

cikzh commented Aug 1, 2024

@praseodym Could be, I can't find any mention of it in the changelogs or issues. Directly referencing the files seems to fix it though:

    #[sqlx::test(fixtures("../../fixtures/elections.sql", "../../fixtures/polling_stations.sql"))]

@praseodym
Copy link
Contributor

Reported the issue to sqlx in launchbadge/sqlx#3395 and used the workaround in 678210d. We can revert this workaround once the issue gets fixed.

@praseodym praseodym added this pull request to the merge queue Aug 1, 2024
Merged via the queue into main with commit 57faf18 Aug 1, 2024
5 checks passed
@praseodym praseodym deleted the dependabot/cargo/backend/cargo-6a3ab7eae2 branch August 1, 2024 12:48
@praseodym praseodym added the rust Pull requests that update Rust code label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants