starknet-io / types-rs

🐺 Starknet Rust types 🦀
MIT License
66 stars 41 forks source link

fix: `ftm::Debug` impl fails to compile #78

Closed xJonathanLEI closed 5 months ago

xJonathanLEI commented 5 months ago

The ftm::Debug impl fails to compile unless the alloc feature is on. The underlying math lib allows alloc-free hex output, except it's not fixed-width like the current impl does.

This technically changes the debug output format, but it should be worth it for getting to avoid requiring alloc for just debug printing.

Also adds a GitHub Actions workflow to check that all feature combinations would compile correctly so that this doesn't happen again.