Skip to content

Is there a way to specify crate attributes in a single .rs file? #1109

Closed
@marijnh

Description

@marijnh

If so, I couldn't find it. Just putting a #[link(...)] in it didn't help.

What I'm trying to do is compile a .rs file with --lib. I think there's no reason to not support that. But having the compiler complain about missing crate link meta attributes makes it kind of awkward to do this right now.

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