Skip to content

Should rustc-dep-of-std feature really depend on c? #288

Closed
@RalfJung

Description

@RalfJung

It used to be possible to almost entirely build libstd for some target without having a C toolchain (the "almost" being due to rust-lang/rust#56443: in the final step, a dylib gets built). To do this, we have to be careful to not enable the c feature of compiler-builtins. This could be achieved by disabling the default features of libstd.
However, that regressed when compiler-builtins got moved out of the workspace; now liballoc depends on the rustc-dep-of-std feature (curiously, libstd does not), and that feature depends on the c feature.

Is it really necessary that the rustc-dep-of-std feature depends on c?

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