Allow compiling with Rust code (#3137)

Co-authored-by: Yuri Astrakhan <YuriAstrakhan@gmail.com>
Co-authored-by: Ian Wagner <ianwagner+github@switzerlandmail.ch>
This commit is contained in:
Bart Louwers
2025-01-16 16:01:11 +01:00
committed by GitHub
parent 79d625b03c
commit 527e70b6fa
23 changed files with 649 additions and 25 deletions

19
rustutils/Cargo.toml Normal file
View File

@@ -0,0 +1,19 @@
[package]
name = "rustutils"
version = "0.1.0"
authors = ["MapLibre contributors"]
description = "Core Rust utilities for MapLibre Native"
edition = "2021"
license = "BSD-2-Clause"
repository = "https://github.com/maplibre/maplibre-native"
[lib]
crate-type = ["staticlib"]
[dependencies]
csscolorparser = "0.6.2"
cxx = "1"
[profile.release]
lto = true
codegen-units = 1