rust-core_io icon indicating copy to clipboard operation
rust-core_io copied to clipboard

How to build this crate?

Open jeancf opened this issue 4 years ago • 2 comments

I came here through the rust-fatfs crate. I want to manipulate files on an SD Card in a no-std context (microcontroller). In this case, rust-FatFs relies on the Read, Write and Seek traits from this crate.

Simply put, I can not figure out out to build this crate. When I run cargo build with nightly I get error: failed to run custom build command for core_io v0.1.20210325`. I read the README a couple of time but I do not understand what this patching business is about. What does this sentence mean "First, make sure the commit you want to add is fetch in the git tree at /your/rust/dir/.git. Then, import the right source files"? Why would I need to edit or publish patches?

I also notice that the Travis job fails but with a different error than mine. Is the crate broken?

My question is simple: how can I build and use this crate?

jeancf avatar Jun 17 '21 19:06 jeancf

Maybe someone knows another workaround for writing stream data without std::io::Write?

Has someone tried to use heapless Queue?

dobromyslov avatar Jan 19 '22 05:01 dobromyslov

I ended up using https://github.com/technocreatives/core2 as I was looking for the Read and Write traits in a no_std context.

jeancf avatar Jan 19 '22 07:01 jeancf