• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

baoyachi / shadow-rs / 20374449968 / 1
76%
master: 76%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.5.0
DEFAULT BRANCH: master
Ran 19 Dec 2025 03:42PM UTC
Files 10
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Dec 2025 06:28AM UTC coverage: 77.563% (+0.4%) from 77.182%
20374449968.1

Pull #251

github

baoyachi
feat: add Unix timestamp support for build and commit times

Add BUILD_TIMESTAMP and COMMIT_TIMESTAMP constants as i64 type to provide
Unix timestamp (seconds since epoch) for build time and commit time.

Changes:
- Add ConstType::Int enum variant for i64 type support
- Add DateTime::timestamp() method to return Unix timestamp
- Add BUILD_TIMESTAMP constant in env.rs
- Add COMMIT_TIMESTAMP constant in git.rs
- Update all match statements to handle Int type
- Update README.md with new constants documentation
- Update example_shadow to demonstrate timestamp usage
- Add test for timestamp() method

Resolves: #249

Type: i64 (not string, no parsing needed)
Example usage:
  let age = current_ts - build::BUILD_TIMESTAMP;

All tests passing, fully backward compatible.
Pull Request #251: feat: add Unix timestamp support for build and commit times

522 of 673 relevant lines covered (77.56%)

1.09 hits per line

Source Files on job 20374449968.1
  • Tree
  • List 10
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20374449968
  • 3e269878 on github
  • Prev Job for on BUILD_TIMESTAMP (#19914983598.1)
  • Next Job for on BUILD_TIMESTAMP (#20375059394.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc