nervosnetwork / capsule

Capsule is an out-of-box development framework for creating smart contract on Nervos' CKB.
MIT License
60 stars 34 forks source link

Cargo mode for building rust contracts? #114

Open blckngm opened 1 year ago

blckngm commented 1 year ago

Add an option to use cargo instead of cross?

This would require natively installed riscv64-unknown-elf-gcc instead of cross and docker.

This can be an option in the config file and can be overridden with an environment variable.

blckngm commented 1 year ago

Just noticed that gcc is not necessary if there's no C code to build. Default linker is rust-lld.