firepilot

Crates.iofirepilot
lib.rsfirepilot
version1.2.0
sourcesrc
created_at2023-04-16 09:14:06.969961
updated_at2023-10-04 10:39:23.942451
descriptionInterface to work with Firecracker microVMs
homepagehttps://github.com/rik-org/firepilot
repositoryhttps://github.com/rik-org/firepilot
max_upload_size
id840445
size95,082
Alexandre Burgoni (AlexandreBrg)

documentation

https://docs.rs/firepilot

README

Firepilot

firepilot is a rust library to interact with firecracker, it can be used to configure and run firecracker micro VMs. It relies on auto-generated models provided by the project's OpenAPI, those models are available in the dependency firepilot_models.

There are some Firecracker features that are not yet supported. If you need one of them, please open an issue.

This crate is inspired by firecracker-go-sdk a Go SDK for Firecracker.

Design

Our main goal is to provide an opinionated way to interact and manage firecracker microVMs, for our bigger project rik. However, we wanted to make this library available for everyone, with an unopinionated way to manage VMs. To do so, this crate contains two way to create VMs:

  • Using high-level [Machine] abstraction: through simple methods, you can create and control the lifecyle of a VM. This is the recommended way to use this crate.
  • Using low-level [Executor]: you can fully control and manage each step of the VM lifecycle. This is useful if you want to have more control over the VM configuration and not satisfied with the current high-level abstraction.

Examples

You can find full examples in the examples directory. Examples are auto-sufficent, they will download a sample rootfs and kernel provided by Firecracker, but you must have firecracker installed on your system.

MSRV

The minimum supported rust version is 1.60.0.

Commit count: 28

cargo fmt