Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 2.28 KB

CHANGES.md

File metadata and controls

74 lines (55 loc) · 2.28 KB

Changes

unreleased

  • Remove chrono dependency
  • update geo-types to 0.7.8
  • bump MSRV to 1.69 to keep CI happy

Breaking Changes

Due to previous security issues caused by the chrono crate the NaiveDateTime was replaces by a UnixTime type:

- use chrono::NaiveDateTime;
- use geocoding::opencage::Timestamp;
+ use geocoding::opencage::{Timestamp, UnixTime};

  let created_http = "Mon, 16 May 2022 14:52:47 GMT".to_string();

  let ts_in_seconds = 1_652_712_767_i64;
- let created_unix = NaiveDateTime::from_timestamp(ts_in_seconds, 0);
+ let created_unix = UnixTime::from_seconds(ts_in_seconds);

  let timestamp = Timestamp { created_http, created_unix };

+ assert_eq!(ts_in_seconds, created_unix.as_seconds());

0.4.0

  • Update CI to use same Rust versions as geo
  • Switch GeoAdmin API to WGS84
  • Migrate to Github Actions
  • Update tests and dependencies
  • Update geo-types
  • Derive Debug where necessary
  • Fix OpenCage schema #55

0.3.1

  • Allow usage of rustls-tls feature

0.3.0

0.2.0

  • Made Opencage and Openstreetmap responses/results serializable so it's easier to store them afterwards
  • Replace Failure with Thiserror
  • Update geo-types to 0.5
  • Update reqwest and hyper

0.1.0

  • Added OpenStreetMap provider
  • Fixes to keep up with OpenCage schema updates
  • Switch to 2018 edition, use of Failure, more robust OpenCage schema definition, more ergonomic specification of bounds for OpenCage