osm-without-borders / cosmogony

easy to use & easy to update geographic regions
http://cosmogony.world
Apache License 2.0
103 stars 15 forks source link

Unable to build cosmogony as described into README.md + Pull Request #152

Open hznor opened 1 year ago

hznor commented 1 year ago

Unable to build cosmogony as described into README.md + Pull Request

hznor@local:~/mimirsbrunn/cosmogony$ cargo build --release

[...]

  Compiling termcolor v1.1.3
   Compiling heck v0.4.0
   Compiling geo-types v0.7.7
   Compiling flat_map v0.0.10
error: expected `,`, found `.`
   --> /home/hznor/.cargo/registry/src/github.com-1ecc6299db9ec823/geo-types-0.7.7/src/geometry/geometry_collection.rs:111:25
    |
111 | #[deprecated(since = 0.7.5, note = "Use `GeometryCollection::from(vec![geom])` instead.")]
    |                         ^ expected `,`

   Compiling smartstring v0.2.10
   Compiling clap_derive v4.0.13
   Compiling clap_lex v0.3.0
error: could not compile `geo-types` due to previous error
warning: build failed, waiting for other jobs to finish...

This typo has since been fixed in the repo: georust/geo. Incriminated line 111:

Now corrected by:

The solution seems to be to upgrade the geo-types dependency to version 0.7.8.

I have sent a Pull Request to address this issue.