# 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.89.0"
name = "pulley-interpreter"
version = "40.0.2"
authors = ["The Pulley Project Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The Pulley interpreter, its bytecode definition, encoder, decoder, and etc..."
readme = "README.md"
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasmtime/tree/main/pulley"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
arbitrary = [
    "dep:arbitrary",
    "arbitrary/derive",
    "std",
    "cranelift-bitset/arbitrary",
]
decode = []
disas = ["decode"]
encode = []
interp = [
    "decode",
    "encode",
    "dep:wasmtime-math",
]
profile = [
    "std",
    "dep:anyhow",
]
std = ["wasmtime-math?/std"]

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

[[example]]
name = "profiler-html"
path = "examples/profiler-html.rs"
required-features = ["profile"]

[[test]]
name = "all"
path = "tests/all/main.rs"

[dependencies.anyhow]
version = "1.0.100"
optional = true
default-features = false

[dependencies.arbitrary]
version = "1.4.2"
optional = true

[dependencies.cranelift-bitset]
version = "0.127.2"

[dependencies.log]
version = "0.4.28"
default-features = false

[dependencies.pulley-macros]
version = "=40.0.2"

[dependencies.wasmtime-math]
version = "=40.0.2"
optional = true
package = "wasmtime-internal-math"

[dev-dependencies.anyhow]
version = "1.0.100"
features = ["std"]
default-features = false

[dev-dependencies.clap]
version = "4.5.48"
features = [
    "std",
    "derive",
]
default-features = false

[dev-dependencies.env_logger]
version = "0.11.5"

[dev-dependencies.termcolor]
version = "1.4.1"

[lints.clippy]
allow_attributes_without_reason = "warn"
clone_on_copy = "warn"
extra_unused_type_parameters = "warn"
from_over_into = "warn"
manual_strip = "warn"
map_clone = "warn"
multiple_bound_locations = "warn"
redundant_field_names = "warn"
uninlined_format_args = "warn"
unnecessary_cast = "warn"
unnecessary_fallible_conversions = "warn"
unnecessary_mut_passed = "warn"
unnecessary_to_owned = "warn"
useless_conversion = "warn"

[lints.clippy.all]
level = "allow"
priority = -1

[lints.rust]
trivial_numeric_casts = "warn"
unstable_features = "warn"
unused-lifetimes = "warn"
unused-macro-rules = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(pulley_tail_calls)",
    "cfg(pulley_assume_llvm_makes_tail_calls)",
    "cfg(pulley_disable_interp_simd)",
]
