Skip to content

Commit c59e8f2

Browse files
committed
Fix appveyor build
1 parent ce04174 commit c59e8f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,8 @@ pub trait ThreadExt: Send + Sync {
652652
/// ```
653653
/// # use gluon::{new_vm, ThreadExt};
654654
/// # fn main() {
655+
/// # // Workaround stack overflow on appveyor
656+
/// # std::thread::Builder::new().stack_size(2_000_000).spawn(move || {
655657
/// let vm = new_vm();
656658
/// let (result, _) = vm
657659
/// .run_expr::<String>(
@@ -660,6 +662,7 @@ pub trait ThreadExt: Send + Sync {
660662
/// )
661663
/// .unwrap();
662664
/// assert_eq!(result, "Hello world");
665+
/// }).unwrap().join().unwrap()
663666
/// # }
664667
/// ```
665668
///

0 commit comments

Comments
 (0)