Closed Serial-ATA closed 2 months ago
Are you interested in any help getting this one over the finish line? It would be great to be able to use lofty in wasm/web.
Are you interested in any help getting this one over the finish line?
Aside from me having to rebase this since its months old, it actually works just fine. I originally kept this as a draft due to the insane number of repetitive where
clauses I had to add just to get it working.
I was hoping to find some kind of hack to clean this up, but in the end the only way is just waiting for Implied Bounds to land (so probably 6 years from now 🫤).
I haven't really looked at this in awhile, but since there's a handful of reactions on it I'll go ahead and merge it in as-is. I'll just need a day or two to bring the branch up to date.
Thanks! I'm happy to help out with any grunt work if that's useful.
Thanks again for all your great work on lofty!
Dealing with all those merge conflicts was painful, I won't let PRs sit like this anymore :smile:.
This'll be out in 0.19, still a few things I need to do before release.
This adds two new traits,
Truncate
andLength
, which are two operations we needed that required the use ofFile
.With these two traits, combined with
std::io::Read
,std::io::Write
andstd::io::Seek
, other types can now be treated as files.It is now possible to write to a
Cursor<Vec<u8>>
.TODO: changelog entry