wasmtime-c-api-impl 40.0.3

C API to expose the Wasmtime runtime
Documentation
# 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 = "wasmtime-c-api-impl"
version = "40.0.3"
authors = ["The Wasmtime Project Developers"]
build = "build.rs"
links = "wasmtime-c-api"
include = [
    "include",
    "src",
    "build.rs",
    "CMakeLists.txt",
    "cmake",
    "doxygen.conf.in",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "C API to expose the Wasmtime runtime"
readme = "README.md"
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/bytecodealliance/wasmtime"
resolver = "2"

[features]
addr2line = ["wasmtime/addr2line"]
all-arch = ["wasmtime/all-arch"]
async = [
    "wasmtime/async",
    "futures",
]
cache = ["wasmtime/cache"]
component-model = ["wasmtime/component-model"]
coredump = ["wasmtime/coredump"]
cranelift = ["wasmtime/cranelift"]
debug-builtins = ["wasmtime/debug-builtins"]
demangle = ["wasmtime/demangle"]
disable-logging = [
    "log/max_level_off",
    "tracing/max_level_off",
]
gc = ["wasmtime/gc"]
gc-drc = ["wasmtime/gc-drc"]
gc-null = ["wasmtime/gc-null"]
logging = ["dep:env_logger"]
parallel-compilation = ["wasmtime/parallel-compilation"]
pooling-allocator = ["wasmtime/pooling-allocator"]
profiling = ["wasmtime/profiling"]
pulley = ["wasmtime/pulley"]
threads = ["wasmtime/threads"]
wasi = [
    "cap-std",
    "wasmtime-wasi",
    "wasmtime-wasi-io",
    "tokio",
    "async-trait",
    "bytes",
]
wat = [
    "dep:wat",
    "wasmtime/wat",
]
winch = ["wasmtime/winch"]

[lib]
name = "wasmtime_c_api"
path = "src/lib.rs"
test = false
doctest = false

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

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

[dependencies.bytes]
version = "1.10.1"
optional = true
default-features = false

[dependencies.cap-std]
version = "3.4.5"
optional = true

[dependencies.env_logger]
version = "0.11.5"
optional = true

[dependencies.futures]
version = "0.3.31"
optional = true
default-features = false

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

[dependencies.tokio]
version = "1.48.0"
features = [
    "rt",
    "time",
    "fs",
]
optional = true

[dependencies.tracing]
version = "0.1.41"

[dependencies.wasmtime]
version = "40.0.3"
features = [
    "runtime",
    "gc",
    "std",
]
default-features = false

[dependencies.wasmtime-c-api-macros]
version = "=40.0.3"
package = "wasmtime-internal-c-api-macros"

[dependencies.wasmtime-wasi]
version = "40.0.3"
features = ["p1"]
optional = true
default-features = false

[dependencies.wasmtime-wasi-io]
version = "40.0.3"
features = ["std"]
optional = true
default-features = false

[dependencies.wat]
version = "1.243.0"
optional = true

[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)",
]