# 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 = "2024" rust-version = "1.85.0" name = "jni" version = "0.22.4" authors = ["jni team"] build = "build.rs" exclude = [ "/benches", "/examples", "/mylib-example", "/tests", ] autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = "Rust bindings to the JNI" documentation = "https://docs.rs/jni" readme = "README.md" keywords = [ "ffi", "jni", "java", ] categories = ["api-bindings"] license = "MIT OR Apache-2.0" repository = "https://github.com/jni-rs/jni-rs" [package.metadata.docs.rs] features = ["invocation"] [features] _cfg_test = [] default = [] invocation = [ "dep:java-locator", "dep:libloading", ] [lib] name = "jni" path = "src/lib.rs" [dependencies.cfg-if] version = "1.0.0" [dependencies.combine] version = "4.1.0" [dependencies.jni-macros] version = "=0.22.4" [dependencies.jni-sys] version = "0.4.1" [dependencies.log] version = "0.4.4" [dependencies.simd_cesu8] version = "1.1.1" [dependencies.thiserror] version = "2" [dev-dependencies.assert_matches] version = "1.5.0" [dev-dependencies.criterion] version = "0.7" features = ["html_reports"] [dev-dependencies.javac] version = "0.1.0" [dev-dependencies.lazy_static] version = "1" [dev-dependencies.rusty-fork] version = "0.3.0" [dev-dependencies.static_assertions] version = "1" [dev-dependencies.trybuild] version = "1" [build-dependencies.walkdir] version = "2" [target.'cfg(not(target_os = "android"))'.dependencies.java-locator] version = "0.1.3" optional = true [target.'cfg(not(target_os = "android"))'.dependencies.libloading] version = "0.8" optional = true [target."cfg(windows)".dependencies.windows-link] version = "0.2" [target."cfg(windows)".dev-dependencies.bytemuck] version = "1.13.0" [target."cfg(windows)".dev-dependencies.windows-sys] version = "0.61" features = [ "Win32_System_Threading", "Win32_Foundation", ]