citahub / cita-common

Libraries for CITA (https://github.com/citahub/cita)
Apache License 2.0
38 stars 34 forks source link

Upgrade `sodiumoxide` #281

Closed kaikai1024 closed 4 years ago

kaikai1024 commented 5 years ago

to 0.2.2

error[E0432]: unresolved import `self::hashable::HASH_NULL_RLP`
  --> /home/kaikai/.cargo/git/checkouts/cita-common-1aad419f3e80ba17/6e6ac14/cita-merklehash/src/lib.rs:27:9
   |
27 | pub use self::hashable::HASH_NULL_RLP as HASH_NULL;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `HASH_NULL_RLP` in the root

error[E0599]: no method named `crypt_hash` found for type `std::vec::Vec<u8>` in the current scope
  --> /home/kaikai/.cargo/git/checkouts/cita-common-1aad419f3e80ba17/6e6ac14/cita-merklehash/src/lib.rs:43:18
   |
43 |     stream.out().crypt_hash()
   |                  ^^^^^^^^^^
boundless-forest commented 5 years ago

I guess this error dues to missing features.

kaikai1024 commented 5 years ago

I guess this error dues to missing features.

Need to dig into the reason. I just have a try on my branch: https://github.com/kaikai1024/cita/tree/update-sodiumoxide