Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ tokio-util = "0.7.16"
arbtest = "0.3.2"
rayon = "1.5.3"
regex = "1.9.1"
pin-project-lite = "0.2.14"

# =============================================================================
#
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ pub mod exports {
pub mod chars {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
take_char: wasmtime::component::Func,
return_char: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/char_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ pub mod exports {
pub mod chars {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
take_char: wasmtime::component::Func,
return_char: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/char_concurrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ pub mod exports {
pub mod chars {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
take_char: wasmtime::component::Func,
return_char: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ pub mod exports {
pub mod chars {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
take_char: wasmtime::component::Func,
return_char: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/conventions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
kebab_case: wasmtime::component::Func,
foo: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
kebab_case: wasmtime::component::Func,
foo: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
kebab_case: wasmtime::component::Func,
foo: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
kebab_case: wasmtime::component::Func,
foo: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ pub mod exports {
4 == < Flag64 as wasmtime::component::ComponentType >::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
roundtrip_flag1: wasmtime::component::Func,
roundtrip_flag2: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/flags_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ pub mod exports {
4 == < Flag64 as wasmtime::component::ComponentType >::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
roundtrip_flag1: wasmtime::component::Func,
roundtrip_flag2: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ pub mod exports {
4 == < Flag64 as wasmtime::component::ComponentType >::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
roundtrip_flag1: wasmtime::component::Func,
roundtrip_flag2: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,7 @@ pub mod exports {
4 == < Flag64 as wasmtime::component::ComponentType >::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
roundtrip_flag1: wasmtime::component::Func,
roundtrip_flag2: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/floats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ pub mod exports {
pub mod floats {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
f32_param: wasmtime::component::Func,
f64_param: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/floats_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ pub mod exports {
pub mod floats {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
f32_param: wasmtime::component::Func,
f64_param: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ pub mod exports {
pub mod floats {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
f32_param: wasmtime::component::Func,
f64_param: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ pub mod exports {
pub mod floats {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
f32_param: wasmtime::component::Func,
f64_param: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/integers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ pub mod exports {
pub mod integers {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
a1: wasmtime::component::Func,
a2: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/integers_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ pub mod exports {
pub mod integers {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
a1: wasmtime::component::Func,
a2: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ pub mod exports {
pub mod integers {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
a1: wasmtime::component::Func,
a2: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,7 @@ pub mod exports {
pub mod integers {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
a1: wasmtime::component::Func,
a2: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
list_u8_param: wasmtime::component::Func,
list_u16_param: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/lists_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
list_u8_param: wasmtime::component::Func,
list_u16_param: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
list_u8_param: wasmtime::component::Func,
list_u16_param: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1755,6 +1755,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
list_u8_param: wasmtime::component::Func,
list_u16_param: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/many-arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ pub mod exports {
4 == < BigStruct as wasmtime::component::ComponentType >::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
many_args: wasmtime::component::Func,
big_argument: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ pub mod exports {
4 == < BigStruct as wasmtime::component::ComponentType >::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
many_args: wasmtime::component::Func,
big_argument: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ pub mod exports {
4 == < BigStruct as wasmtime::component::ComponentType >::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
many_args: wasmtime::component::Func,
big_argument: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ pub mod exports {
4 == < BigStruct as wasmtime::component::ComponentType >::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
many_args: wasmtime::component::Func,
big_argument: wasmtime::component::Func,
Expand Down
2 changes: 2 additions & 0 deletions crates/component-macro/tests/expanded/multiversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ pub mod exports {
pub mod a {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
x: wasmtime::component::Func,
}
Expand Down Expand Up @@ -364,6 +365,7 @@ pub mod exports {
pub mod a {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
x: wasmtime::component::Func,
}
Expand Down
2 changes: 2 additions & 0 deletions crates/component-macro/tests/expanded/multiversion_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ pub mod exports {
pub mod a {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
x: wasmtime::component::Func,
}
Expand Down Expand Up @@ -371,6 +372,7 @@ pub mod exports {
pub mod a {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
x: wasmtime::component::Func,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ pub mod exports {
pub mod a {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
x: wasmtime::component::Func,
}
Expand Down Expand Up @@ -359,6 +360,7 @@ pub mod exports {
pub mod a {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
x: wasmtime::component::Func,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ pub mod exports {
pub mod a {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
x: wasmtime::component::Func,
}
Expand Down Expand Up @@ -408,6 +409,7 @@ pub mod exports {
pub mod a {
#[allow(unused_imports)]
use wasmtime::component::__internal::{anyhow, Box};
#[derive(Clone)]
pub struct Guest {
x: wasmtime::component::Func,
}
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/records.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
tuple_arg: wasmtime::component::Func,
tuple_result: wasmtime::component::Func,
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/tests/expanded/records_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
tuple_arg: wasmtime::component::Func,
tuple_result: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
tuple_arg: wasmtime::component::Func,
tuple_result: wasmtime::component::Func,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,7 @@ pub mod exports {
>::ALIGN32
);
};
#[derive(Clone)]
pub struct Guest {
tuple_arg: wasmtime::component::Func,
tuple_result: wasmtime::component::Func,
Expand Down
4 changes: 4 additions & 0 deletions crates/component-macro/tests/expanded/resources-export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ pub mod exports {
pub struct GuestA<'a> {
funcs: &'a Guest,
}
#[derive(Clone)]
pub struct Guest {
constructor_a_constructor: wasmtime::component::Func,
static_a_static_a: wasmtime::component::Func,
Expand Down Expand Up @@ -442,6 +443,7 @@ pub mod exports {
pub struct GuestA<'a> {
funcs: &'a Guest,
}
#[derive(Clone)]
pub struct Guest {
constructor_a_constructor: wasmtime::component::Func,
static_a_static_a: wasmtime::component::Func,
Expand Down Expand Up @@ -594,6 +596,7 @@ pub mod exports {
pub struct GuestA<'a> {
funcs: &'a Guest,
}
#[derive(Clone)]
pub struct Guest {
constructor_a_constructor: wasmtime::component::Func,
}
Expand Down Expand Up @@ -686,6 +689,7 @@ pub mod exports {
pub struct GuestB<'a> {
funcs: &'a Guest,
}
#[derive(Clone)]
pub struct Guest {
constructor_b_constructor: wasmtime::component::Func,
}
Expand Down
Loading
Loading