Skip to content

Conversation

@ChristopherRabotin
Copy link
Member

This commit addresses a number of TODO items and potential optimization comments found throughout your codebase.

Key changes include:

  • Verification and Removal of Outdated TODOs:

    • Confirmed that TODOs in src/parser.rs related to FromStr for WeekdayName and MonthName were already addressed or outdated.
    • The TODO in src/epoch/gregorian.rs:L427 regarding user-defined format string parsing for Epoch remains relevant.
  • Testing TODOs:

    • Added new test cases in tests/epoch.rs for TDB and ET continuity around the J2000 epoch.
    • Removed the corresponding TODO comments from src/epoch/mod.rs.
  • Feature TODOs and Documentation:

    • Updated documentation for the Frequencies trait in src/timeunits.rs to clarify the limitation for frequencies > 1 GHz.
    • Implemented parsing for Token::WeekdayDecimal (%w) in src/efmt/format.rs, including input validation for the C89 standard (0-6), and removed the associated TODO.
  • Build/Verification Tooling TODOs:

    • Updated comments in src/epoch/kani_verif.rs for skipped Kani proofs (ET, TDB, UTC) to provide more specific explanations of the challenges (e.g., Newton-Raphson, floating point precision, leap second list complexity).
    • Improved type sequence parsing logic in generate_stubs.py by making type name joining more robust and removing specific hardcoded hacks.

One outstanding TODO remains from src/epoch/gregorian.rs:L427 for enhancing epoch parsing from strings with user-defined formats.

google-labs-jules bot and others added 2 commits May 31, 2025 15:16
This commit addresses a number of TODO items and potential optimization comments found throughout your codebase.

Key changes include:

- Verification and Removal of Outdated TODOs:
  - Confirmed that TODOs in `src/parser.rs` related to `FromStr` for `WeekdayName` and `MonthName` were already addressed or outdated.
  - The TODO in `src/epoch/gregorian.rs:L427` regarding user-defined format string parsing for `Epoch` remains relevant.

- Testing TODOs:
  - Added new test cases in `tests/epoch.rs` for TDB and ET continuity around the J2000 epoch.
  - Removed the corresponding TODO comments from `src/epoch/mod.rs`.

- Feature TODOs and Documentation:
  - Updated documentation for the `Frequencies` trait in `src/timeunits.rs` to clarify the limitation for frequencies > 1 GHz.
  - Implemented parsing for `Token::WeekdayDecimal` (`%w`) in `src/efmt/format.rs`, including input validation for the C89 standard (0-6), and removed the associated TODO.

- Build/Verification Tooling TODOs:
  - Updated comments in `src/epoch/kani_verif.rs` for skipped Kani proofs (ET, TDB, UTC) to provide more specific explanations of the challenges (e.g., Newton-Raphson, floating point precision, leap second list complexity).
  - Improved type sequence parsing logic in `generate_stubs.py` by making type name joining more robust and removing specific hardcoded hacks.

One outstanding TODO remains from `src/epoch/gregorian.rs:L427` for enhancing epoch parsing from strings with user-defined formats.
@ChristopherRabotin ChristopherRabotin merged commit 900e037 into master May 31, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants