Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build this crate? #35

Open
jeancf opened this issue Jun 17, 2021 · 2 comments
Open

How to build this crate? #35

jeancf opened this issue Jun 17, 2021 · 2 comments

Comments

@jeancf
Copy link

jeancf commented Jun 17, 2021

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?

@dobromyslov
Copy link

dobromyslov commented Jan 19, 2022

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

Has someone tried to use heapless Queue?

@jeancf
Copy link
Author

jeancf commented Jan 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants