# Rust init code?

**URL:** <https://community.fly.io/t/rust-init-code/761>\
**Category:** General\
**Created:** [February 16, 2021, 1:48am UTC](https://community.fly.io/t/rust-init-code/761 "2021-02-16T01:48:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/josh/32/356_2.png) [@josh](https://community.fly.io/u/josh)\
**Post date:** [February 16, 2021, 1:48am UTC](https://community.fly.io/t/rust-init-code/761/1 "2021-02-16T01:48:30Z")

</div>

I discussed this previously with Kurt, Thomas, and Jerome, and was asked to bring it up here.

I’m currently in the process of building some minimal system initialization and network bringup code in Rust, for use on VMs. [This HN thread](https://news.ycombinator.com/item?id=25997621) mentioned [fly.io](http://fly.io)’s init code in Rust. I spoke with Jerome about that code as well. I’d be interested in seeing portions of that code released as Open Source, and adapting them for use as a minimal Rust init.

Would you be willing to share this code, in whole or in part? Bringing up a system is fiddly, with many moving parts, and having code you’re successfully using in production as a reference would be incredibly helpful.

Thank you!

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [February 17, 2021, 1:23pm UTC](https://community.fly.io/t/rust-init-code/761/2 "2021-02-17T13:23:21Z")

</div>

We’re currently considering releasing a “snapshot” of our init publicly, but not making it open-source per se.

---

<div class="post-metadata">

**Author:** ![josh](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/josh/32/356_2.png) [@josh](https://community.fly.io/u/josh)\
**Post date:** [February 17, 2021, 7:54pm UTC](https://community.fly.io/t/rust-init-code/761/3 "2021-02-17T19:54:24Z")

</div>

Having the code available as a reference for functionality is still useful.

It’d be nice to be able to copy snippets from it, but even just having it as a reference would help.

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [February 17, 2021, 9:24pm UTC](https://community.fly.io/t/rust-init-code/761/4 "2021-02-17T21:24:05Z")

</div>

@josh here you go: [GitHub - superfly/init-snapshot: Fly](https://github.com/superfly/init-snapshot)

---

<div class="post-metadata">

**Author:** ![josh](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/josh/32/356_2.png) [@josh](https://community.fly.io/u/josh)\
**Post date:** [February 17, 2021, 10:16pm UTC](https://community.fly.io/t/rust-init-code/761/5 "2021-02-17T22:16:03Z")

</div>

Thank you!
