status-im / nim-chronos

Chronos - An efficient library for asynchronous programming
https://status-im.github.io/nim-chronos/
Apache License 2.0
362 stars 51 forks source link

Compile-time configuration #371

Closed arnetheduck closed 1 year ago

arnetheduck commented 1 year ago

This PR moves all compile-time configuration to a single module, simplifying documentation and access to these features.

Upcomfing features may be enabled either individually, or through a new chronosPreviewV4 catch-all designed to allow code to be prepared for increased strictness in future chronos releases.

-d:chronosDebug may be used to enable the existing debugging helpers together.

This PR was originally part of #350.