Closed roykim98 closed 3 months ago
Can that be set in Cargo.toml
instead of .cargo/config.toml
?
@nkaz001 I don't believe so, but I'm no expert on Rust / Cargo. I had tried that initially, but got the following error:
Error: failed to parse manifest at `.../hftbacktest/Cargo.toml`
Caused by:
this virtual manifest specifies a `target` section, which is not allowed
My understanding is that, based on documentation:
Cargo.toml is a manifest file in which we can specify a bunch of different metadata about our package.
And configuration exists outside of the manifest--which configures Cargo, not necessarily our package.
I see. Thank you.
Without this change, builds will otherwise fail on Apple M1 CPUs when trying to build the Python extensions.
https://github.com/inferiorhumanorgans/r2-c166/blob/752b61d36acd1ddbbcd0844505f94093773e4cc5/README.md#building-on-osx
cargo build
succeeds with this change.