Adds features option to use either time or chrono for sqlx#46
Conversation
- Adds cfg option to use chrono instead of time with sqlx
|
Thanks for this. I can't publish it until later, but I'll go ahead and merge. |
|
Oops, I missed that this breaks feature unification. I'll have to roll this back. I'm not sure what the "right" approach is, but note that |
This would break feature unification. This reverts commit d3be5e3.
|
@maxcountryman I would recommend maybe just using the Had we better understood feature unification when we were initially designing SQLx, we might have avoided this issue entirely, but the choice is rather ossified at this point. Even once transact-rs/sqlx#3383 is fully implemented, I'm not sure what to do with the existing behavior except maybe force the user to pick an option. |
|
I had the idea to trivially take the outer-product of the various options, so one has both https://github.com/aschweig/tower-sessions-stores/tree/chronofix/sqlx-store |
|
Hey guys, has this been fixed? Or, can we fix it? |
|
Maybe use my fork: https://crates.io/crates/tower-sessions-sqlx-store-chrono |
Adds features option to use either time or chrono for sqlx