I looked into it. There's a crate for it: https://docs.rs/tailcall