After creating a new Anchor project, when you do anchor build
you will see this warning:
Warning: cargo-build-bpf is deprecated. Please, use cargo-build-sbf
After looking into the cargo build
options, it turns out you can toggle pass in the --arch sbf
option that switches to cargo-build-sbf
.
This all seems to work well, but the downside is that I have to specify it on each command (anchor build --arch sbf
, anchor test --arch sbf
).
I was wondering if there's a way to configure an Anchor project to use the sbf
arch by default.