# 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.90"
name = "maplibre_native"
version = "0.8.3"
authors = [
    "Yuri Astrakhan <YuriAstrakhan@gmail.com>",
    "MapLibre contributors",
]
build = "build.rs"
exclude = []
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust bindings to the MapLibre Native map rendering engine"
readme = "README.md"
keywords = [
    "maplibre",
    "rendering",
    "gis",
    "tiles",
]
categories = [
    "external-ffi-bindings",
    "science::geo",
    "rendering",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/maplibre/maplibre-native-rs"

[package.metadata.mln]
repo = "maplibre/maplibre-native"
release = "core-fa8a9c8e3261ce64940127aecc1d52f540c21c57"

[features]
default = [
    "log",
    "json",
    "geojson",
]
geojson = ["dep:geojson"]
glx = ["opengl"]
json = ["dep:serde_json"]
log = ["dep:log"]
metal = []
opengl = []
vulkan = []
wgpu = [
    "dep:webgpu-shim",
    "dep:wgpu",
]

[lib]
name = "maplibre_native"
path = "src/lib.rs"

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

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

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

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

[dependencies.cxx]
version = "1.0"

[dependencies.geojson]
version = "1.0.0"
optional = true

[dependencies.image]
version = "0.25"

[dependencies.log]
version = "0.4"
optional = true

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

[dependencies.thiserror]
version = "2.0.16"

[dependencies.url]
version = "2.5.7"

[dependencies.webgpu-shim]
version = "0.1"
optional = true

[dependencies.wgpu]
version = "29.0.0"
optional = true

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.insta]
version = "1.43"
features = [
    "json",
    "redactions",
]

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "sync",
    "rt-multi-thread",
]
default-features = false

[build-dependencies.cmake]
version = "0.1"

[build-dependencies.cxx-build]
version = "1.0"

[build-dependencies.downloader]
version = "0.2"

[build-dependencies.flate2]
version = "1.1"

[build-dependencies.tar]
version = "0.4.44"

[build-dependencies.toml]
version = "1.1"

[build-dependencies.walkdir]
version = "2.5.0"

[build-dependencies.webgpu-shim]
version = "0.1"
optional = true

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unused_qualifications = "warn"

[profile.dev.package.insta]
opt-level = 3

[profile.dev.package.similar]
opt-level = 3

[profile.dev.build-override]
debug = 2
