# 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.87.0" name = "wit-bindgen-rust" version = "0.51.0" authors = ["Alex Crichton "] build = "build.rs" autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = """ Rust bindings generator for WIT and the component model, typically used through the `wit-bindgen` crate's `generate!` macro. """ homepage = "https://github.com/bytecodealliance/wit-bindgen" readme = false license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT" repository = "https://github.com/bytecodealliance/wit-bindgen" resolver = "2" [features] clap = [ "dep:clap", "wit-bindgen-core/clap", ] serde = [ "dep:serde", "wit-bindgen-core/serde", ] [lib] name = "wit_bindgen_rust" path = "src/lib.rs" test = false doctest = false [[test]] name = "codegen" path = "tests/codegen.rs" [dependencies.anyhow] version = "1.0.72" [dependencies.clap] version = "4.3.19" features = ["derive"] optional = true [dependencies.heck] version = "0.5" [dependencies.indexmap] version = "2.0.0" [dependencies.prettyplease] version = "0.2.20" [dependencies.serde] version = "1.0.218" features = ["derive"] optional = true [dependencies.syn] version = "2.0.89" features = ["printing"] [dependencies.wasm-metadata] version = "0.244.0" default-features = false [dependencies.wit-bindgen-core] version = "0.51.0" [dependencies.wit-component] version = "0.244.0" [dev-dependencies.bytes] version = "1" [dev-dependencies.futures] version = "0.3.31" [dev-dependencies.serde_json] version = "1" [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