WeBankBlockchain / liquid

Liquid 由微众银行区块链团队开发并完全开源,是一种嵌入式领域特定语言( embedded Domain Specific Language,eDSL),能够用来编写运行于区块链底层平台FISCO BCOS的智能合约。
https://liquid-doc.readthedocs.io/zh_CN/latest/
Apache License 2.0
43 stars 15 forks source link

cargo build error #36

Open ethan75 opened 1 year ago

ethan75 commented 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) | ^^^^^^^^^^^^^^^^^^^^^^

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

bxq2011hust commented 1 year ago

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

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