Skip to content

chore(deps): update geojson requirement from 0.24 to 1.0 - #13

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/geojson-1.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/geojson-1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

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 @github

dependabot Bot commented on behalf of github Oct 18, 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.

@github-actions
github-actions Bot enabled auto-merge (squash) October 18, 2026 22:12
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.0...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 force-pushed the dependabot/cargo/geojson-1.0 branch from 3f794fe to 4872863 Compare October 18, 2026 22:18

This branch has not been deployed

No deployments
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.

0 participants