about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-07-15 12:52:42 +0200
committerGitHub <noreply@github.com>2025-07-15 12:52:42 +0200
commit2e37e241792643abb837dbcaca454b0e02fc5002 (patch)
treeb4fff21469b3c8cf4cfa24c8167f36be5c761e14 /compiler/rustc_trait_selection/src
parent460a627b839af1eaf222d342efa93e51c9c77b24 (diff)
parent9fd3886838afd28ee3834d0e7162fd6ab5adc944 (diff)
downloadrust-2e37e241792643abb837dbcaca454b0e02fc5002.tar.gz
rust-2e37e241792643abb837dbcaca454b0e02fc5002.zip
Rollup merge of #143910 - ChrisDenton:no-symbolization, r=tgross35
Add experimental `backtrace-trace-only` std feature

This experimentally allows building std with backtrace but without symbolisation. It does not affect stable and requires build-std to use. This doesn't change the backtrace crate itself so relies on the optimizer to remove the unused parts.

Example usage:

```toml
# .cargo/config.toml
[unstable]
build-std = ["core", "alloc", "panic_unwind", "std"]
build-std-features = ["backtrace", "backtrace-trace-only", "panic-unwind"]
```

```toml
# Cargo.toml
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
```

Ideally we should split the backtrace feature into `backtrace-trace` and `backtrace-symbolize` (with the latter dependent on the former) because Cargo features tend to work better when they're positive rather than negative. But I'm keen for this experiment not to break existing users.

cc ``@joshtriplett``
Diffstat (limited to 'compiler/rustc_trait_selection/src')
0 files changed, 0 insertions, 0 deletions