Skip to content

Commit 6bc6672

Browse files
Point at fork of wasmtime-macro
1 parent 40f2770 commit 6bc6672

8 files changed

Lines changed: 2216 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7084,8 +7084,6 @@ dependencies = [
70847084
[[package]]
70857085
name = "wasmtime-internal-component-macro"
70867086
version = "46.0.0"
7087-
source = "registry+https://github.com/rust-lang/crates.io-index"
7088-
checksum = "de4451ab437d7b2d41e637a4379e87ff76aeeb051236064dcc75c1855714ee58"
70897087
dependencies = [
70907088
"anyhow",
70917089
"proc-macro2",

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,5 @@ codegen-units = 1
9191

9292
# If you want to use a crate with local modifications, you can set a path or git dependency here.
9393
# For git dependencies, also add your source to ALLOWED_SOURCES in src/tools/tidy/src/extdeps.rs.
94-
#[patch.crates-io]
95-
94+
[patch.crates-io]
95+
wasmtime-internal-component-macro = { path = "./vendored/component-macro" }

rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ ignore = [
4747
"src/tools/rustc-perf",
4848
"src/tools/rustfmt",
4949
"src/gcc",
50+
"vendored",
5051

5152
# These are ignored by a standard cargo fmt run.
5253
"compiler/rustc_codegen_cranelift/scripts",
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[package]
2+
name = "wasmtime-internal-component-macro"
3+
version = "46.0.0"
4+
description = "INTERNAL: Macros for deriving component interface types from Rust types"
5+
license = "Apache-2.0 WITH LLVM-exception"
6+
repository = "https://github.com/bytecodealliance/wasmtime"
7+
documentation = "https://docs.rs/wasmtime-component-macro/"
8+
categories = ["wasm"]
9+
keywords = ["webassembly", "wasm"]
10+
edition = "2024"
11+
12+
[lib]
13+
proc-macro = true
14+
test = false
15+
doctest = false
16+
17+
[dependencies]
18+
anyhow = "1"
19+
proc-macro2 = "1"
20+
quote = "1"
21+
syn = { version = "2", features = ["extra-traits"] }
22+
wasmtime-component-util = { version = "46.0.0", package = 'wasmtime-internal-component-util' }
23+
wasmtime-wit-bindgen = { version = "46.0.0", package = 'wasmtime-internal-wit-bindgen' }
24+
wit-parser = "0.251.0"
25+
26+
[features]
27+
async = ['wasmtime-wit-bindgen/async']
28+
component-model-async = ['async', 'wasmtime-wit-bindgen/component-model-async']

vendored/component-macro/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn main() {
2+
println!("cargo:rerun-if-changed=build.rs");
3+
let out_dir = std::env::var("OUT_DIR").unwrap();
4+
println!("cargo:rustc-env=DEBUG_OUTPUT_DIR={out_dir}");
5+
}

0 commit comments

Comments
 (0)