liquid icon indicating copy to clipboard operation
liquid copied to clipboard

cargo build error

Open ethan75 opened this issue 3 years ago • 1 comments

[root@qlh liquid]# cargo build Compiling proc-macro2 v1.0.47 Compiling proc-macro-hack v0.5.19 error[E0635]: unknown feature proc_macro_span_shrink --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.47/src/lib.rs:92:30 | 92 | feature(proc_macro_span, proc_macro_span_shrink) | ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try rustc --explain E0635. error: could not compile proc-macro2

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: build failed

ethan75 avatar Oct 28 '22 03:10 ethan75

编译liquid合约需要使用cargo liquid工具,建议阅读文档

如果想直接编译liquid项目,请参考这个脚本 https://github.com/WeBankBlockchain/liquid/blob/main/scripts/check.sh

bxq2011hust avatar Nov 18 '22 03:11 bxq2011hust