Skip to main content

Module deprecated

Module deprecated 

Source
Expand description

Deprecation warnings that are tied to calendar dates.

[deprecated_at!] warns once per id from the date a feature is deprecated, and trips a debug assertion once the date it was meant to be removed has passed, so deprecated code cannot linger unnoticed.

Statics§

WARNED
Ids that have already warned in this process.

Functions§

date
Parse a YYYY-MM-DD date; panics on malformed input (a programmer error).
today
Today’s date in UTC.