Skip to content

Conversation

@folkertdev
Copy link
Contributor

@folkertdev folkertdev commented Oct 24, 2025

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Oct 24, 2025
Comment on lines 4 to 11
r[target-properties.pointer-width]
The size of a pointer in bits is equal to the `options.pointer_width` specified by the target.

r[target-properties.endianness]
The endianness is equal to the `endian` specified by the target.

r[target-properties.min_global_align]
Every data [symbol] is aligned to at least the `min_global_align` specified by the target.
Copy link
Contributor

@traviscross traviscross Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What can we point to as canonical documentation of these target properties? Or is this the canonical documentation, e.g. with respect to the names? E.g., why is it options.pointer_width?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm basing the names here off of

Although looking at that again I flipped what attributes get the options. prefix.

The target.json format is technically unstable as far as I know. So, I'm not sure beyond referring to Target and TargetOptions.

@ehuss ehuss added the S-waiting-on-stabilization Waiting for a stabilization PR to be merged in the main Rust repository label Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer S-waiting-on-stabilization Waiting for a stabilization PR to be merged in the main Rust repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants