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

Why are you using this crate? #9

Open
koivunej opened this issue Jan 8, 2022 · 2 comments
Open

Why are you using this crate? #9

koivunej opened this issue Jan 8, 2022 · 2 comments

Comments

@koivunej
Copy link
Owner

koivunej commented Jan 8, 2022

Over it's lifetime this crate has seen quite many downloads. For example, the 2021-10-19 had a huge (for this crate) 10k per day spike. I haven't used this crate myself in a few years but would be interested to know what are you using it for? If you are more than trying it out, does the duck typing aspect of $field.into_owned() give you any trouble, if so, how do you work around it?

I guess I'm mostly interested to hear if this should have some warning disclaimers on the README; I worry anyone trying this crate out quite quickly becomes aware of the limitations of it and the std::borrow::Cow. Would be happy to guide new folks to a blog post on std::borrow::Cow limitations if anyone knows a recent one.

@hoodie
Copy link
Contributor

hoodie commented Jan 8, 2022

I personaly use it for some parsers where I try to create the entire data-structure only with cow types.

@neocturne
Copy link

My usecase also has to do with parsing.

After finishing my implementation, I've also found the crate https://crates.io/crates/ownable with similar features (even a few more I think, but for me this crate + my additions from #18 are sufficient).

ownable is a lot less popular than derive-into-owned according to crates.io's statistics, and neither see a lot of changes these days. If you are not using this crate yourself anymore, maybe it would make sense to recommend the other crate in your README? Would it make sense to switch my project over to ownable, rather than extending derive-into-owned?

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

3 participants