Skip to content

Bug: tracelogging build broken with rustc 1.87 #76

Closed
@lalitb

Description

@lalitb

More details - open-telemetry/opentelemetry-rust-contrib#264 (comment)

--clip

ok Rust 1.87 release details seems to have the reason - https://releases.rs/docs/1.87.0/

Windows: The standard library no longer links advapi32, except on win7. Code such as C libraries that were relying on this assumption may need to explicitly link advapi32.

Looks like we need to explicitly link this library in build.rs? Ideally it should be taken care by crates which make direct ETW calls i.e, tracelogging/tracelogging_dynamic crates, but we can add it as temporary workaround for the fix:

fn main() {
println!("cargo:rustc-link-lib=advapi32");
}

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