rust/library/std/src/sys
Samuel Tardieu 2e37e24179
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``
2025-07-15 12:52:42 +02:00
..
alloc Add new Tier-3 targets: loongarch32-unknown-none* 2025-06-06 08:19:38 +08:00
anonymous_pipe Mv os-specific trait impl of Pipe* into std::os::* 2025-03-14 01:03:56 +11:00
args Implement Iterator::last for vec::IntoIter 2025-05-02 20:08:28 -07:00
env use generic Atomic type where possible 2025-04-27 02:18:08 +03:00
fd Rollup merge of #139667 - 1c3t3a:remove-no-sanitize, r=m-ou-se 2025-04-17 00:16:21 +02:00
fs Fix VxWorks build errors 2025-07-09 09:54:08 +05:30
io Trusty: Implement write_vectored for stdio 2025-03-27 16:49:30 -07:00
net Don't call WSACleanup on process exit 2025-07-14 14:27:49 +00:00
os_str Rollup merge of #141467 - cyrgani:const-empty-stringlikes, r=Amanieu 2025-06-04 07:54:33 +02:00
pal Rollup merge of #143710 - joshtriplett:random-updates, r=joshtriplett 2025-07-14 18:05:44 +02:00
path setup CI and tidy to use typos for spellchecking and fix few typos 2025-07-03 10:51:06 +03:00
personality Add new Tier-3 targets: loongarch32-unknown-none* 2025-06-06 08:19:38 +08:00
process Rollup merge of #142391 - LevitatingBusinessMan:setsid, r=workingjubilee 2025-07-11 07:35:17 +02:00
random Rollup merge of #143776 - no1wudi:fix, r=tgross35 2025-07-13 07:21:19 +02:00
stdio Rollup merge of #139517 - Ayush1325:uefi-cmd-stdin-null, r=joboet 2025-04-15 15:47:25 +10:00
sync Add comment why we use zero for COMPLETE 2025-07-13 12:37:34 +02:00
thread_local Rollup merge of #141455 - joboet:tls_exhaustion_abort, r=tgross35 2025-06-03 21:53:36 +02:00
backtrace.rs Add experimental backtrace-trace-only std feature 2025-07-14 11:52:17 +00:00
cmath.rs Initial implementation of core_float_math 2025-05-13 22:08:18 +00:00
env_consts.rs Move zkVM constants into sys::env_consts 2025-04-21 21:05:04 -07:00
exit_guard.rs std: use the address of errno to identify threads in unique_thread_exit 2025-04-01 13:35:16 +02:00
mod.rs Move sys::pal::os::Env into sys::env 2025-04-21 20:56:43 -07:00