[package]
name = "evm2-jit"
description = "EVM bytecode compiler"

version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
categories.workspace = true
keywords.workspace = true
repository.workspace = true
exclude.workspace = true

[package.metadata.docs.rs]
no-default-features = true
rustdoc-args = ["--cfg", "docsrs"]

[lints]
workspace = true

[dependencies]
evm2.workspace = true
evm2-jit-backend.workspace = true
evm2-jit-builtins = { workspace = true, features = ["ir"] }
evm2-jit-codegen.workspace = true
evm2-jit-context.workspace = true
evm2-jit-llvm = { workspace = true, optional = true }
evm2-jit-runtime.workspace = true

[build-dependencies]
evm2-jit-build.workspace = true

[features]
default = ["llvm"]
llvm = ["dep:evm2-jit-llvm", "evm2-jit-codegen/llvm", "evm2-jit-runtime/llvm"]
asm-keccak = ["evm2-jit-codegen/asm-keccak", "evm2-jit-runtime/asm-keccak"]
