KokaKiwi / rust-hex

A basic crate to encode values to hexadecimal representation. Originally extracted from rustc-serialize.
https://crates.io/crates/hex
Apache License 2.0
201 stars 55 forks source link

Add alloc feature #42

Closed Luro02 closed 3 years ago

Luro02 commented 4 years ago

Fixes #40

Luro02 commented 4 years ago

I change the -D flag to -W for clippy, because of https://www.reddit.com/r/rust/comments/f5xpib/psa_denywarnings_is_actively_harmful/

chrysn commented 3 years ago

@Luro02, could you try to update the branch to the latest developments in this crate? Right now, it merge-conflicts on half the affected files.

In the meantime, I've uploaded the branch under a different name and with a README that indicates that it's just a temporary fork -- this allows me to publish other crates that depend on the no-alloc feature on crates.io.

Luro02 commented 3 years ago

@chrysn done

Luro02 commented 3 years ago

Blocking issue has been closed (https://github.com/rust-lang/cargo/issues/3494):

The issue has been resolved by introducing a new syntax for "weak dependencies", through which it is possible to specify feature flags, without enabling them.

Sadly this is an unstable feature (Tracking Issue: https://github.com/rust-lang/cargo/issues/8832) and it seems like it might take quite a while, until it is stabilized.