-
Notifications
You must be signed in to change notification settings - Fork 142
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
Add a version using new io
module
#2
Comments
You should be able to use
with
You'll need to import Also, I'm on IRC (nick: |
But |
Oh! I see what you meant now. Yes. Currently using If you want to start the port, that's fine with me. I probably don't want to merge to master until everything is fully baked in |
Sounds good. How about a separate branch that tracks new |
Perfect. :-) |
It looks like @tanadeau already did this! tanadeau@221dcc8 |
@BurntSushi Could you create a branch so I can create a PR to it? That's assuming you still want it to be separate for now. |
@tanadeau I've just pushed a branch called |
I just created the PR. I think the new modules are good for regular use, but there are still missing pieces. I'm going to start using them and this library for a project I'm creating so I'll find out soon myself. |
Thanks for merging! It might be worth updating the README.md on master to mention the newio branch. |
What do you think if i merge |
Sounds good to me |
Great! @BurntSushi, what do you think? May be a lot of typing, so i want to make sure you will merge it. |
I really don't want to have both live at the same time in the same branch. Can you tell I'd like to just move everything over to the new |
I agree with you to be honest.. just my impatience. I think you can, but it's not an option for maintainers of cargo packages because you can't publish a package with git dependencies. I think when both |
👍 for moving over to the new IO APIs. As I understand it the functionality provided by this library isn't really necessary with the old APIs, but it is definitely helpful with the new APIs. I am running into this right now porting a custom Serializer/Deserializer to the new IO APIs. Perhaps cut one final release before moving over? |
👎 for moving to the new IO apis before they are stable. Keep old API until we no longer need |
If you want to use this library with the old IO libraries, why not just pin the version in your Cargo.toml to the last release? I'm not sure what's gained by keeping byteorder against a deprecated API that, as @danburkert mentioned, needs it less. |
I don't think we need to wait for official stability. There is still plenty of unstable stuff to go around, and as others have mentioned, the utility of this library is tied to the new I will desperately try to find time this weekend to get this released with the new io. (The work is done for this library, but I'll have to fix my downstream dependencies.) |
@sfackler I think you're using this crate too? Do you have any strong opinions? |
I'm going to be switching rust-postgres over pretty soon. It also seems like it should be pretty painless to support both old io and new io at the same time. |
@sfackler I think the argument is mainly "which version should be the one that is the current version on cargo". |
@TyOverby byteorder can just define both ReaderBytesExt and ReadBytesExt and the same for Writer. It's not like they're totally incompatible or anything. |
|
As I understand, the purpose of this crate is to prepare for a world where we no longer have the endian-writing/reading functions on Reader and Writer. As someone that that uses those functions a lot, I would like to prepare my crates (namely bincode) for the new
io
crate. I'd be willing to help do the port if you are interested.The text was updated successfully, but these errors were encountered: