Skip to content

Bump geojson from 0.24.2 to 1.0.0 in /rust/case2geojson#154

Merged
vulnmaster merged 2 commits intomainfrom
dependabot/cargo/rust/case2geojson/geojson-1.0.0
Mar 17, 2026
Merged

Bump geojson from 0.24.2 to 1.0.0 in /rust/case2geojson#154
vulnmaster merged 2 commits intomainfrom
dependabot/cargo/rust/case2geojson/geojson-1.0.0

Conversation

@dependabot
Copy link
Contributor

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

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

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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Mar 16, 2026
@ajnelson-nist
Copy link
Member

@dependabot rebase

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>
@dependabot dependabot bot force-pushed the dependabot/cargo/rust/case2geojson/geojson-1.0.0 branch from a1c81df to 8703e58 Compare March 16, 2026 20:46
References:
* georust/geojson#264
* georust/geojson#265

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
@vulnmaster vulnmaster self-assigned this Mar 17, 2026
@vulnmaster
Copy link
Contributor

Reviewed PR using Opus 4.6 with no issues found.

@vulnmaster vulnmaster merged commit 6c70f21 into main Mar 17, 2026
16 checks passed
@vulnmaster vulnmaster deleted the dependabot/cargo/rust/case2geojson/geojson-1.0.0 branch March 17, 2026 16:21
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.

2 participants