Prepare for publishing on crates.io (#46)

* Update geozero

* Make maplibre- packages ready for publishing
This commit is contained in:
Max Ammann 2022-05-01 19:15:48 +02:00 committed by GitHub
parent 187cf9f5a9
commit a10ab2f888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 7 deletions

View File

@ -4,6 +4,9 @@ version = "0.1.0"
description = "A library with build tools for maplibre-rs"
categories = []
edition = "2021"
authors = ["Maximilian Ammann <max@maxammann.org>"]
license = "MIT OR Apache-2.0"
readme = "../README.md"
[dependencies]
naga = { version = "0.8", features = ["wgsl-in"] }

View File

@ -1,9 +1,12 @@
[package]
name = "maplibre-demo"
version = "0.1.0"
description = ""
categories = []
edition = "2021"
authors = ["Maximilian Ammann <max@maxammann.org>"]
license = "MIT OR Apache-2.0"
description = "Demo of maplibre"
readme = "../README.md"
[features]
web-webgl = ["maplibre/web-webgl"]
@ -11,7 +14,7 @@ enable-tracing = ["maplibre/enable-tracing", "tracing-subscriber", "tracing-trac
[dependencies]
env_logger = "0.9"
maplibre = { path = "../maplibre", version = "0.1.0" }
maplibre = { path = "../maplibre", version = "0.0.2" }
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", optional = true }

View File

@ -1,10 +1,12 @@
[package]
name = "maplibre"
version = "0.1.0"
authors = ["Maximilian Ammann <max@maxammann.org>"]
version = "0.0.2"
edition = "2021"
build = "build.rs"
authors = ["Maximilian Ammann <max@maxammann.org>"]
license = "MIT OR Apache-2.0"
description = "Native Maps for Web, Mobile and Desktop"
readme = "../README.md"
[features]
web-webgl = ["wgpu/webgl"]
@ -57,8 +59,8 @@ cgmath = "0.18"
geo = { version = "0.19" }
geo-types = { version = "0.7", features = ["use-rstar_0_9"] }
rstar = { version = "0.9" }
prost = "0.9"
geozero = { git = "https://github.com/georust/geozero", rev = "373b731", default-features = false, features = ["with-mvt", "with-geo"]}
prost = "0.10.1"
geozero = { version = "0.9.4", default-features = false, features = ["with-mvt", "with-geo"]}
tile-grid = "0.3"

View File

@ -267,7 +267,7 @@ impl FeatureProcessor for IndexProcessor {
}
/// End of feature geometry processing
fn geometry_end(&mut self) -> Result<(), GeozeroError> {
let geometry = self.geo_writer.geometry().clone();
let geometry = self.geo_writer.geometry().cloned().unwrap();
match geometry {
Geometry::Polygon(polygon) => self.geometries.push(