66/// has been created through a [`Linker`](wasmtime::component::Linker).
77///
88/// For more information see [`TheWorld`] as well.
9- pub struct TheWorldPre < T > {
9+ pub struct TheWorldPre < T : ' static > {
1010 instance_pre : wasmtime:: component:: InstancePre < T > ,
1111 indices : TheWorldIndices ,
1212}
13- impl < T > Clone for TheWorldPre < T > {
13+ impl < T : ' static > Clone for TheWorldPre < T > {
1414 fn clone ( & self ) -> Self {
1515 Self {
1616 instance_pre : self . instance_pre . clone ( ) ,
1717 indices : self . indices . clone ( ) ,
1818 }
1919 }
2020}
21- impl < _T > TheWorldPre < _T > {
21+ impl < _T : ' static > TheWorldPre < _T > {
2222 /// Creates a new copy of `TheWorldPre` bindings which can then
2323 /// be used to instantiate into a particular store.
2424 ///
@@ -129,7 +129,7 @@ const _: () = {
129129 impl TheWorld {
130130 /// Convenience wrapper around [`TheWorldPre::new`] and
131131 /// [`TheWorldPre::instantiate`].
132- pub fn instantiate < _T > (
132+ pub fn instantiate < _T : ' static > (
133133 store : impl wasmtime:: AsContextMut < Data = _T > ,
134134 component : & wasmtime:: component:: Component ,
135135 linker : & wasmtime:: component:: Linker < _T > ,
@@ -592,7 +592,7 @@ pub mod exports {
592592 mut store : S ,
593593 ) -> wasmtime:: Result < ( ) >
594594 where
595- <S as wasmtime:: AsContext >:: Data : Send ,
595+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
596596 {
597597 let callee = unsafe {
598598 wasmtime:: component:: TypedFunc :: <
@@ -610,7 +610,7 @@ pub mod exports {
610610 arg0 : LudicrousSpeed ,
611611 ) -> wasmtime:: Result < ( ) >
612612 where
613- <S as wasmtime:: AsContext >:: Data : Send ,
613+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
614614 {
615615 let callee = unsafe {
616616 wasmtime:: component:: TypedFunc :: <
@@ -627,7 +627,7 @@ pub mod exports {
627627 mut store : S ,
628628 ) -> wasmtime:: Result < ( ) >
629629 where
630- <S as wasmtime:: AsContext >:: Data : Send ,
630+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
631631 {
632632 let callee = unsafe {
633633 wasmtime:: component:: TypedFunc :: <
@@ -643,7 +643,7 @@ pub mod exports {
643643 S : wasmtime:: AsContextMut ,
644644 > ( & self , mut store : S ) -> wasmtime:: Result < ( ) >
645645 where
646- <S as wasmtime:: AsContext >:: Data : Send ,
646+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
647647 {
648648 let callee = unsafe {
649649 wasmtime:: component:: TypedFunc :: <
@@ -660,7 +660,7 @@ pub mod exports {
660660 mut store : S ,
661661 ) -> wasmtime:: Result < ( ) >
662662 where
663- <S as wasmtime:: AsContext >:: Data : Send ,
663+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
664664 {
665665 let callee = unsafe {
666666 wasmtime:: component:: TypedFunc :: <
@@ -677,7 +677,7 @@ pub mod exports {
677677 mut store : S ,
678678 ) -> wasmtime:: Result < ( ) >
679679 where
680- <S as wasmtime:: AsContext >:: Data : Send ,
680+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
681681 {
682682 let callee = unsafe {
683683 wasmtime:: component:: TypedFunc :: <
@@ -694,7 +694,7 @@ pub mod exports {
694694 mut store : S ,
695695 ) -> wasmtime:: Result < ( ) >
696696 where
697- <S as wasmtime:: AsContext >:: Data : Send ,
697+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
698698 {
699699 let callee = unsafe {
700700 wasmtime:: component:: TypedFunc :: <
@@ -711,7 +711,7 @@ pub mod exports {
711711 mut store : S ,
712712 ) -> wasmtime:: Result < ( ) >
713713 where
714- <S as wasmtime:: AsContext >:: Data : Send ,
714+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
715715 {
716716 let callee = unsafe {
717717 wasmtime:: component:: TypedFunc :: <
@@ -733,7 +733,7 @@ pub mod exports {
733733 mut store : S ,
734734 ) -> wasmtime:: Result < ( ) >
735735 where
736- <S as wasmtime:: AsContext >:: Data : Send ,
736+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
737737 {
738738 let callee = unsafe {
739739 wasmtime:: component:: TypedFunc :: <
@@ -750,7 +750,7 @@ pub mod exports {
750750 mut store : S ,
751751 ) -> wasmtime:: Result < ( ) >
752752 where
753- <S as wasmtime:: AsContext >:: Data : Send ,
753+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
754754 {
755755 let callee = unsafe {
756756 wasmtime:: component:: TypedFunc :: <
@@ -767,7 +767,7 @@ pub mod exports {
767767 mut store : S ,
768768 ) -> wasmtime:: Result < ( ) >
769769 where
770- <S as wasmtime:: AsContext >:: Data : Send ,
770+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
771771 {
772772 let callee = unsafe {
773773 wasmtime:: component:: TypedFunc :: <
@@ -785,7 +785,7 @@ pub mod exports {
785785 mut store : S ,
786786 ) -> wasmtime:: Result < ( ) >
787787 where
788- <S as wasmtime:: AsContext >:: Data : Send ,
788+ <S as wasmtime:: AsContext >:: Data : Send + ' static ,
789789 {
790790 let callee = unsafe {
791791 wasmtime:: component:: TypedFunc :: <
0 commit comments