wireapp / proteus

Axolotl Protocol Implementation
GNU General Public License v3.0
421 stars 34 forks source link

compiled failed with sodiumoxide 0.1.0 #19

Closed zhaohansprt closed 6 years ago

zhaohansprt commented 6 years ago
error[E0308]: mismatched types --> /root/.cargo/git/checkouts/proteus-c72aed2360065c51/cda560b/src/lib.rs:28:5 27 pub fn init() -> bool { ---- expected bool because of return type 28 sodiumoxide::init() ^^^^^^^^^^^^^^^^^^^ expected bool, found enum std::result::Result

= note: expected type bool found type std::result::Result<(), ()>

raphaelrobert commented 6 years ago

Sodiumoxide has made some changes to their API. We will fix this soon. For now you can restrict it to version 0.0.16 (you would probably have to do the same for HKDF to avoid conflicts).

neongreen commented 6 years ago

Fixed.

neongreen commented 6 years ago

(Now we use sodiumoxide-0.1, and 0.0.16 becomes unsupported)

zhaohansprt commented 6 years ago

so soon so nice😊