Skip to content

Remove dependency on winapi crate #40

@cgettys-microsoft

Description

@cgettys-microsoft

Currently, rust_win_etw depends on winapi transitively in at least two places:

  1. win_etw_tracing via enabling tracing-subscriber's ansi feature (part of its default features)
    This increases compile times for those who don't need it. The tracing-subscriber ansi feature requires nu-ansi-term 0.46.0 for tracing-subscriber = "0.3.18"
    This in turn requires winapi, which hasn't received updates in years and doesn't support some windows targets like arm64ec-pc-windows-msvc.

While I'll look at whether tracing will accept a nuget bump to nu-ansi-term v0.47.0 as well (which moves to windows-sys), given we don't need to turn on this feature at all, I'd prefer to just not enable the feature if it isn't a breaking change (or if there's willingness to bump to 0.2.0).

  1. win_etw_provider
    A) via w32-error
    B) via direct dependency

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