-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
scylla-cql: Use #[cfg(feature = "time")]
for time
related impl SerializeCql
's
#898
Conversation
…erializeCql`'s Fixes scylladb#897
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.
When I reviewed the changes which introduced the time
and chrono
features, I was a bit too optimistic and thought that only checking compilation with and without all features would suffice. Would you mind adding some steps to .github/workflows.yml
to check that everything compiles when only one of the time
, chrono
, secret
features is enabled? You could base them on the existing Cargo check with all serialization features
step.
1e4f875
to
de35eca
Compare
Good idea! I've added three steps to the job, and it seems to work. As a complete side note, I've found that |
.github/workflows/rust.yml
Outdated
- name: Cargo check with all secret feature | ||
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "secret" | ||
- name: Cargo check with all chrono feature | ||
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "chrono" | ||
- name: Cargo check with all time feature |
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.
Please remove "all" words from descriptions.
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.
Oops!
Sure, that would be great |
Code change looks good to me now. Could you squash 2 commits that modify CI? |
207b5db
to
c23cad4
Compare
Squashed! |
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.
Looks good to me, @piodul ?
Fixes: #897, see the issue for details.
Additionally I went ahead and checked that
--no-default-features -F time
also works.Pre-review checklist
./docs/source/
.Fixes:
annotations to PR description.