[package]
edition = "2024"
rust-version = "1.85"
name = "oxigdal-ml"
version = "0.1.3"
authors = ["COOLJAPAN OU (Team Kitasan)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Machine learning capabilities for OxiGDAL - ONNX Runtime integration for geospatial ML workflows"
homepage = "https://github.com/cool-japan/oxigdal"
documentation = "https://docs.rs/oxigdal-ml"
readme = "README.md"
keywords = [
"gdal",
"science",
"algorithms",
"onnx",
"ml",
]
categories = [
"science",
"graphics",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/oxigdal"
resolver = "2"
[features]
cloud-removal = ["dep:scirs2-vision"]
cuda = ["dep:libloading"]
default = ["std"]
directml = ["ort/directml"]
distillation = []
gpu = [
"ort/cuda",
"ort/tensorrt",
]
metal = [
"dep:metal",
"dep:objc",
]
opencl = ["dep:opencl3"]
pruning = []
quantization = []
rocm = ["dep:libloading"]
std = [
"thiserror/std",
"serde/std",
"oxigdal-core/std",
]
vulkan = ["dep:ash"]
webgpu = [
"dep:wasm-bindgen",
"dep:web-sys",
"dep:js-sys",
]
[lib]
name = "oxigdal_ml"
path = "src/lib.rs"
[[example]]
name = "batch_inference"
path = "examples/batch_inference.rs"
[[example]]
name = "land_cover_classification"
path = "examples/land_cover_classification.rs"
[[example]]
name = "model_optimization"
path = "examples/model_optimization.rs"
[[example]]
name = "vehicle_detection"
path = "examples/vehicle_detection.rs"
[[test]]
name = "ml_pipeline_enhancements_test"
path = "tests/ml_pipeline_enhancements_test.rs"
[[test]]
name = "ml_pipeline_test"
path = "tests/ml_pipeline_test.rs"
[[test]]
name = "ml_test"
path = "tests/ml_test.rs"
[[test]]
name = "scirs2_integration_test"
path = "tests/scirs2_integration_test.rs"
[[bench]]
name = "inference_benchmark"
path = "benches/inference_benchmark.rs"
[[bench]]
name = "ml_benchmark"
path = "benches/ml_benchmark.rs"
harness = false
[dependencies.ash]
version = "0.38"
optional = true
[dependencies.byteorder]
version = "1"
[dependencies.geo-types]
version = "0.7"
[dependencies.geojson]
version = "1.0"
[dependencies.indicatif]
version = "0.18"
[dependencies.libloading]
version = "0.9"
optional = true
[dependencies.ndarray]
version = "0.17"
[dependencies.num-traits]
version = "0.2"
[dependencies.opencl3]
version = "0.12"
optional = true
[dependencies.ort]
version = "=2.0.0-rc.11"
features = [
"half",
"ndarray",
"load-dynamic",
]
default-features = false
[dependencies.oxigdal-core]
version = "0.1"
[dependencies.rayon]
version = "1"
[dependencies.reqwest]
version = "0.13"
features = [
"rustls",
"blocking",
"json",
]
default-features = false
[dependencies.scirs2-core]
version = "0.3.4"
features = ["random"]
[dependencies.serde]
version = "1"
features = [
"derive",
"alloc",
]
default-features = false
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.sysinfo]
version = "0.38"
[dependencies.thiserror]
version = "2"
default-features = false
[dependencies.tracing]
version = "0.1"
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"rt-multi-thread",
"macros",
]
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[target.'cfg(target_os = "macos")'.dependencies.js-sys]
version = "0.3"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.metal]
version = "0.33"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc]
version = "0.2"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.scirs2-vision]
version = "0.3.4"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.web-sys]
version = "0.3"
features = [
"Window",
"Navigator",
]
optional = true
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
expect_used = "warn"
manual_midpoint = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
panic = "deny"
similar_names = "allow"
suboptimal_flops = "allow"
unwrap_used = "deny"
[lints.rust]
missing_docs = "warn"
unsafe_code = "warn"