BurntSushi / jiff

A date-time library for Rust that encourages you to jump into the pit of success.
The Unlicense
1.65k stars 26 forks source link

cargo: fix alloc-only build #109

Closed BurntSushi closed 3 weeks ago

BurntSushi commented 3 weeks ago

I was lured into a false sense of confidence with CI testing. Because tests unconditionally enable std, this

cargo test --lib --no-default-features --features alloc

doesn't actually fail when there is an errant std reference. But this does:

cargo build --no-default-features --features alloc

We fix our test script to catch this case and also fix the build errors.

Fixes #108