Skip to content

Dummy build.rs causes failure to build with specific lints. #377

@peterc-s

Description

@peterc-s

naersk/lib.nix

Lines 197 to 203 in 8d97452

# pretend there's a `build.rs`, otherwise cargo doesn't build
# the `[build-dependencies]`. Custom locations of build scripts
# aren't an issue because we strip the `build` field in
# `fixupCargoToml`; so cargo always thinks there's a build
# script which is `./build.rs`.
echo 'fn main() {}' > build.rs
popd > /dev/null

This causes builds to fail if, for example, missing-docs has been set to "deny".

Could be resolved by adding dummy documentation.

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