Skip to content

proc_macro and no_std #47342

Closed
Closed

Description

tl;dr: Trying to port serde to a no_std environment requires proc_macro to also be no_std. The straightforward approach of subbing out the std types in the compiler internals doesn't work.

The specific use case is Intel SGX via rust-sgx-sdk, which provides an alternative std. extern crate sgx_tstd as std; doesn't work in the compiler for some reason. Is this a particularly unreasonable goal?

The most related issue I could find is rust-lang/rfcs#1184 but it looks like there ended up being no easy way to inject no_std into everything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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