rust-lang / rust-lang/backtrace-rs

Add a `windows_raw_dylib` feature

Open
#646 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
628
Forks
291
PR merge metrics
No merged PRs in 30d

Description

The standard library recently gained a windows_raw_dylib feature that enables building rust programs without any Windows SDK import libraries (though it still needs C/C++ runtime stuff). However, backtrace doesn't yet support this so at least kernel32 is still required.

I don't have time to work on this atm but if anyone wants to then seeing how the standard library does it might help. Note that std using the unstable macro (instead of macro_rules) so that would likely need to be different in backtrace-rs unless gating on backtrace_in_libstd.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the standard library implementation in library/std/Cargo.toml and library/std/src/sys/pal/windows/c with backtrace-rs's Windows support and its kernel32 linking. Account for the different macro constraints described in the issue, and consider the work done when backtrace builds without Windows SDK import libraries while retaining required C/C++ runtime support.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.