Skip to content

asimov-systems/mitosis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mitosis

Build Status

"AWS Lambda for your local machine"

-- @jdm

This crate provides mitosis::spawn(), which is similar to thread::spawn() but will spawn a new process instead.

The fork

Changes to the original repository:

  • Updated ipc-channel to 0.20.2 to fix building and add support for Windows;
  • Removed unused dependencies;
  • Made CI run on Windows & MacOS too;
  • Extended the CI to run both tests and examples;
  • Fixed kill example;
  • Fixed clippy warnings;

Example

fn main() {
    // Needs to be near the beginning of your program
    mitosis::init();

    // some code
    let some_data = 5;
    mitosis::spawn(some_data, |data| {
        println!("hello from another process, your data is {}", data);
    });
}

About

Our fork of manishearth/mitosis

Resources

License

Stars

Watchers

Forks

Languages

  • Rust 100.0%