restrict chrono to no-dfault-features, update julian_day_converter

chrono has default features that are incompatible with some targets, such as non-js WebAssembly.

Removing the unused defaults allows limbo to compile to these targets
This commit is contained in:
Doug Anderson444 2025-02-10 21:58:34 -04:00
parent 1da43266e9
commit 0423945803
No known key found for this signature in database
3 changed files with 11 additions and 10 deletions

View file

@ -1536,11 +1536,13 @@ mod tests {
#[allow(deprecated)]
#[test]
fn test_apply_modifier_julianday() {
use julian_day_converter::*;
let dt = create_datetime(2000, 1, 1, 12, 0, 0);
let julian_day = julian_day_converter::datetime_to_julian_day(&dt.to_string()).unwrap();
let julian_day = &dt.to_jd();
let mut dt_result = NaiveDateTime::default();
if let Ok(result) = julian_day_converter::julian_day_to_datetime(julian_day) {
dt_result = result;
if let Some(ndt) = JulianDay::from_jd(*julian_day) {
dt_result = ndt;
}
assert_eq!(dt_result, dt);
}