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
Use iovec
instead of std::io
in no_std
builds?
#282
Comments
Why would it not be sufficient to feature gate those fns on a |
There might be libs that use bytes that use those functions, that would be portable to If I had such a lib that I needed to use in I guess it would also work to just pin |
Maybe you are right, there might not be a real use-case for this, if the user of bytes has already switched to |
I think we should close this, sorry for noise It's really too bad they didn't put I think that since you already have some partial dependency on |
Until #263 was merged in June,
tokio-rs/bytes
could have built cleanly as ano_std
library, grabbingVec
etc. from thealloc
crate.After the move to
std::io::IoSlice
, it becomes impossible for the crate to expose the same interface instd
mode and inalloc
mode, so either we can no longer supportno_std
development or we must embrace features that are not additive... both of which are pretty painful in projects that do no_std developmentCan we bring back the
iovec
dependency as an optional dependency and use it instead ofIoSlice
, when available? That will make it easier to usebytes
in projects that build some targets asno_std
and some targets asstd
. I can describe my usecase in more detail if that is helpful, but these kinds of interface changes acrossno_std
andstd
are the source of a lot of pain especially for example inserde
The text was updated successfully, but these errors were encountered: