slint-mapping 0.1.0

Map framework for Slint — interactive map component with tile rendering, panning, zooming, and marker overlays.
Documentation
# 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"
rust-version = "1.74"
name = "slint-mapping"
version = "0.1.0"
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Map framework for Slint — interactive map component with tile rendering, panning, zooming, and marker overlays."
homepage = "https://gregoryraymond.github.io/slint-mapping/"
documentation = "https://docs.rs/slint-mapping"
readme = "README.md"
keywords = [
    "slint",
    "map",
    "tiles",
    "osm",
    "geo",
]
categories = [
    "gui",
    "graphics",
    "rendering",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/gregoryraymond/slint-mapping"

[features]
http = [
    "dep:ureq",
    "dep:image",
]
routing = [
    "dep:ureq",
    "dep:serde",
    "dep:serde_json",
]
viewer = [
    "slint/backend-default",
    "slint/renderer-skia",
]
wasm = [
    "dep:wasm-bindgen",
    "dep:js-sys",
    "dep:web-sys",
    "dep:send_wrapper",
    "dep:image",
    "dep:lru",
]

[lib]
name = "slint_mapping"
crate-type = ["rlib"]
path = "src/lib.rs"

[[bin]]
name = "slint-mapping-prefetch"
path = "src/bin/prefetch.rs"
required-features = ["http"]

[[example]]
name = "map_page"
path = "examples/map_page.rs"
required-features = ["viewer"]

[[example]]
name = "viewer"
path = "examples/viewer.rs"
required-features = ["viewer"]

[[test]]
name = "backend"
path = "tests/backend.rs"

[[test]]
name = "subwindow"
path = "tests/subwindow.rs"

[dependencies.image]
version = "0.25"
features = ["png"]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.slint]
version = "1"
features = [
    "compat-1-2",
    "std",
]
default-features = false

[dependencies.ureq]
version = "2"
features = ["tls"]
optional = true
default-features = false

[dev-dependencies.i-slint-backend-testing]
version = "1"

[build-dependencies.slint-build]
version = "1"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.lru]
version = "0.16"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.send_wrapper]
version = "0.6"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "Window",
    "XmlHttpRequest",
    "XmlHttpRequestEventTarget",
    "XmlHttpRequestResponseType",
]
optional = true