Skip to content

Reporting warnings when building in build script #346

@Firestar99

Description

@Firestar99

If warnings are emitted during shader compile, they are often hidden by cargo only showing the output of a build scripts if it fails. But there's also cargo::warning=MESSAGE to emit warnings visible to the end user. We should add a system to forward these warnings, given that we already have print_metadata...

/// Whether to print build.rs cargo metadata (e.g. cargo:rustc-env=var=val). Defaults to [`MetadataPrintout::None`].
/// Within build scripts, set it to [`MetadataPrintout::DependencyOnly`] or [`MetadataPrintout::Full`] to ensure the build script is rerun on code changes.
#[cfg_attr(feature = "clap", clap(skip))]
pub print_metadata: MetadataPrintout,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions