Open ethan75 opened 1 year ago
[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) | ^^^^^^^^^^^^^^^^^^^^^^
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
rustc --explain E0635
proc-macro2
To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: build failed
编译liquid合约需要使用cargo liquid工具,建议阅读文档
如果想直接编译liquid项目,请参考这个脚本 https://github.com/WeBankBlockchain/liquid/blob/main/scripts/check.sh
[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 compileproc-macro2
To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: build failed