This is a Rust port of the potpack algorithm for packing 2D rectangles.
Blog post Original JS implementation
As mentioned in the original implementation README, is not the most optimal algorithm, however it's very simple.