[package]
edition = "2024"
rust-version = "1.87.0"
name = "wit-bindgen"
version = "0.52.0"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Rust bindings generator and runtime support for WIT and the component model.
Used when compiling Rust programs to the component model.
"""
homepage = "https://github.com/bytecodealliance/wit-bindgen"
readme = "README.md"
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
repository = "https://github.com/bytecodealliance/wit-bindgen"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
async = [
"std",
"wit-bindgen-rust-macro?/async",
]
async-spawn = [
"async",
"dep:futures",
]
bitflags = ["dep:bitflags"]
default = [
"macros",
"realloc",
"async",
"std",
"bitflags",
]
inter-task-wakeup = ["async"]
macros = ["dep:wit-bindgen-rust-macro"]
realloc = []
rustc-dep-of-std = [
"dep:core",
"dep:alloc",
]
std = []
[lib]
name = "wit_bindgen"
path = "src/lib.rs"
[dependencies.alloc]
version = "1.0"
optional = true
package = "rustc-std-workspace-alloc"
[dependencies.bitflags]
version = "2.3.3"
optional = true
[dependencies.core]
version = "1.0"
optional = true
package = "rustc-std-workspace-core"
[dependencies.futures]
version = "0.3.30"
optional = true
[dependencies.wit-bindgen-rust-macro]
version = "0.52.0"
optional = true
[lints.clippy]
allow_attributes_without_reason = "warn"
clone_on_copy = "warn"
manual_strip = "warn"
map_clone = "warn"
uninlined_format_args = "warn"
unnecessary_cast = "warn"
unnecessary_fallible_conversions = "warn"
unnecessary_mut_passed = "warn"
unnecessary_to_owned = "warn"
[lints.clippy.all]
level = "allow"
priority = -1