-
Notifications
You must be signed in to change notification settings - Fork 110
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
Rename chrono
, time
and secret
features
#939
Rename chrono
, time
and secret
features
#939
Conversation
c339175
to
f4733ca
Compare
v2: reverted the changes that dropped the minimum req version of |
examples/Cargo.toml
Outdated
@@ -10,7 +10,7 @@ futures = "0.3.6" | |||
openssl = "0.10.32" | |||
rustyline = "9" | |||
rustyline-derive = "0.6" | |||
scylla = {path = "../scylla", features = ["ssl", "cloud", "chrono", "time", "num-bigint-03", "num-bigint-04", "bigdecimal-04"]} | |||
scylla = {path = "../scylla", features = ["ssl", "cloud", "chrono-04", "time-03", "num-bigint-03", "num-bigint-04", "bigdecimal-04"]} |
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.
Not related to this PR, but: why do we keep here both num-bigint-03
and num-bigint-04
at the same time?
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.
It's not like both of these features cannot be used at the same time. The user might (for some weird reason) want to support (de)serialization for both versions of num_bigint::BigInt.
There is other problem, though - BigInt
is not used in the examples at all... This means that we do not make use of any of these features anyway. I'm not sure why I added these features to examples. Probably for some reason related to vscode rust-analyzer. As I remember, the vscode' analyzer compiles the driver code with the features used in the examples/ by default (it is helpful to detect errors under #[cfg(feature = ...)]
). However, this can be configured in the workspace settings.
I think we could remove unused features from examples, but is it really necessary?
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.
If we really want to have all features enabled in examples, I'd suggest using "full_serialization" feature instead of listing them all manually.
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.
I'd really like to see support for 2 major versions of each lib (as is done with num-bigint) - that way we would know that we are actually able to support more than one
f4733ca
to
88607ab
Compare
v2.1: rebased on top of main - to check if CI passes |
1abe8d5
to
cde43f6
Compare
See the following report for details: cargo semver-checks output
|
cde43f6
to
7a0d3c9
Compare
5041458
to
36dd1ad
Compare
With @Lorak-mmk, we had a discussion offline and decided not to introduce support for older versions of |
36dd1ad
to
04fea72
Compare
v2.2: rebased on top of main |
@muzarski Please remove mock commits, then I'll review the final version. |
04fea72
to
9c35df8
Compare
9c35df8
to
3fba8fd
Compare
Rebased on main. I'll wait for CI to pass and then drop the mock commits. |
3fba8fd
to
a850ee4
Compare
v3:
|
Is the new deserialization code that uses |
a850ee4
to
3e3c984
Compare
Good point. |
Since some other version of time_03 might be supported in the future, we cannot have multiple methods such as `as_date()` defined. I don't think it's good idea to expose version specific methods (e.g. `as_date_03()`) to the users. This is why we make them test utilities only.
Made `CqlValue`-to-chrono types conversion methods a private utility methods used only for tests.
3e3c984
to
cc705ad
Compare
v3.1:
|
@Lorak-mmk @wprzytula It has 2 approves. Can we finally merge this? |
Ref: #771
Motivation
To follow the same naming conventions as for other features, we want to add a crate version numbers to the remaining dependencies hidden behind crate features:
chrono
,time
andsecrecy
.Changes
Dependecies versions
I bumped
secrecy
crate version from0.7.0
to0.8.0
which is the most recent version.Feature names
Renamed following features (and dependencies):
chrono
=> featurechrono-04
, dependencychrono
=> dependencychrono_04
(scylla-cql)time
=> featuretime-03
, dependencytime
=> dependencytime_03
(scylla-cql)secret
=> featuresecrecy-08
, dependencysecrecy
=> dependencysecrecy_08
Pre-review checklist
./docs/source/
.Fixes:
annotations to PR description.