- Remove
chrono
dependency - update geo-types to 0.7.8
- bump MSRV to 1.69 to keep CI happy
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());
- 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
- Allow usage of
rustls-tls
feature
- Update reqwest and hyper
- Upgrade geo-types
- Allow optional parameters for Opencage
- Derive
Clone
for Opencage results
- 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