# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "d3_geo_rs" version = "3.0.1" authors = ["martin "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A port of D3/d3-geo" readme = "README.md" keywords = [ "graphics", "d3-geo", ] categories = ["graphics"] license = "MIT" repository = "https://github.com/martinfrances107/rust_d3_geo.git" [package.metadata.docs.rs] cargo-args = [ "-Zunstable-options", "-Zrustdoc-scrape-examples", ] [lib] name = "d3_geo_rs" crate-type = [ "cdylib", "rlib", ] path = "src/lib.rs" [[test]] name = "area_test" path = "tests/area_test.rs" [[test]] name = "centroid_test" path = "tests/centroid_test.rs" [[test]] name = "clipcircle_test" path = "tests/clipcircle_test.rs" [[test]] name = "distance" path = "tests/distance.rs" [[test]] name = "equirectangular" path = "tests/equirectangular.rs" [[test]] name = "fit" path = "tests/fit.rs" [[test]] name = "graticule" path = "tests/graticule.rs" [[test]] name = "invert" path = "tests/invert.rs" [[test]] name = "length" path = "tests/length.rs" [[test]] name = "mercator" path = "tests/mercator.rs" [[test]] name = "mercator_traverse" path = "tests/mercator_traverse.rs" [[test]] name = "path_area" path = "tests/path_area.rs" [[test]] name = "path_bounds" path = "tests/path_bounds.rs" [[test]] name = "path_centroid" path = "tests/path_centroid.rs" [[test]] name = "path_measure" path = "tests/path_measure.rs" [[test]] name = "path_string" path = "tests/path_string.rs" [[test]] name = "polygon_contains" path = "tests/polygon_contains.rs" [[test]] name = "projection_angle" path = "tests/projection_angle.rs" [[test]] name = "projection_rotate" path = "tests/projection_rotate.rs" [[test]] name = "reflect" path = "tests/reflect.rs" [[test]] name = "snapshot" path = "tests/snapshot.rs" [[test]] name = "stereographic_test" path = "tests/stereographic_test.rs" [[test]] name = "stream_test_multipolygon" path = "tests/stream_test_multipolygon.rs" [[test]] name = "wgpu_buffers" path = "tests/wgpu_buffers.rs" [[bench]] name = "graticule" path = "benches/graticule.rs" harness = false [[bench]] name = "rings" path = "benches/rings.rs" harness = false [[bench]] name = "transforms" path = "benches/transforms.rs" harness = false [dependencies.approx] version = "~0.5" [dependencies.bytemuck] version = "1" features = ["derive"] optional = true [dependencies.geo] version = "~0.28" [dependencies.geo-types] version = "~0.7" [dependencies.num-traits] version = "~0.2" [dependencies.web-sys] version = "~0.3" features = [ "Attr", "console", "CanvasRenderingContext2d", "Document", "Element", "Event", "Headers", "EventTarget", "HtmlCanvasElement", "HtmlCollection", "HtmlElement", "HtmlInputElement", "Node", "Path2d", "Performance", "PerformanceTiming", "PerformanceMeasure", "Request", "RequestInit", "RequestMode", "Response", "SvgsvgElement", "SvgAnimatedLength", "SvgLength", "SvgPathElement", "Text", "Window", ] optional = true [dependencies.wgpu] version = "22" optional = true [dev-dependencies.criterion] version = "~0.5" features = ["html_reports"] [dev-dependencies.futures] version = "~0.3" [dev-dependencies.gloo-utils] version = "~0.2" [dev-dependencies.js-sys] version = "~0.3" [dev-dependencies.pretty_assertions] version = "1" [dev-dependencies.rand] version = "~0.8" [dev-dependencies.rayon] version = "1" [dev-dependencies.regex] version = "1" [dev-dependencies.serde_json] version = "~1" [dev-dependencies.topojson] version = "~0.5" [dev-dependencies.wasm-bindgen] version = "~0.2" [dev-dependencies.wasm-bindgen-futures] version = "~0.4" [dev-dependencies.wasm-bindgen-test] version = "~0.3" [features] console_error_panic_hook = [] default = ["web"] web = ["dep:web-sys"] wgpu = [ "dep:wgpu", "dep:bytemuck", ]