Skip to content

chore(deps): update geojson requirement from 0.24.1 to 1.0.0#993

Merged
gadomski merged 4 commits intomainfrom
dependabot/cargo/geojson-1.0.0
Mar 17, 2026
Merged

chore(deps): update geojson requirement from 0.24.1 to 1.0.0#993
gadomski merged 4 commits intomainfrom
dependabot/cargo/geojson-1.0.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 17, 2026

Updates the requirements on geojson to permit the latest version.

Changelog

Sourced from geojson's changelog.

v1.0.0 - 2025-03-16

  • BREAKING: Position is now a struct, rather than a type alias for Vec. The new struct uses the tinyvec crate, which allows for faster GeoJSON processing in the common (2-D) case by avoiding per-coordinate heap allocations.
    // BEFORE: Position *was* a Vec. A Vec is always allocated on the heap, which is slow.
    let position: Position = vec![1.0, 2.0];
    let x = position[0];
    // AFTER: Position is its own type, buildable from a Vec.
    let position: Position = vec![1.0, 2.0].into();
    // index access is unchanged
    let x = position[0];
    // Alternatively, you can now construct from an Array, avoiding the Vec's heap allocation.
    let position: Position = [1.0, 2.0].into();
    // equivalently:
    let position = Position::from([1.0, 2.0]);
    // You can still build 3D+ Positions. These higher dimension coordinates will use Heap storage.
    let position = Position::from([1.0, 2.0, 3.0]);
    let position = Position::from(vec![1.0, 2.0, 3.0, 4.0, 5.0, 6.0]);

  • Substantially speed up parsing (Benches show 30% reduction). This was essentially a rewrite of our deserialization logic. Instead of going from input -> serde_json::JsonObject -> geojson types we now go directly from input -> geojson types.
  • Deserialization errors now include line number and column position. Before:

    Encountered neither number type nor string type for 'id' field on 'feature' object: {} After: Error while deserializing GeoJSON: Feature 'id' must be a string or a number at line 3 column 11

  • BREAKING: geojson::Error has had many cases removed and some new cases added, reflecting the deserialization rewrite.
  • BREAKING: TryInto/From implementations for serde_json::Value and serde_json::Object have been removed now that they are not used for deserialization.
  • type is now the first field when serializing GeoJSON objects.
  • Since feature.id is optional, we now accept "id: null", whereas previously you were required to omit the id key. Now either is acceptable.
  • Fix: Return [] instead of [[]] for POLYGON EMPTY.
  • Potentially breaking: De/Serializing your custom structs with serde now maps your struct's id field to Feature.id, rather than to Feature.properties.id.
  • Fix geo_rect_conversion_test to conform to the correctly-wound Polygon output from geo_types::geometry::Rect.to_polygon

... (truncated)

Commits
  • f6eafed prepare for 1.0.0 release
  • 8c12816 prepare for 0.25.0 release
  • c64043f simpler docs
  • fa96c26 update to rust 2024 (#273)
  • 3c362b4 Additional ergonomic constructors (for Geometry and FeatureCollection) (#271)
  • f5fffd0 Remove methods related to json to/from now that we ser/de directly (#270)
  • de445d9 Speed up parsing by deserializing directly to geojson (without intermediate s...
  • a7870db Move code around - no new functionality (#268)
  • 37ea3c9 Merge branch 'mkirk/derive-serialization-3'
  • 67c07a1 derive Serialization rather than manual impls
  • Additional commits viewable in compare view

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [geojson](https://github.com/georust/geojson) to permit the latest version.
- [Changelog](https://github.com/georust/geojson/blob/main/CHANGES.md)
- [Commits](georust/geojson@0.24.1...v1.0.0)

---
updated-dependencies:
- dependency-name: geojson
  dependency-version: 1.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Mar 17, 2026
@dependabot dependabot bot requested a review from gadomski as a code owner March 17, 2026 02:27
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Mar 17, 2026
@gadomski gadomski enabled auto-merge (squash) March 17, 2026 18:15
@gadomski gadomski merged commit 6442b7e into main Mar 17, 2026
12 checks passed
@gadomski gadomski deleted the dependabot/cargo/geojson-1.0.0 branch March 17, 2026 18:16
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.

1 participant