Closed blckngm closed 1 year ago
Pros:
cross build -v
cross clippy
capsule build
cross
~It mostly already works, I had to make one small change to cross:~
~https://github.com/cross-rs/cross/commit/c632612f99f7387d18d8eac0550b2a96596e1f2e~
Add this configuration (Cross.toml) to a capsule project:
Cross.toml
[build] default-target = "riscv64imac-unknown-none-elf" [target.riscv64imac-unknown-none-elf] # Both image works # image = "thewawar/ckb-capsule:2022-08-01" image = "nervos/ckb-riscv-gnu-toolchain:focal-20230214"
Then I can cross +nightly build -p some_contract
cross +nightly build -p some_contract
Shouldn't break reproducible build as long as the same rust version, options and image is used.
Cons:
It works with cross main branch now.
Cross also supports path deps outside of the project dir.
Pros:
cross build -v
,cross clippy
etc (#35).capsule build
can be a thin wrapper ofcross
.~It mostly already works, I had to make one small change to cross:~
~https://github.com/cross-rs/cross/commit/c632612f99f7387d18d8eac0550b2a96596e1f2e~
Add this configuration (
Cross.toml
) to a capsule project:Then I can
cross +nightly build -p some_contract