# 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"
name = "jvmrs"
version = "0.1.2"
build = false
exclude = ["examples/*.class"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A JVM implementation in Rust with Cranelift JIT, AOT compilation, and WebAssembly support"
homepage = "https://github.com/yingkitw/jvmrs"
documentation = "https://docs.rs/jvmrs"
readme = "README.md"
keywords = [
    "jvm",
    "java",
    "interpreter",
    "jit",
    "wasm",
]
categories = [
    "development-tools",
    "emulators",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/yingkitw/jvmrs"

[features]
async = [
    "tokio",
    "async-trait",
]
default = []
ffi = []
interop = []
llvm = ["inkwell"]
no_std = []
simd = []
truffle = []
wasm = ["wasm-encoder"]

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

[[bin]]
name = "jvmrs"
path = "src/main.rs"

[[example]]
name = "macro_example"
path = "examples/macro_example.rs"

[[example]]
name = "rust_calling_java"
path = "examples/rust_calling_java.rs"

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

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

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

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

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

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

[[bench]]
name = "comprehensive_benchmarks"
path = "benches/comprehensive_benchmarks.rs"

[[bench]]
name = "instruction_benchmarks"
path = "benches/instruction_benchmarks.rs"
harness = false

[[bench]]
name = "jvm_benchmarks"
path = "benches/jvm_benchmarks.rs"
harness = false

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.byteorder]
version = "1.4"

[dependencies.cranelift]
version = "0.110"

[dependencies.cranelift-codegen]
version = "0.110"

[dependencies.cranelift-frontend]
version = "0.110"

[dependencies.cranelift-jit]
version = "0.110"

[dependencies.cranelift-module]
version = "0.110"

[dependencies.cranelift-native]
version = "0.110"

[dependencies.cranelift-object]
version = "0.110"

[dependencies.env_logger]
version = "0.10"

[dependencies.inkwell]
version = "0.5"
features = ["llvm18-0"]
optional = true

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.rayon]
version = "1.10"

[dependencies.tempfile]
version = "3.10"

[dependencies.tokio]
version = "1.0"
features = [
    "fs",
    "io-util",
]
optional = true

[dependencies.wasm-encoder]
version = "0.25"
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

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