kinnison / git-testament

Rust library for creating a commit testament at compile time
BSD 3-Clause "New" or "Revised" License
47 stars 10 forks source link

Make crate `no_std` compatible #12

Closed ghost closed 3 years ago

ghost commented 3 years ago

The current implementation of the crate is not no_std compatible, since it is not marked with the#![no_std] attribute.

This PR addresses that, as well as improving the crate in general:

Tests were updated and one test was removed when the alloc crate is not present, as it would fail in certain repository conditions, as expected.

kinnison commented 3 years ago

Wow, thank you so much for this. I'm not much of a no_std user but I definitely wanted this crate to work well in that kind of environment. This includes a new-to-me crate so it's a good learning point for me.

The only CI failures are in beta/nightly clippy which is fixed on master, so I'm merging this, thank you again!