mikkyang / rust-jwt

JSON Web Token library for Rust
MIT License
176 stars 38 forks source link

Re-exporting dependancies #79

Open watsom27 opened 2 years ago

watsom27 commented 2 years ago

Hi,

Since this library depends on specific versions of Hmac and Sha2, please could you look into re-exporting them from the crate?

Getting this library up and running was a pain in the butt because I had to downgrade these two libraries, causing issues elsewhere in the codebase.

Thanks

mikkyang commented 2 years ago

Hi,

Thanks for flagging this pain point. Let me catch up on what the best way to do this is, I'm a bit out of date on best practices.

watsom27 commented 2 years ago

Thanks, appreciate it

mvolfik commented 2 years ago

I wanted to use this crate with openssl (to use a private key), but turns out I can't specify the type of PKeyWithDigest, because it needs a parameter Private, which isn't exported by jwt

Warp solves this by simply re-exporting dependencies as pub use <dep>: https://docs.rs/warp/0.3.2/src/warp/lib.rs.html#171