Docs.rs
gpui_util_macros-0.2.1
gpui_util_macros 0.2.1
Permalink
Docs.rs crate page
Apache-2.0
Links
crates.io
Source
Owners
mikayla-maki
github:zed-industries:crates-io
Dependencies
gpui_perf ^0.2.1
normal
quote ^1.0.9
normal
syn ^2.0.101
normal
workspace-hack ^0.1.0
normal
Versions
80%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate gpui_util_macros
gpui_
util_
macros
0.2.1
All Items
Crate Items
Macros
Attribute Macros
Crate
gpui_
util_
macros
Copy item path
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]
.