Skip to content

build(deps): bump geojson from 0.24.2 to 1.0.0#8

Merged
wildsurfer merged 2 commits into
mainfrom
dependabot/cargo/geojson-1.0.0
May 15, 2026
Merged

build(deps): bump geojson from 0.24.2 to 1.0.0#8
wildsurfer merged 2 commits into
mainfrom
dependabot/cargo/geojson-1.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 23, 2026

Copy link
Copy Markdown
Contributor

Bumps geojson from 0.24.2 to 1.0.0.

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 compatibility score

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot @github

dependabot Bot commented on behalf of github Mar 23, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot force-pushed the dependabot/cargo/geojson-1.0.0 branch from 33bdfaf to 7deb83d Compare March 24, 2026 08:49
@wildsurfer wildsurfer force-pushed the dependabot/cargo/geojson-1.0.0 branch from 7deb83d to 47e52cd Compare May 15, 2026 10:29
@wildsurfer

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github May 15, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

dependabot Bot and others added 2 commits May 15, 2026 11:44
Bumps [geojson](https://github.com/georust/geojson) from 0.24.2 to 1.0.0.
- [Changelog](https://github.com/georust/geojson/blob/main/CHANGES.md)
- [Commits](georust/geojson@0.24.2...v1.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Value enum variants are now struct-style, Position is its own type.
Also switch to non-deprecated GeometryValue alias.
@wildsurfer wildsurfer force-pushed the dependabot/cargo/geojson-1.0.0 branch from 47e52cd to daaf459 Compare May 15, 2026 10:44
@wildsurfer wildsurfer merged commit dbab088 into main May 15, 2026
1 check passed
@wildsurfer wildsurfer deleted the dependabot/cargo/geojson-1.0.0 branch May 15, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant