Skip to content

Commit c3f1dee

Browse files
committed
Update usage of shape crate for 0.7.0-preview.1+ releases.
We are updating the `shape` crate before introducing any abstract types-related changes, because this update benefits all connect spec versions, while still allowing us to preserve backwards/forwards compatibility for older versions (connect/v0.3 and earlier). It would be a shame to have to maintain two slightly different `shape` APIs (hogging the same cargo package name) in order to keep connect/v0.3 and earlier working as before. One of the goals of this commit is to show how limited/reasonable the updates are, because the new functionality coming in [email protected] does not radically alter the behavior of the library (at least not in the ways we were previously using it). Some notable (expected) changes: we've started using a `shape.locations()` method instead of accessing/mutating the `shape.locations` vector directly, the new shape name tracking system allows better error messages, and shape pretty-printing may now include newlines for readability.
1 parent 9df22d9 commit c3f1dee

File tree

36 files changed

+721
-322
lines changed

36 files changed

+721
-322
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6299,9 +6299,9 @@ dependencies = [
62996299

63006300
[[package]]
63016301
name = "shape"
6302-
version = "0.6.0"
6302+
version = "0.7.0-preview.1"
63036303
source = "registry+https://github.com/rust-lang/crates.io-index"
6304-
checksum = "48f06e8e6e2486e2ca1fc86254acb38bca0cd7da30af443e8d63958c66738f88"
6304+
checksum = "3d8a224fea1e1bd0e3c2739db60235cd3704ccedab58fd9214d315e345d4779a"
63056305
dependencies = [
63066306
"apollo-compiler",
63076307
"indexmap 2.12.1",

apollo-federation/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ url = "2"
5252
either = "1.13.0"
5353
tracing = "0.1.40"
5454
ron = { version = "0.12.0", optional = true }
55-
shape = "0.6.0"
55+
shape = { version = "=0.7.0-preview.1" }
5656
form_urlencoded = "1.2.1"
5757
parking_lot = "0.12.4"
5858
mime = "0.3.17"

0 commit comments

Comments
 (0)