Crate gpui_util_macros

Crate gpui_util_macros 

Source

Macros§

line_endings
This macro replaces the line endings \n with \r\n for Windows. But if the target OS is not Windows, the line endings are returned as is.
path
A macro used in tests for cross-platform path string literals in tests. On Windows it replaces / with \\ and adds C: to the beginning of absolute paths. On other platforms, the path is returned unmodified.
uri
This macro replaces the path prefix file:/// with file:///C:/ for Windows. But if the target OS is not Windows, the URI is returned as is.

Attribute Macros§

perf
Marks a test as perf-sensitive, to be triaged when checking the performance of a build. This also automatically applies #[test].