Holochain Forum

NOTICE: building zomes was broken for a while (it's okay now)

To anyone who tried to create and compile a zome over the weekend, you might’ve seen an error about futures v0.3.1 failing to compile with this error:

   Compiling futures v0.3.1
error: expected item after attributes
   --> /holochain-rust/build/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.3.1/src/lib.rs:529:19
    |
529 |     #[macro_export]
    |                   ^

error: aborting due to previous error

error: could not compile `futures`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Exited with code exit status 101

futures is a third-party lib that the HDK depends on, so this would’ve resulted in the inability to compile any zomes. It looks like someone pushed some bad code to futures v0.3.1 which caused this issue.

Anyhow, it looks like the problem is now fixed, so you can all go back to writing beautiful zomes. If you’re still getting this error, delete the Cargo.lock file in your zome’s code folder and try recompiling.

1 Like