Closed fenollp closed 3 years ago
Hi @fenollp, and sorry for the delay. Is the source of your project available somewhere to test? Do you have a custom .cargo/config
in your repository? There is already a config file in the Rust image at /root/.cargo/config
containing the required configuration for building with the cross-compiler.
1. it fails, complaining about missing `rustfmt` even though I am not calling `cargo fmt`
Are you sure it’s not called by a dependency? Again, hard to tell without seeing your source.
2. it always updates the cargo index
Why shouldn’t it?
I have found my app can build fine with cross build --target=armv7-unknown-linux-gnueabihf
so I'm no longer pursuing this route.
I did add https://github.com/toltec-dev/toolchain/blob/cb0b263d908c1fc80ec8d0fc03c2b8f020d58c95/rust/config to my project's .cargo/config so many thanks for that :)
You can find my app at https://github.com/fenollp/reMarkable-tools
I'm ok with closing this if you'd like.
You’re welcome. I’m glad you found a working way to build your app!
Hi, here's how I'm trying to use your Rust toolchain:
Which is not too far removed from libremarkable.rs's, however there are 2 issues:
rustfmt
even though I am not callingcargo fmt
What should I be doing differently? Thanks