Skip to content

Commit 19ab41c

Browse files
authored
Upgrade versions of some dependencies (#1886)
* Upgrade some code for MSRV 1.65 Now that our MSRV is 1.65, we can clean up some code. Makes progress on #67 * Upgrade versions of some dependencies Now that our MSRV is 1.65, it unlocks upgrading some dependencies' versions.
1 parent 7349fe0 commit 19ab41c

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191
set -eo pipefail
192192
# Override the exising `syn` dependency with one which requires an exact
193193
# version.
194-
cargo add -p zerocopy-derive 'syn@=2.0.46'
194+
cargo add -p zerocopy-derive 'syn@=2.0.79'
195195
196196
- name: Configure environment variables
197197
run: |
@@ -613,7 +613,7 @@ jobs:
613613
#
614614
# TODO(#1595): Debug why this step is still necessary after #1564 and
615615
# maybe remove it.
616-
cargo add -p zerocopy-derive 'syn@=2.0.46' &> /dev/null
616+
cargo add -p zerocopy-derive 'syn@=2.0.79' &> /dev/null
617617
618618
cargo check --workspace --tests &> /dev/null &
619619
cargo metadata &> /dev/null &

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ zerocopy-derive = { version = "=0.9.0-alpha.0", path = "zerocopy-derive", option
7171
zerocopy-derive = { version = "=0.9.0-alpha.0", path = "zerocopy-derive" }
7272

7373
[dev-dependencies]
74-
itertools = "0.11"
74+
itertools = "0.13.0"
7575
rand = { version = "0.8.5", default-features = false, features = ["small_rng"] }
76-
rustversion = "1.0"
77-
static_assertions = "1.1"
76+
rustversion = "1.0.17"
77+
static_assertions = "1.1.0"
7878
testutil = { path = "testutil" }
7979
# Pinned to a specific version so that the version used for local development
8080
# and the version used in CI are guaranteed to be the same. Future versions
8181
# sometimes change the output format slightly, so a version mismatch can cause
8282
# CI test failures.
83-
trybuild = { version = "=1.0.89", features = ["diff"] }
83+
trybuild = { version = "=1.0.90", features = ["diff"] }
8484
# In tests, unlike in production, zerocopy-derive is not optional
8585
zerocopy-derive = { version = "=0.9.0-alpha.0", path = "zerocopy-derive" }
8686
# TODO(#381) Remove this dependency once we have our own layout gadgets.

zerocopy-derive/Cargo.toml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,17 @@ proc-macro = true
3232
[dependencies]
3333
proc-macro2 = "1.0.1"
3434
quote = "1.0.10"
35-
syn = { version = "2.0.46", features = ["full"] }
35+
syn = { version = "2.0.79", features = ["full"] }
3636

3737
[dev-dependencies]
3838
dissimilar = "1.0.9"
39-
# We don't use this directly, but trybuild does. On the MSRV toolchain, the
40-
# version resolver fails to select any version for once_cell unless we
41-
# depend on it directly.
42-
once_cell = "=1.9"
43-
# This is the latest version which is compatible with `syn` 2.0.46, which we pin
44-
# to in CI for MSRV compatibility reasons.
45-
prettyplease = "=0.2.17"
46-
rustversion = "1.0"
47-
static_assertions = "1.1"
39+
prettyplease = "0.2.22"
40+
rustversion = "1.0.17"
41+
static_assertions = "1.1.0"
4842
testutil = { path = "../testutil" }
4943
# Pinned to a specific version so that the version used for local development
5044
# and the version used in CI are guaranteed to be the same. Future versions
5145
# sometimes change the output format slightly, so a version mismatch can cause
5246
# CI test failures.
53-
trybuild = { version = "=1.0.89", features = ["diff"] }
47+
trybuild = { version = "=1.0.90", features = ["diff"] }
5448
zerocopy = { path = "../", features = ["derive"] }

0 commit comments

Comments
 (0)