-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: impl JsonTypdef for Url (behind a feature flag) #22
Conversation
This is something I need to think about. It's not exactly desirable for a library to add feature flags, and if we start implementing the trait for foreign types, I'm not sure where to draw the line. |
I get your point. However, it would definitely help with adoption. Could you release a version with just the ordered field output? That's the one crucial for my use case. |
Yes. I'm currently traveling, but I'll try to get it done tomorrow. |
Okay, let's do it. I had a think and figured expecting |
Cargo.toml
Outdated
|
||
[features] | ||
url = ["dep:url"] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[features] | |
url = ["dep:url"] |
I'm fairly sure this is unnecessary. The feature should be implicitly created bc of optional = true
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL
I think we should do it for all/most of structs in |
(sorry about the edit - accident) |
BTW, any clues about why Edit: probably unrelated, works for me locally. Happy to ignore it. |
67c52b8
to
b5de3e7
Compare
Any pointers on how to manually implement |
b5de3e7
to
6f18f25
Compare
That's a funny one. |
Ah, it looks like |
…rom optional dependency
Alright. I'm happy to merge as-is, with just support for |
|
||
[dev-dependencies] | ||
trybuild = "1.0.49" | ||
trybuild = "1.0.89" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for diagnosing this!
It's all released! |
Thanks for the quick dev cycle, it's not common in OSS 😅 |
No description provided.