Allium (Arti library linked in unikernel mode) is a project in the earliest stages of getting Arti—the Rust rewrite of Tor—working with Hermit—the unkiernel project aimed at Rust. So far, nothing works, and most all the associated code is in a hacky state, so either private or unlisted. Once it's in a state that it makes sense for other people to help out, I'll add a link to the project's git repos here.
Now suppose we want to run some process in a virtual machine. Maybe we need improved security, maybe there's a performance consideration, or maybe that's the cheapest hosting possible, but we have one process, and it needs its own VM. The default way to do this is to run all this complicated machinery, even though we clearly don't need most of it. There's only one process we care about, so we don't need virtual memory, or scheduling between processes, or permissions, or daemons. We might need support for one or two file systems, and a couple network protocols, but we don't need graphics drivers, or printer drivers, or support for all the possible platforms one might encounter in the real world.
This is what unikernels solve. Instead of running your application as a process in an OS, you link it against a library OS (i.e., a library designed to provide support for virtual "hardware", network protocols, etc., that would typically be supported by kernel drivers), use some configuration options to enable and disable features you do or don't need, and let link-time optimization perform dead code analysis to remove any features your code won't use.
Your application is the kernel now.
Tor is an application well-suited for a unikernel. The only things a Tor process really needs is TCP network support, and basic file storage for logs, configuration files, and a bit of state (guard relay selection, consensus data, etc.).
It's also commonly recommended to run Tor processes in their own VM. On the desktop side, this is how Qubes OS, SecureDrop Workstation, and Whonix work. On the server side, this is typically a more bespoke operation, set up manually. A major advantage of this for both client applications and onion services is the improved security of Tor running on its own network interface, simplifying the process of ensuring any other network requests don't leak, as well as isolating vulnerabilities in each VM. Onion services also sometimes need the performance benefit of tools like Onionbalance that involve running multiple onion services for one logical service. Running an entire operating system to run the one process is a lot of overhead, and can be a problem for desktop systems with limited resources, or be expensive for onion services.
To summarize, the benefits of a Tor unikernel include:
Hermit is specifically designed to run Rust applications. Since Tor is going to be switching to Arti as its recommended client (presumably sometime in the near future), the two are an obvious match. However, there is a lot of work that needs to be done in Hermit and the Rust ecosystem before it's viable for using with Arti. Using a fully featured program like Arti as a motivating case can help reveal a lot of the pain points in Hermit as it exists now, where fixes in functionality and libraries that Arti relies on translate directly into expanding the practical uses of Hermit across the entire Rust ecosystem.
If this interests you, feel free to reach out.