mirror of
https://github.com/ForeverPyrite/r2client.git
synced 2025-12-10 01:38:07 +00:00
Anything below this first part is definitely me being astounded This is the commit where it is in a working state that isn't exactly primitive, but it's not comprehensive, fully fleshed out, or polished either. But I like where it's going You wouldn't believe it. I came back to this after a MASSIVE crash out with how HUGE and CLUNKY trying to use the AWS SDK was. Well Guess what GUESS Literally I just went to test it this morning and I freaking KID YOU NOT it just worked. no changes. it just worked. YOU WANNA KNOW HOW I CAN TELL? Look at this FREAKING COMMIT and see that ALL THAT CHANGED was the todo.md FILE literally what the fart I shouldn't complain but OH MY GOODNESS I spent SO LONG working on it and it turned out it WASN'T all for naught because I guess something was just...stuck. Bad credentials somehow? I don't know anymore. I'm just glad it's over.
616 B
616 B
For release:
- Create a crate::Result that is Result<u8, R2Error>, and have Ok(status_code)
- Consider dropping more dependencies, using hyper or some lower level stuff for async, and then http for blocking
- A way to view the file contents (UTF-8 valid) would be cool
- Add functions that will list files with their metadata (perhaps a simple R2File type?)
- Clear out all all print statements and consider logging (this is a library, after all)
Dev (since we're so back):
- Update the sync library
- Make a .env with test-bucket creds
- Actually test the damn thing