Skip to content

Conversation

@timsaucer
Copy link
Contributor

If you attempt to build with no default features for the lance crate (not just the workspace):

cargo build -p lance --no-default-features

Then you will get the following error:

error[E0277]: the trait bound `chrono::DateTime<chrono::Utc>: Deserialize<'_>` is not satisfied
   --> rust/lance/src/dataset.rs:175:10
    |
175 | #[derive(Deserialize, Serialize)]
    |          ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `chrono::DateTime<chrono::Utc>`
    |
    = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `chrono::DateTime<chrono::Utc>` type
    = note: for types from other crates check whether the crate offers a `serde` feature flag

This is a problem for projects that are using the lance crate and building with the --no-default-features flag. It can be overcome on the user's end by making this an explicit dependency during our builds, but it should probably be included here.

@timsaucer timsaucer changed the title fix: add serde feature flag depedency fix: add serde feature flag dependency Sep 28, 2025
@github-actions github-actions bot added the bug Something isn't working label Sep 28, 2025
@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.85%. Comparing base (30dcb5b) to head (b2cdd1b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4833   +/-   ##
=======================================
  Coverage   80.85%   80.85%           
=======================================
  Files         329      329           
  Lines      129625   129625           
  Branches   129625   129625           
=======================================
+ Hits       104810   104814    +4     
+ Misses      21133    21129    -4     
  Partials     3682     3682           
Flag Coverage Δ
unittests 80.85% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eddyxu
Copy link
Member

eddyxu commented Sep 29, 2025

Generally looks good. Pending CI

@wjones127
Copy link
Contributor

Fixed in #5110

@wjones127 wjones127 closed this Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants