Skip to content

Expand the unsafe & low-level guide to cover static mut, more #[no_std], modern asm! #12905

Closed
@huonw

Description

@huonw

The unsafe & low-level code guide added in #12887 should cover:

  • transmute/casting
  • the Unsafe type (for inner mutability)
  • the relevance of the various kinds (i.e. Sync etc.), and when to apply the types in std::kinds::marker to ensure safety
  • static mut, including atomics and static mutexes
  • #[no_std] in more detail: I don't know enough about the correct compilation flags, and symbols required, so that section is rather loose on detail
  • the asm! syntax described isn't 100% up-to-date; I took it from the description in the 0.6 release notes, and there have been extensions and improvements since that was written.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions