Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/alloc/Cargo.toml +33 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/alloctests/Cargo.toml +46 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/alloctests/lib.rs +110 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/CHANGELOG.md +33 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/Cargo.lock +211 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/Cargo.toml +119 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/LICENSE-APACHE +201 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/LICENSE-MIT +25 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/README.md +85 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/bindings.txt +63 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/.editorconfig +16 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/.git-blame-ignore-revs +6 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/.rustfmt.toml +4 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/CONTRIBUTING.md +176 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/Cargo.toml +90 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/LICENSE.txt +275 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/PUBLISHING.md +16 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/README.md +27 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/josh-sync.toml +3 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/rust-version +1 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/triagebot.toml +22 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/core/Cargo.toml +44 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/coretests/Cargo.toml +39 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/coretests/lib.rs +1 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/panic_abort/Cargo.toml +21 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/panic_unwind/Cargo.toml +24 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/CONTRIBUTING.md +32 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/Cargo.lock +462 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/Cargo.toml +13 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/Cross.toml +2 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/LICENSE-APACHE +202 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/LICENSE-MIT +19 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/README.md +59 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/beginners-guide.md +91 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/rust-toolchain.toml +3 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/subtree-sync.sh +52 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/proc_macro/Cargo.toml +19 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/profiler_builtins/Cargo.toml +15 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/profiler_builtins/build.rs +115 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rtstartup/rsbegin.rs +117 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rtstartup/rsend.rs +44 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-alloc/Cargo.toml +17 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-alloc/lib.rs +9 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-core/Cargo.toml +22 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-core/README.md +38 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-core/lib.rs +8 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-std/Cargo.toml +17 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-std/README.md +3 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-std/lib.rs +2 -0
- rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/std/Cargo.toml +171 -0
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/alloc/Cargo.toml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cargo-features = ["public-dependency"]
|
| 2 |
+
|
| 3 |
+
[package]
|
| 4 |
+
name = "alloc"
|
| 5 |
+
version = "0.0.0"
|
| 6 |
+
license = "MIT OR Apache-2.0"
|
| 7 |
+
repository = "https://github.com/rust-lang/rust.git"
|
| 8 |
+
description = "The Rust core allocation and collections library"
|
| 9 |
+
autotests = false
|
| 10 |
+
autobenches = false
|
| 11 |
+
edition = "2024"
|
| 12 |
+
|
| 13 |
+
[lib]
|
| 14 |
+
test = false
|
| 15 |
+
bench = false
|
| 16 |
+
|
| 17 |
+
[dependencies]
|
| 18 |
+
core = { path = "../core", public = true }
|
| 19 |
+
compiler_builtins = { path = "../compiler-builtins/compiler-builtins", features = ["rustc-dep-of-std"] }
|
| 20 |
+
|
| 21 |
+
[features]
|
| 22 |
+
compiler-builtins-mem = ['compiler_builtins/mem']
|
| 23 |
+
compiler-builtins-c = ["compiler_builtins/c"]
|
| 24 |
+
# Choose algorithms that are optimized for binary size instead of runtime performance
|
| 25 |
+
optimize_for_size = ["core/optimize_for_size"]
|
| 26 |
+
|
| 27 |
+
[lints.rust.unexpected_cfgs]
|
| 28 |
+
level = "warn"
|
| 29 |
+
check-cfg = [
|
| 30 |
+
'cfg(no_global_oom_handling)',
|
| 31 |
+
'cfg(no_rc)',
|
| 32 |
+
'cfg(no_sync)',
|
| 33 |
+
]
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/alloctests/Cargo.toml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "alloctests"
|
| 3 |
+
version = "0.0.0"
|
| 4 |
+
license = "MIT OR Apache-2.0"
|
| 5 |
+
repository = "https://github.com/rust-lang/rust.git"
|
| 6 |
+
description = "Tests for the Rust Allocation Library"
|
| 7 |
+
autotests = false
|
| 8 |
+
autobenches = false
|
| 9 |
+
edition = "2024"
|
| 10 |
+
|
| 11 |
+
[lib]
|
| 12 |
+
path = "lib.rs"
|
| 13 |
+
test = true
|
| 14 |
+
bench = true
|
| 15 |
+
doc = false
|
| 16 |
+
|
| 17 |
+
[dev-dependencies]
|
| 18 |
+
rand = { version = "0.9.0", default-features = false, features = ["alloc"] }
|
| 19 |
+
rand_xorshift = "0.4.0"
|
| 20 |
+
|
| 21 |
+
[[test]]
|
| 22 |
+
name = "alloctests"
|
| 23 |
+
path = "tests/lib.rs"
|
| 24 |
+
|
| 25 |
+
[[test]]
|
| 26 |
+
name = "vec_deque_alloc_error"
|
| 27 |
+
path = "tests/vec_deque_alloc_error.rs"
|
| 28 |
+
|
| 29 |
+
[[bench]]
|
| 30 |
+
name = "allocbenches"
|
| 31 |
+
path = "benches/lib.rs"
|
| 32 |
+
test = true
|
| 33 |
+
|
| 34 |
+
[[bench]]
|
| 35 |
+
name = "vec_deque_append_bench"
|
| 36 |
+
path = "benches/vec_deque_append.rs"
|
| 37 |
+
harness = false
|
| 38 |
+
|
| 39 |
+
[lints.rust.unexpected_cfgs]
|
| 40 |
+
level = "warn"
|
| 41 |
+
check-cfg = [
|
| 42 |
+
'cfg(no_global_oom_handling)',
|
| 43 |
+
'cfg(no_rc)',
|
| 44 |
+
'cfg(no_sync)',
|
| 45 |
+
'cfg(randomized_layouts)',
|
| 46 |
+
]
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/alloctests/lib.rs
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#![cfg(test)]
|
| 2 |
+
#![allow(unused_attributes)]
|
| 3 |
+
#![unstable(feature = "alloctests", issue = "none")]
|
| 4 |
+
#![no_std]
|
| 5 |
+
// Lints:
|
| 6 |
+
#![deny(unsafe_op_in_unsafe_fn)]
|
| 7 |
+
#![warn(deprecated_in_future)]
|
| 8 |
+
#![warn(missing_debug_implementations)]
|
| 9 |
+
#![allow(explicit_outlives_requirements)]
|
| 10 |
+
#![allow(internal_features)]
|
| 11 |
+
#![allow(rustdoc::redundant_explicit_links)]
|
| 12 |
+
#![warn(rustdoc::unescaped_backticks)]
|
| 13 |
+
#![deny(ffi_unwind_calls)]
|
| 14 |
+
//
|
| 15 |
+
// Library features:
|
| 16 |
+
// tidy-alphabetical-start
|
| 17 |
+
#![feature(allocator_api)]
|
| 18 |
+
#![feature(array_into_iter_constructors)]
|
| 19 |
+
#![feature(assert_matches)]
|
| 20 |
+
#![feature(char_internals)]
|
| 21 |
+
#![feature(const_alloc_error)]
|
| 22 |
+
#![feature(const_cmp)]
|
| 23 |
+
#![feature(const_convert)]
|
| 24 |
+
#![feature(const_destruct)]
|
| 25 |
+
#![feature(const_heap)]
|
| 26 |
+
#![feature(const_option_ops)]
|
| 27 |
+
#![feature(const_try)]
|
| 28 |
+
#![feature(copied_into_inner)]
|
| 29 |
+
#![feature(core_intrinsics)]
|
| 30 |
+
#![feature(exact_size_is_empty)]
|
| 31 |
+
#![feature(extend_one)]
|
| 32 |
+
#![feature(extend_one_unchecked)]
|
| 33 |
+
#![feature(hasher_prefixfree_extras)]
|
| 34 |
+
#![feature(inplace_iteration)]
|
| 35 |
+
#![feature(iter_advance_by)]
|
| 36 |
+
#![feature(iter_next_chunk)]
|
| 37 |
+
#![feature(maybe_uninit_uninit_array_transpose)]
|
| 38 |
+
#![feature(ptr_alignment_type)]
|
| 39 |
+
#![feature(ptr_internals)]
|
| 40 |
+
#![feature(rev_into_inner)]
|
| 41 |
+
#![feature(sized_type_properties)]
|
| 42 |
+
#![feature(slice_iter_mut_as_mut_slice)]
|
| 43 |
+
#![feature(slice_ptr_get)]
|
| 44 |
+
#![feature(slice_range)]
|
| 45 |
+
#![feature(std_internals)]
|
| 46 |
+
#![feature(temporary_niche_types)]
|
| 47 |
+
#![feature(trivial_clone)]
|
| 48 |
+
#![feature(trusted_fused)]
|
| 49 |
+
#![feature(trusted_len)]
|
| 50 |
+
#![feature(trusted_random_access)]
|
| 51 |
+
#![feature(try_reserve_kind)]
|
| 52 |
+
#![feature(try_trait_v2)]
|
| 53 |
+
#![feature(wtf8_internals)]
|
| 54 |
+
// tidy-alphabetical-end
|
| 55 |
+
//
|
| 56 |
+
// Language features:
|
| 57 |
+
// tidy-alphabetical-start
|
| 58 |
+
#![feature(const_trait_impl)]
|
| 59 |
+
#![feature(dropck_eyepatch)]
|
| 60 |
+
#![feature(min_specialization)]
|
| 61 |
+
#![feature(never_type)]
|
| 62 |
+
#![feature(optimize_attribute)]
|
| 63 |
+
#![feature(prelude_import)]
|
| 64 |
+
#![feature(rustc_attrs)]
|
| 65 |
+
#![feature(staged_api)]
|
| 66 |
+
#![feature(test)]
|
| 67 |
+
#![rustc_preserve_ub_checks]
|
| 68 |
+
// tidy-alphabetical-end
|
| 69 |
+
|
| 70 |
+
// Allow testing this library
|
| 71 |
+
extern crate alloc as realalloc;
|
| 72 |
+
|
| 73 |
+
// This is needed to provide macros to the directly imported alloc modules below.
|
| 74 |
+
extern crate std;
|
| 75 |
+
#[prelude_import]
|
| 76 |
+
#[allow(unused_imports)]
|
| 77 |
+
use std::prelude::rust_2024::*;
|
| 78 |
+
|
| 79 |
+
#[cfg(test)]
|
| 80 |
+
extern crate test;
|
| 81 |
+
mod testing;
|
| 82 |
+
|
| 83 |
+
use realalloc::*;
|
| 84 |
+
|
| 85 |
+
// We are directly including collections, raw_vec, and wtf8 here as they use non-public
|
| 86 |
+
// methods and fields in tests and as such need to have the types to test in the same
|
| 87 |
+
// crate as the tests themself.
|
| 88 |
+
#[path = "../alloc/src/collections/mod.rs"]
|
| 89 |
+
mod collections;
|
| 90 |
+
|
| 91 |
+
#[path = "../alloc/src/raw_vec/mod.rs"]
|
| 92 |
+
mod raw_vec;
|
| 93 |
+
|
| 94 |
+
#[path = "../alloc/src/wtf8/mod.rs"]
|
| 95 |
+
mod wtf8;
|
| 96 |
+
|
| 97 |
+
#[allow(dead_code)] // Not used in all configurations
|
| 98 |
+
pub(crate) mod test_helpers {
|
| 99 |
+
/// Copied from `std::test_helpers::test_rng`, since these tests rely on the
|
| 100 |
+
/// seed not being the same for every RNG invocation too.
|
| 101 |
+
pub(crate) fn test_rng() -> rand_xorshift::XorShiftRng {
|
| 102 |
+
use std::hash::{BuildHasher, Hash, Hasher};
|
| 103 |
+
let mut hasher = std::hash::RandomState::new().build_hasher();
|
| 104 |
+
std::panic::Location::caller().hash(&mut hasher);
|
| 105 |
+
let hc64 = hasher.finish();
|
| 106 |
+
let seed_vec = hc64.to_le_bytes().into_iter().chain(0u8..8).collect::<std::vec::Vec<u8>>();
|
| 107 |
+
let seed: [u8; 16] = seed_vec.as_slice().try_into().unwrap();
|
| 108 |
+
rand::SeedableRng::from_seed(seed)
|
| 109 |
+
}
|
| 110 |
+
}
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/CHANGELOG.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Changelog
|
| 2 |
+
|
| 3 |
+
Notable changes to this project should be documented in this file.
|
| 4 |
+
|
| 5 |
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
| 6 |
+
The backtrace crate attempts to adhere to the modified [Cargo interpretation of SemVer](https://doc.rust-lang.org/cargo/reference/resolver.html#semver-compatibility).
|
| 7 |
+
As a unique component of `std` it may make exceptional changes in order to support `std`.
|
| 8 |
+
|
| 9 |
+
## [Unreleased]
|
| 10 |
+
|
| 11 |
+
## [0.3.76](https://github.com/rust-lang/backtrace-rs/compare/backtrace-v0.3.75...backtrace-v0.3.76) - 2025-09-26
|
| 12 |
+
|
| 13 |
+
### Behavior
|
| 14 |
+
- Fix inverted polarity of "full printing" logic in rust-lang/backtrace-rs#726:
|
| 15 |
+
Previously we used to do the opposite of what you would expect.
|
| 16 |
+
|
| 17 |
+
### Platform Support
|
| 18 |
+
|
| 19 |
+
- Windows: Removed hypothetical soundness risk from padding bytes in rust-lang/backtrace-rs#737
|
| 20 |
+
- Fuchsia: Added appropriate alignment checks during `Elf_Nhdr` parsing in rust-lang/backtrace-rs#725
|
| 21 |
+
- Cygwin: Added support in rust-lang/backtrace-rs#704
|
| 22 |
+
- Windows (32-bit Arm): Restore support in rust-lang/backtrace-rs#685
|
| 23 |
+
- NuttX (32-bit Arm): Use builtin `_Unwind_GetIP` in rust-lang/backtrace-rs#692
|
| 24 |
+
- RTEMS: Enable libunwind in rust-lang/backtrace-rs#682
|
| 25 |
+
|
| 26 |
+
### Dependencies
|
| 27 |
+
|
| 28 |
+
- Update cpp_demangle to 0.5 in rust-lang/backtrace-rs#732
|
| 29 |
+
- Update memchr to 2.7.6 in rust-lang/backtrace-rs#734
|
| 30 |
+
- Switch from windows-targets to windows-link in rust-lang/backtrace-rs#727
|
| 31 |
+
- Update ruzstd to 0.8.1 in rust-lang/backtrace-rs#718
|
| 32 |
+
- Update object to 0.37 in rust-lang/backtrace-rs#718
|
| 33 |
+
- Update addr2line to 0.25 in rust-lang/backtrace-rs#718
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/Cargo.lock
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is automatically @generated by Cargo.
|
| 2 |
+
# It is not intended for manual editing.
|
| 3 |
+
version = 4
|
| 4 |
+
|
| 5 |
+
[[package]]
|
| 6 |
+
name = "addr2line"
|
| 7 |
+
version = "0.25.0"
|
| 8 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 9 |
+
checksum = "9acbfca36652500c911ddb767ed433e3ed99b032b5d935be73c6923662db1d43"
|
| 10 |
+
dependencies = [
|
| 11 |
+
"gimli",
|
| 12 |
+
]
|
| 13 |
+
|
| 14 |
+
[[package]]
|
| 15 |
+
name = "adler2"
|
| 16 |
+
version = "2.0.0"
|
| 17 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 18 |
+
checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
|
| 19 |
+
|
| 20 |
+
[[package]]
|
| 21 |
+
name = "as-if-std"
|
| 22 |
+
version = "0.1.0"
|
| 23 |
+
dependencies = [
|
| 24 |
+
"addr2line",
|
| 25 |
+
"cfg-if",
|
| 26 |
+
"libc",
|
| 27 |
+
"miniz_oxide",
|
| 28 |
+
"object",
|
| 29 |
+
"rustc-demangle",
|
| 30 |
+
"ruzstd",
|
| 31 |
+
"windows-link",
|
| 32 |
+
]
|
| 33 |
+
|
| 34 |
+
[[package]]
|
| 35 |
+
name = "backtrace"
|
| 36 |
+
version = "0.3.76"
|
| 37 |
+
dependencies = [
|
| 38 |
+
"addr2line",
|
| 39 |
+
"cfg-if",
|
| 40 |
+
"cpp_demangle",
|
| 41 |
+
"dylib-dep",
|
| 42 |
+
"libc",
|
| 43 |
+
"libloading",
|
| 44 |
+
"miniz_oxide",
|
| 45 |
+
"object",
|
| 46 |
+
"rustc-demangle",
|
| 47 |
+
"ruzstd",
|
| 48 |
+
"serde",
|
| 49 |
+
"windows-link",
|
| 50 |
+
]
|
| 51 |
+
|
| 52 |
+
[[package]]
|
| 53 |
+
name = "cc"
|
| 54 |
+
version = "1.1.22"
|
| 55 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 56 |
+
checksum = "9540e661f81799159abee814118cc139a2004b3a3aa3ea37724a1b66530b90e0"
|
| 57 |
+
dependencies = [
|
| 58 |
+
"shlex",
|
| 59 |
+
]
|
| 60 |
+
|
| 61 |
+
[[package]]
|
| 62 |
+
name = "cfg-if"
|
| 63 |
+
version = "1.0.0"
|
| 64 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 65 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 66 |
+
|
| 67 |
+
[[package]]
|
| 68 |
+
name = "cpp_demangle"
|
| 69 |
+
version = "0.5.0"
|
| 70 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 71 |
+
checksum = "4dcc405d55da54ad965aff198909afdcc8aeefc8ac6ba26d6abd19aa8aeacb2a"
|
| 72 |
+
dependencies = [
|
| 73 |
+
"cfg-if",
|
| 74 |
+
]
|
| 75 |
+
|
| 76 |
+
[[package]]
|
| 77 |
+
name = "cpp_smoke_test"
|
| 78 |
+
version = "0.1.0"
|
| 79 |
+
dependencies = [
|
| 80 |
+
"backtrace",
|
| 81 |
+
"cc",
|
| 82 |
+
]
|
| 83 |
+
|
| 84 |
+
[[package]]
|
| 85 |
+
name = "dylib-dep"
|
| 86 |
+
version = "0.1.0"
|
| 87 |
+
|
| 88 |
+
[[package]]
|
| 89 |
+
name = "gimli"
|
| 90 |
+
version = "0.32.0"
|
| 91 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 92 |
+
checksum = "93563d740bc9ef04104f9ed6f86f1e3275c2cdafb95664e26584b9ca807a8ffe"
|
| 93 |
+
|
| 94 |
+
[[package]]
|
| 95 |
+
name = "libc"
|
| 96 |
+
version = "0.2.171"
|
| 97 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 98 |
+
checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
|
| 99 |
+
|
| 100 |
+
[[package]]
|
| 101 |
+
name = "libloading"
|
| 102 |
+
version = "0.8.9"
|
| 103 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 104 |
+
checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
|
| 105 |
+
dependencies = [
|
| 106 |
+
"cfg-if",
|
| 107 |
+
"windows-link",
|
| 108 |
+
]
|
| 109 |
+
|
| 110 |
+
[[package]]
|
| 111 |
+
name = "memchr"
|
| 112 |
+
version = "2.7.6"
|
| 113 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 114 |
+
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
|
| 115 |
+
|
| 116 |
+
[[package]]
|
| 117 |
+
name = "miniz_oxide"
|
| 118 |
+
version = "0.8.9"
|
| 119 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 120 |
+
checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
|
| 121 |
+
dependencies = [
|
| 122 |
+
"adler2",
|
| 123 |
+
]
|
| 124 |
+
|
| 125 |
+
[[package]]
|
| 126 |
+
name = "object"
|
| 127 |
+
version = "0.37.1"
|
| 128 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 129 |
+
checksum = "03fd943161069e1768b4b3d050890ba48730e590f57e56d4aa04e7e090e61b4a"
|
| 130 |
+
dependencies = [
|
| 131 |
+
"memchr",
|
| 132 |
+
]
|
| 133 |
+
|
| 134 |
+
[[package]]
|
| 135 |
+
name = "proc-macro2"
|
| 136 |
+
version = "1.0.86"
|
| 137 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 138 |
+
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
|
| 139 |
+
dependencies = [
|
| 140 |
+
"unicode-ident",
|
| 141 |
+
]
|
| 142 |
+
|
| 143 |
+
[[package]]
|
| 144 |
+
name = "quote"
|
| 145 |
+
version = "1.0.37"
|
| 146 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 147 |
+
checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
|
| 148 |
+
dependencies = [
|
| 149 |
+
"proc-macro2",
|
| 150 |
+
]
|
| 151 |
+
|
| 152 |
+
[[package]]
|
| 153 |
+
name = "rustc-demangle"
|
| 154 |
+
version = "0.1.27"
|
| 155 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 156 |
+
checksum = "b50b8869d9fc858ce7266cce0194bd74df58b9d0e3f6df3a9fc8eb470d95c09d"
|
| 157 |
+
|
| 158 |
+
[[package]]
|
| 159 |
+
name = "ruzstd"
|
| 160 |
+
version = "0.8.1"
|
| 161 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 162 |
+
checksum = "3640bec8aad418d7d03c72ea2de10d5c646a598f9883c7babc160d91e3c1b26c"
|
| 163 |
+
|
| 164 |
+
[[package]]
|
| 165 |
+
name = "serde"
|
| 166 |
+
version = "1.0.210"
|
| 167 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 168 |
+
checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a"
|
| 169 |
+
dependencies = [
|
| 170 |
+
"serde_derive",
|
| 171 |
+
]
|
| 172 |
+
|
| 173 |
+
[[package]]
|
| 174 |
+
name = "serde_derive"
|
| 175 |
+
version = "1.0.210"
|
| 176 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 177 |
+
checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f"
|
| 178 |
+
dependencies = [
|
| 179 |
+
"proc-macro2",
|
| 180 |
+
"quote",
|
| 181 |
+
"syn",
|
| 182 |
+
]
|
| 183 |
+
|
| 184 |
+
[[package]]
|
| 185 |
+
name = "shlex"
|
| 186 |
+
version = "1.3.0"
|
| 187 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 188 |
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
| 189 |
+
|
| 190 |
+
[[package]]
|
| 191 |
+
name = "syn"
|
| 192 |
+
version = "2.0.79"
|
| 193 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 194 |
+
checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
|
| 195 |
+
dependencies = [
|
| 196 |
+
"proc-macro2",
|
| 197 |
+
"quote",
|
| 198 |
+
"unicode-ident",
|
| 199 |
+
]
|
| 200 |
+
|
| 201 |
+
[[package]]
|
| 202 |
+
name = "unicode-ident"
|
| 203 |
+
version = "1.0.13"
|
| 204 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 205 |
+
checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
|
| 206 |
+
|
| 207 |
+
[[package]]
|
| 208 |
+
name = "windows-link"
|
| 209 |
+
version = "0.2.0"
|
| 210 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 211 |
+
checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65"
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/Cargo.toml
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "backtrace"
|
| 3 |
+
version = "0.3.76"
|
| 4 |
+
authors = ["The Rust Project Developers"]
|
| 5 |
+
license = "MIT OR Apache-2.0"
|
| 6 |
+
readme = "README.md"
|
| 7 |
+
repository = "https://github.com/rust-lang/backtrace-rs"
|
| 8 |
+
homepage = "https://github.com/rust-lang/backtrace-rs"
|
| 9 |
+
documentation = "https://docs.rs/backtrace"
|
| 10 |
+
description = """
|
| 11 |
+
A library to acquire a stack trace (backtrace) at runtime in a Rust program.
|
| 12 |
+
"""
|
| 13 |
+
autoexamples = true
|
| 14 |
+
autotests = true
|
| 15 |
+
edition = "2024"
|
| 16 |
+
exclude = ["/ci/"]
|
| 17 |
+
rust-version = "1.88.0"
|
| 18 |
+
|
| 19 |
+
[workspace]
|
| 20 |
+
members = ['crates/cpp_smoke_test', 'crates/as-if-std']
|
| 21 |
+
exclude = [
|
| 22 |
+
'crates/without_debuginfo',
|
| 23 |
+
'crates/macos_frames_test',
|
| 24 |
+
'crates/line-tables-only',
|
| 25 |
+
'crates/debuglink',
|
| 26 |
+
]
|
| 27 |
+
|
| 28 |
+
[dependencies]
|
| 29 |
+
cfg-if = "1.0"
|
| 30 |
+
rustc-demangle = "0.1.27"
|
| 31 |
+
|
| 32 |
+
# Optionally enable the ability to serialize a `Backtrace`, controlled through
|
| 33 |
+
# the `serialize-serde` feature below.
|
| 34 |
+
serde = { version = "1.0", optional = true, features = ['derive'] }
|
| 35 |
+
|
| 36 |
+
# Optionally demangle C++ frames' symbols in backtraces.
|
| 37 |
+
cpp_demangle = { default-features = false, version = "0.5.0", optional = true, features = [
|
| 38 |
+
"alloc",
|
| 39 |
+
] }
|
| 40 |
+
|
| 41 |
+
[target.'cfg(any(windows, target_os = "cygwin"))'.dependencies]
|
| 42 |
+
windows-link = "0.2"
|
| 43 |
+
|
| 44 |
+
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
|
| 45 |
+
miniz_oxide = { version = "0.8", default-features = false }
|
| 46 |
+
ruzstd = { version = "0.8.1", default-features = false, optional = true }
|
| 47 |
+
addr2line = { version = "0.25.0", default-features = false }
|
| 48 |
+
libc = { version = "0.2.156", default-features = false }
|
| 49 |
+
|
| 50 |
+
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies.object]
|
| 51 |
+
version = "0.37.0"
|
| 52 |
+
default-features = false
|
| 53 |
+
features = ['read_core', 'elf', 'macho', 'pe', 'xcoff', 'unaligned', 'archive']
|
| 54 |
+
|
| 55 |
+
[dev-dependencies]
|
| 56 |
+
dylib-dep = { path = "crates/dylib-dep" }
|
| 57 |
+
libloading = "0.8"
|
| 58 |
+
|
| 59 |
+
[features]
|
| 60 |
+
# By default libstd support is enabled.
|
| 61 |
+
default = ["std"]
|
| 62 |
+
|
| 63 |
+
# Include std support. This enables types like `Backtrace`.
|
| 64 |
+
std = []
|
| 65 |
+
|
| 66 |
+
serialize-serde = ["serde"]
|
| 67 |
+
|
| 68 |
+
ruzstd = ["dep:ruzstd"]
|
| 69 |
+
|
| 70 |
+
#=======================================
|
| 71 |
+
# Deprecated/internal features
|
| 72 |
+
#
|
| 73 |
+
# Only here for backwards compatibility purposes or for internal testing
|
| 74 |
+
# purposes. New code should use none of these features.
|
| 75 |
+
coresymbolication = []
|
| 76 |
+
dbghelp = []
|
| 77 |
+
dl_iterate_phdr = []
|
| 78 |
+
dladdr = []
|
| 79 |
+
kernel32 = []
|
| 80 |
+
libunwind = []
|
| 81 |
+
unix-backtrace = []
|
| 82 |
+
|
| 83 |
+
[[example]]
|
| 84 |
+
name = "backtrace"
|
| 85 |
+
required-features = ["std"]
|
| 86 |
+
|
| 87 |
+
[[example]]
|
| 88 |
+
name = "raw"
|
| 89 |
+
required-features = ["std"]
|
| 90 |
+
|
| 91 |
+
[[test]]
|
| 92 |
+
name = "skip_inner_frames"
|
| 93 |
+
required-features = ["std"]
|
| 94 |
+
|
| 95 |
+
[[test]]
|
| 96 |
+
name = "long_fn_name"
|
| 97 |
+
required-features = ["std"]
|
| 98 |
+
|
| 99 |
+
[[test]]
|
| 100 |
+
name = "smoke"
|
| 101 |
+
required-features = ["std"]
|
| 102 |
+
|
| 103 |
+
[[test]]
|
| 104 |
+
name = "accuracy"
|
| 105 |
+
required-features = ["std"]
|
| 106 |
+
|
| 107 |
+
[[test]]
|
| 108 |
+
name = "concurrent-panics"
|
| 109 |
+
required-features = ["std"]
|
| 110 |
+
harness = false
|
| 111 |
+
|
| 112 |
+
[[test]]
|
| 113 |
+
name = "current-exe-mismatch"
|
| 114 |
+
required-features = ["std"]
|
| 115 |
+
harness = false
|
| 116 |
+
|
| 117 |
+
[lints.rust]
|
| 118 |
+
# This crate uses them pervasively
|
| 119 |
+
unexpected_cfgs = "allow"
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/LICENSE-APACHE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/LICENSE-MIT
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2014 Alex Crichton
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any
|
| 4 |
+
person obtaining a copy of this software and associated
|
| 5 |
+
documentation files (the "Software"), to deal in the
|
| 6 |
+
Software without restriction, including without
|
| 7 |
+
limitation the rights to use, copy, modify, merge,
|
| 8 |
+
publish, distribute, sublicense, and/or sell copies of
|
| 9 |
+
the Software, and to permit persons to whom the Software
|
| 10 |
+
is furnished to do so, subject to the following
|
| 11 |
+
conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice
|
| 14 |
+
shall be included in all copies or substantial portions
|
| 15 |
+
of the Software.
|
| 16 |
+
|
| 17 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
| 18 |
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
| 19 |
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
| 20 |
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
| 21 |
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 22 |
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 23 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
| 24 |
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| 25 |
+
DEALINGS IN THE SOFTWARE.
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# backtrace-rs
|
| 2 |
+
|
| 3 |
+
[Documentation](https://docs.rs/backtrace)
|
| 4 |
+
|
| 5 |
+
A library for acquiring backtraces at runtime for Rust. This library aims to
|
| 6 |
+
enhance the support of the standard library by providing a programmatic
|
| 7 |
+
interface to work with, but it also supports simply easily printing the current
|
| 8 |
+
backtrace like libstd's panics.
|
| 9 |
+
|
| 10 |
+
## Install
|
| 11 |
+
|
| 12 |
+
```toml
|
| 13 |
+
[dependencies]
|
| 14 |
+
backtrace = "0.3"
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
## Usage
|
| 18 |
+
|
| 19 |
+
To simply capture a backtrace and defer dealing with it until a later time,
|
| 20 |
+
you can use the top-level `Backtrace` type.
|
| 21 |
+
|
| 22 |
+
```rust
|
| 23 |
+
use backtrace::Backtrace;
|
| 24 |
+
|
| 25 |
+
fn main() {
|
| 26 |
+
let bt = Backtrace::new();
|
| 27 |
+
|
| 28 |
+
// do_some_work();
|
| 29 |
+
|
| 30 |
+
println!("{bt:?}");
|
| 31 |
+
}
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
If, however, you'd like more raw access to the actual tracing functionality, you
|
| 35 |
+
can use the `trace` and `resolve` functions directly.
|
| 36 |
+
|
| 37 |
+
```rust
|
| 38 |
+
fn main() {
|
| 39 |
+
backtrace::trace(|frame| {
|
| 40 |
+
let ip = frame.ip();
|
| 41 |
+
let symbol_address = frame.symbol_address();
|
| 42 |
+
|
| 43 |
+
// Resolve this instruction pointer to a symbol name
|
| 44 |
+
backtrace::resolve_frame(frame, |symbol| {
|
| 45 |
+
if let Some(name) = symbol.name() {
|
| 46 |
+
// ...
|
| 47 |
+
}
|
| 48 |
+
if let Some(filename) = symbol.filename() {
|
| 49 |
+
// ...
|
| 50 |
+
}
|
| 51 |
+
});
|
| 52 |
+
|
| 53 |
+
true // keep going to the next frame
|
| 54 |
+
});
|
| 55 |
+
}
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
# Supported Rust Versions
|
| 59 |
+
|
| 60 |
+
The `backtrace` crate is a core component of the standard library, and must
|
| 61 |
+
at times keep up with the evolution of various platforms in order to serve
|
| 62 |
+
the standard library's needs. This often means using recent libraries
|
| 63 |
+
that provide unwinding and symbolication for various platforms.
|
| 64 |
+
Thus `backtrace` is likely to use recent Rust features or depend on a library
|
| 65 |
+
which itself uses them. Its minimum supported Rust version, by policy, is
|
| 66 |
+
within a few versions of current stable, approximately "stable - 2".
|
| 67 |
+
|
| 68 |
+
This policy takes precedence over versions written anywhere else in this repo.
|
| 69 |
+
|
| 70 |
+
# License
|
| 71 |
+
|
| 72 |
+
This project is licensed under either of
|
| 73 |
+
|
| 74 |
+
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
| 75 |
+
https://www.apache.org/licenses/LICENSE-2.0)
|
| 76 |
+
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
| 77 |
+
https://opensource.org/licenses/MIT)
|
| 78 |
+
|
| 79 |
+
at your option.
|
| 80 |
+
|
| 81 |
+
### Contribution
|
| 82 |
+
|
| 83 |
+
Unless you explicitly state otherwise, any contribution intentionally submitted
|
| 84 |
+
for inclusion in backtrace-rs by you, as defined in the Apache-2.0 license, shall be
|
| 85 |
+
dual licensed as above, without any additional terms or conditions.
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/backtrace/bindings.txt
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--out src/windows_sys.rs
|
| 2 |
+
--config sys flatten
|
| 3 |
+
--filter
|
| 4 |
+
Windows.Win32.Foundation.CloseHandle
|
| 5 |
+
Windows.Win32.Foundation.FALSE
|
| 6 |
+
Windows.Win32.Foundation.HINSTANCE
|
| 7 |
+
Windows.Win32.Foundation.INVALID_HANDLE_VALUE
|
| 8 |
+
Windows.Win32.Foundation.TRUE
|
| 9 |
+
Windows.Win32.Globalization.CP_UTF8
|
| 10 |
+
Windows.Win32.Globalization.lstrlenW
|
| 11 |
+
Windows.Win32.Globalization.WideCharToMultiByte
|
| 12 |
+
Windows.Win32.System.Diagnostics.Debug.AddrModeFlat
|
| 13 |
+
Windows.Win32.System.Diagnostics.Debug.CONTEXT
|
| 14 |
+
Windows.Win32.System.Diagnostics.Debug.EnumerateLoadedModulesW64
|
| 15 |
+
Windows.Win32.System.Diagnostics.Debug.IMAGEHLP_LINEW64
|
| 16 |
+
Windows.Win32.System.Diagnostics.Debug.MAX_SYM_NAME
|
| 17 |
+
Windows.Win32.System.Diagnostics.Debug.PENUMLOADED_MODULES_CALLBACKW64
|
| 18 |
+
Windows.Win32.System.Diagnostics.Debug.PFUNCTION_TABLE_ACCESS_ROUTINE64
|
| 19 |
+
Windows.Win32.System.Diagnostics.Debug.PGET_MODULE_BASE_ROUTINE64
|
| 20 |
+
Windows.Win32.System.Diagnostics.Debug.PREAD_PROCESS_MEMORY_ROUTINE64
|
| 21 |
+
Windows.Win32.System.Diagnostics.Debug.PTRANSLATE_ADDRESS_ROUTINE64
|
| 22 |
+
Windows.Win32.System.Diagnostics.Debug.RtlCaptureContext
|
| 23 |
+
Windows.Win32.System.Diagnostics.Debug.RtlLookupFunctionEntry
|
| 24 |
+
Windows.Win32.System.Diagnostics.Debug.RtlVirtualUnwind
|
| 25 |
+
Windows.Win32.System.Diagnostics.Debug.STACKFRAME64
|
| 26 |
+
Windows.Win32.System.Diagnostics.Debug.STACKFRAME_EX
|
| 27 |
+
Windows.Win32.System.Diagnostics.Debug.StackWalk64
|
| 28 |
+
Windows.Win32.System.Diagnostics.Debug.StackWalkEx
|
| 29 |
+
Windows.Win32.System.Diagnostics.Debug.SymAddrIncludeInlineTrace
|
| 30 |
+
Windows.Win32.System.Diagnostics.Debug.SYMBOL_INFOW
|
| 31 |
+
Windows.Win32.System.Diagnostics.Debug.SymFromAddrW
|
| 32 |
+
Windows.Win32.System.Diagnostics.Debug.SymFromInlineContextW
|
| 33 |
+
Windows.Win32.System.Diagnostics.Debug.SymFunctionTableAccess64
|
| 34 |
+
Windows.Win32.System.Diagnostics.Debug.SymGetLineFromAddrW64
|
| 35 |
+
Windows.Win32.System.Diagnostics.Debug.SymGetLineFromInlineContextW
|
| 36 |
+
Windows.Win32.System.Diagnostics.Debug.SymGetModuleBase64
|
| 37 |
+
Windows.Win32.System.Diagnostics.Debug.SymGetOptions
|
| 38 |
+
Windows.Win32.System.Diagnostics.Debug.SymGetSearchPathW
|
| 39 |
+
Windows.Win32.System.Diagnostics.Debug.SymInitializeW
|
| 40 |
+
Windows.Win32.System.Diagnostics.Debug.SYMOPT_DEFERRED_LOADS
|
| 41 |
+
Windows.Win32.System.Diagnostics.Debug.SymQueryInlineTrace
|
| 42 |
+
Windows.Win32.System.Diagnostics.Debug.SymSetOptions
|
| 43 |
+
Windows.Win32.System.Diagnostics.Debug.SymSetSearchPathW
|
| 44 |
+
Windows.Win32.System.Diagnostics.ToolHelp.CreateToolhelp32Snapshot
|
| 45 |
+
Windows.Win32.System.Diagnostics.ToolHelp.Module32FirstW
|
| 46 |
+
Windows.Win32.System.Diagnostics.ToolHelp.Module32NextW
|
| 47 |
+
Windows.Win32.System.Diagnostics.ToolHelp.MODULEENTRY32W
|
| 48 |
+
Windows.Win32.System.Diagnostics.ToolHelp.TH32CS_SNAPMODULE
|
| 49 |
+
Windows.Win32.System.LibraryLoader.GetProcAddress
|
| 50 |
+
Windows.Win32.System.LibraryLoader.LoadLibraryA
|
| 51 |
+
Windows.Win32.System.Memory.CreateFileMappingA
|
| 52 |
+
Windows.Win32.System.Memory.FILE_MAP_READ
|
| 53 |
+
Windows.Win32.System.Memory.MapViewOfFile
|
| 54 |
+
Windows.Win32.System.Memory.PAGE_READONLY
|
| 55 |
+
Windows.Win32.System.Memory.UnmapViewOfFile
|
| 56 |
+
Windows.Win32.System.SystemInformation.IMAGE_FILE_MACHINE_I386
|
| 57 |
+
Windows.Win32.System.Threading.CreateMutexA
|
| 58 |
+
Windows.Win32.System.Threading.GetCurrentProcess
|
| 59 |
+
Windows.Win32.System.Threading.GetCurrentProcessId
|
| 60 |
+
Windows.Win32.System.Threading.GetCurrentThread
|
| 61 |
+
Windows.Win32.System.Threading.INFINITE
|
| 62 |
+
Windows.Win32.System.Threading.ReleaseMutex
|
| 63 |
+
Windows.Win32.System.Threading.WaitForSingleObjectEx
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/.editorconfig
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EditorConfig helps developers define and maintain consistent
|
| 2 |
+
# coding styles between different editors and IDEs
|
| 3 |
+
# editorconfig.org
|
| 4 |
+
|
| 5 |
+
root = true
|
| 6 |
+
|
| 7 |
+
[*]
|
| 8 |
+
end_of_line = lf
|
| 9 |
+
charset = utf-8
|
| 10 |
+
trim_trailing_whitespace = true
|
| 11 |
+
insert_final_newline = true
|
| 12 |
+
indent_style = space
|
| 13 |
+
indent_size = 4
|
| 14 |
+
|
| 15 |
+
[*.yml]
|
| 16 |
+
indent_size = 2
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/.git-blame-ignore-revs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use `git config blame.ignorerevsfile .git-blame-ignore-revs` to make
|
| 2 |
+
# `git blame` ignore the following commits.
|
| 3 |
+
|
| 4 |
+
# Reformat with a new `.rustfmt.toml`
|
| 5 |
+
# In rust-lang/libm this was 5882cabb83c30bf7c36023f9a55a80583636b0e8
|
| 6 |
+
4bb07a6275cc628ef81c65ac971dc6479963322f
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/.rustfmt.toml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This matches rustc
|
| 2 |
+
style_edition = "2024"
|
| 3 |
+
group_imports = "StdExternalCrate"
|
| 4 |
+
imports_granularity = "Module"
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# How to contribute
|
| 2 |
+
|
| 3 |
+
## compiler-builtins
|
| 4 |
+
|
| 5 |
+
1. From the [pending list](compiler-builtins/README.md#progress), pick one or
|
| 6 |
+
more intrinsics.
|
| 7 |
+
2. Port the version from [`compiler-rt`] and, if applicable, their
|
| 8 |
+
[tests][rt-tests]. Note that this crate has generic implementations for a lot
|
| 9 |
+
of routines, which may be usable without porting the entire implementation.
|
| 10 |
+
3. Add a test to `builtins-test`, comparing the behavior of the ported
|
| 11 |
+
intrinsic(s) with their implementation on the testing host.
|
| 12 |
+
4. Add the intrinsic to `builtins-test-intrinsics/src/main.rs` to verify it can
|
| 13 |
+
be linked on all targets.
|
| 14 |
+
5. Send a Pull Request (PR) :tada:.
|
| 15 |
+
|
| 16 |
+
[`compiler-rt`]: https://github.com/llvm/llvm-project/tree/b6820c35c59a4da3e59c11f657093ffbd79ae1db/compiler-rt/lib/builtins
|
| 17 |
+
[rt-tests]: https://github.com/llvm/llvm-project/tree/b6820c35c59a4da3e59c11f657093ffbd79ae1db/compiler-rt/test/builtins
|
| 18 |
+
|
| 19 |
+
## Porting Reminders
|
| 20 |
+
|
| 21 |
+
1. [Rust][prec-rust] and [C][prec-c] have slightly different operator
|
| 22 |
+
precedence. C evaluates comparisons (`== !=`) before bitwise operations
|
| 23 |
+
(`& | ^`), while Rust evaluates the other way.
|
| 24 |
+
2. C assumes wrapping operations everywhere. Rust panics on overflow when in
|
| 25 |
+
debug mode. Consider using the [Wrapping][wrap-ty] type or the explicit
|
| 26 |
+
[wrapping_*][wrap-fn] functions where applicable.
|
| 27 |
+
3. Note [C implicit casts][casts], especially integer promotion. Rust is much
|
| 28 |
+
more explicit about casting, so be sure that any cast which affects the
|
| 29 |
+
output is ported to the Rust implementation.
|
| 30 |
+
4. Rust has [many functions][i32] for integer or floating point manipulation in
|
| 31 |
+
the standard library. Consider using one of these functions rather than
|
| 32 |
+
porting a new one.
|
| 33 |
+
|
| 34 |
+
[prec-rust]: https://doc.rust-lang.org/reference/expressions.html#expression-precedence
|
| 35 |
+
[prec-c]: http://en.cppreference.com/w/c/language/operator_precedence
|
| 36 |
+
[wrap-ty]: https://doc.rust-lang.org/core/num/struct.Wrapping.html
|
| 37 |
+
[wrap-fn]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_add
|
| 38 |
+
[casts]: http://en.cppreference.com/w/cpp/language/implicit_conversion
|
| 39 |
+
[i32]: https://doc.rust-lang.org/std/primitive.i32.html
|
| 40 |
+
|
| 41 |
+
## Tips and tricks
|
| 42 |
+
|
| 43 |
+
- _IMPORTANT_ The code in this crate will end up being used in the `core` crate
|
| 44 |
+
so it can **not** have any external dependencies (other than a subset of
|
| 45 |
+
`core` itself).
|
| 46 |
+
- Only use relative imports within the `math` directory / module, e.g.
|
| 47 |
+
`use self::fabs::fabs` or `use super::k_cos`. Absolute imports from core are
|
| 48 |
+
OK, e.g. `use core::u64`.
|
| 49 |
+
- To reinterpret a float as an integer use the `to_bits` method. The MUSL code
|
| 50 |
+
uses the `GET_FLOAT_WORD` macro, or a union, to do this operation.
|
| 51 |
+
- To reinterpret an integer as a float use the `f32::from_bits` constructor. The
|
| 52 |
+
MUSL code uses the `SET_FLOAT_WORD` macro, or a union, to do this operation.
|
| 53 |
+
- You may use other methods from core like `f64::is_nan`, etc. as appropriate.
|
| 54 |
+
- Rust does not have hex float literals. This crate provides two `hf16!`,
|
| 55 |
+
`hf32!`, `hf64!`, and `hf128!` which convert string literals to floats at
|
| 56 |
+
compile time.
|
| 57 |
+
|
| 58 |
+
```rust
|
| 59 |
+
assert_eq!(hf32!("0x1.ffep+8").to_bits(), 0x43fff000);
|
| 60 |
+
assert_eq!(hf64!("0x1.ffep+8").to_bits(), 0x407ffe0000000000);
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
- Rust code panics on arithmetic overflows when not optimized. You may need to
|
| 64 |
+
use the [`Wrapping`] newtype to avoid this problem, or individual methods like
|
| 65 |
+
[`wrapping_add`].
|
| 66 |
+
|
| 67 |
+
[`Wrapping`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html
|
| 68 |
+
[`wrapping_add`]: https://doc.rust-lang.org/std/primitive.u32.html#method.wrapping_add
|
| 69 |
+
|
| 70 |
+
## Testing
|
| 71 |
+
|
| 72 |
+
Testing for these crates can be somewhat complex, so feel free to rely on CI.
|
| 73 |
+
|
| 74 |
+
The easiest way replicate CI testing is using Docker. This can be done by
|
| 75 |
+
running `./ci/run-docker.sh [target]`. If no target is specified, all targets
|
| 76 |
+
will be run.
|
| 77 |
+
|
| 78 |
+
Tests can also be run without Docker:
|
| 79 |
+
|
| 80 |
+
```sh
|
| 81 |
+
# Run basic tests
|
| 82 |
+
#
|
| 83 |
+
# --no-default-features always needs to be passed, an unfortunate limitation
|
| 84 |
+
# since the `#![compiler_builtins]` feature is enabled by default.
|
| 85 |
+
cargo test --workspace --no-default-features
|
| 86 |
+
|
| 87 |
+
# Test with all interesting features
|
| 88 |
+
cargo test --workspace --no-default-features \
|
| 89 |
+
--features arch,unstable-float,unstable-intrinsics,mem
|
| 90 |
+
|
| 91 |
+
# Run with more detailed tests for libm
|
| 92 |
+
cargo test --workspace --no-default-features \
|
| 93 |
+
--features arch,unstable-float,unstable-intrinsics,mem \
|
| 94 |
+
--features build-mpfr,build-musl \
|
| 95 |
+
--profile release-checked
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
The multiprecision tests use the [`rug`] crate for bindings to MPFR. MPFR can be
|
| 99 |
+
difficult to build on non-Unix systems, refer to [`gmp_mpfr_sys`] for help.
|
| 100 |
+
|
| 101 |
+
`build-musl` does not build with MSVC, Wasm, or Thumb.
|
| 102 |
+
|
| 103 |
+
[`rug`]: https://docs.rs/rug/latest/rug/
|
| 104 |
+
[`gmp_mpfr_sys`]: https://docs.rs/gmp-mpfr-sys/1.6.4/gmp_mpfr_sys/
|
| 105 |
+
|
| 106 |
+
In order to run all tests, some dependencies may be required:
|
| 107 |
+
|
| 108 |
+
```sh
|
| 109 |
+
# Allow testing compiler-builtins
|
| 110 |
+
./ci/download-compiler-rt.sh
|
| 111 |
+
|
| 112 |
+
# Optional, initialize musl for `--features build-musl`
|
| 113 |
+
git submodule init
|
| 114 |
+
git submodule update
|
| 115 |
+
|
| 116 |
+
# `--release` ables more test cases
|
| 117 |
+
cargo test --release
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
### Extensive tests
|
| 121 |
+
|
| 122 |
+
Libm also has tests that are exhaustive (for single-argument `f32` and 1- or 2-
|
| 123 |
+
argument `f16`) or extensive (for all other float and argument combinations).
|
| 124 |
+
These take quite a long time to run, but are launched in CI when relevant files
|
| 125 |
+
are changed.
|
| 126 |
+
|
| 127 |
+
Exhaustive tests can be selected by passing an environment variable:
|
| 128 |
+
|
| 129 |
+
```sh
|
| 130 |
+
LIBM_EXTENSIVE_TESTS=sqrt,sqrtf cargo test --features build-mpfr \
|
| 131 |
+
--test z_extensive \
|
| 132 |
+
--profile release-checked
|
| 133 |
+
|
| 134 |
+
# Run all tests for one type
|
| 135 |
+
LIBM_EXTENSIVE_TESTS=all_f16 cargo test ...
|
| 136 |
+
|
| 137 |
+
# Ensure `f64` tests can run exhaustively. Estimated completion test for a
|
| 138 |
+
# single test is 57306 years on my machine so this may be worth skipping.
|
| 139 |
+
LIBM_EXTENSIVE_TESTS=all LIBM_EXTENSIVE_ITERATIONS=18446744073709551615 cargo test ...
|
| 140 |
+
```
|
| 141 |
+
|
| 142 |
+
## Benchmarking
|
| 143 |
+
|
| 144 |
+
Regular walltime benchmarks can be run with `cargo bench`:
|
| 145 |
+
|
| 146 |
+
```sh
|
| 147 |
+
cargo bench --no-default-features \
|
| 148 |
+
--features arch,unstable-float,unstable-intrinsics,mem \
|
| 149 |
+
--features benchmarking-reports
|
| 150 |
+
```
|
| 151 |
+
|
| 152 |
+
There are also benchmarks that check instruction count behind the `icount`
|
| 153 |
+
feature. These require [`gungraun-runner`] (via Cargo) and [Valgrind] to be
|
| 154 |
+
installed, which means these only run on limited platforms.
|
| 155 |
+
|
| 156 |
+
Instruction count benchmarks are run as part of CI to flag performance
|
| 157 |
+
regresions.
|
| 158 |
+
|
| 159 |
+
```sh
|
| 160 |
+
cargo bench --no-default-features \
|
| 161 |
+
--features arch,unstable-float,unstable-intrinsics,mem \
|
| 162 |
+
--features icount \
|
| 163 |
+
--bench icount --bench mem_icount
|
| 164 |
+
```
|
| 165 |
+
|
| 166 |
+
[`gungraun-runner`]: https://crates.io/crates/gungraun-runner
|
| 167 |
+
[Valgrind]: https://valgrind.org/
|
| 168 |
+
|
| 169 |
+
## Subtree synchronization
|
| 170 |
+
|
| 171 |
+
`compiler-builtins` is included as a [Josh subtree] in the main compiler
|
| 172 |
+
repository (`rust-lang/rust`). You can find a guide on how to create synchronization
|
| 173 |
+
(pull and push) PRs at the [`rustc-dev-guide` page].
|
| 174 |
+
|
| 175 |
+
[Josh subtree]: https://rustc-dev-guide.rust-lang.org/external-repos.html#josh-subtrees
|
| 176 |
+
[`rustc-dev-guide` page]: https://rustc-dev-guide.rust-lang.org/external-repos.html#synchronizing-a-josh-subtree
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/Cargo.toml
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[workspace]
|
| 2 |
+
resolver = "2"
|
| 3 |
+
members = [
|
| 4 |
+
"builtins-shim",
|
| 5 |
+
"builtins-test",
|
| 6 |
+
"crates/libm-macros",
|
| 7 |
+
"crates/musl-math-sys",
|
| 8 |
+
"crates/panic-handler",
|
| 9 |
+
"crates/symbol-check",
|
| 10 |
+
"crates/util",
|
| 11 |
+
"libm",
|
| 12 |
+
"libm-test",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
default-members = [
|
| 16 |
+
"builtins-shim",
|
| 17 |
+
"builtins-test",
|
| 18 |
+
"crates/libm-macros",
|
| 19 |
+
"libm",
|
| 20 |
+
"libm-test",
|
| 21 |
+
]
|
| 22 |
+
|
| 23 |
+
exclude = [
|
| 24 |
+
# `builtins-test-intrinsics` needs the feature `compiler-builtins` enabled
|
| 25 |
+
# and `mangled-names` disabled, which is the opposite of what is needed for
|
| 26 |
+
# other tests, so it makes sense to keep it out of the workspace.
|
| 27 |
+
"builtins-test-intrinsics",
|
| 28 |
+
# We test via the `builtins-shim` crate, so exclude the `compiler-builtins`
|
| 29 |
+
# that has a dependency on `core`. See `builtins-shim/Cargo.toml` for more
|
| 30 |
+
# details.
|
| 31 |
+
"compiler-builtins",
|
| 32 |
+
]
|
| 33 |
+
|
| 34 |
+
[workspace.dependencies]
|
| 35 |
+
anyhow = "1.0.101"
|
| 36 |
+
assert_cmd = "2.1.2"
|
| 37 |
+
cc = "1.2.55"
|
| 38 |
+
compiler_builtins = { path = "builtins-shim", default-features = false }
|
| 39 |
+
criterion = { version = "0.6.0", default-features = false, features = ["cargo_bench_support"] }
|
| 40 |
+
getrandom = "0.3.4"
|
| 41 |
+
gmp-mpfr-sys = { version = "1.6.8", default-features = false }
|
| 42 |
+
gungraun = "0.17.0"
|
| 43 |
+
heck = "0.5.0"
|
| 44 |
+
indicatif = { version = "0.18.3", default-features = false }
|
| 45 |
+
libm = { path = "libm", default-features = false }
|
| 46 |
+
libm-macros = { path = "crates/libm-macros" }
|
| 47 |
+
libm-test = { path = "libm-test", default-features = false }
|
| 48 |
+
libtest-mimic = "0.8.1"
|
| 49 |
+
musl-math-sys = { path = "crates/musl-math-sys" }
|
| 50 |
+
no-panic = "0.1.35"
|
| 51 |
+
object = { version = "0.37.3", features = ["wasm"] }
|
| 52 |
+
panic-handler = { path = "crates/panic-handler" }
|
| 53 |
+
paste = "1.0.15"
|
| 54 |
+
proc-macro2 = "1.0.106"
|
| 55 |
+
quote = "1.0.44"
|
| 56 |
+
rand = "0.9.2"
|
| 57 |
+
rand_chacha = "0.9.0"
|
| 58 |
+
rand_xoshiro = "0.7"
|
| 59 |
+
rayon = "1.11.0"
|
| 60 |
+
regex = "1.12.3"
|
| 61 |
+
rug = { version = "1.28.1", default-features = false, features = ["float", "integer", "std"] }
|
| 62 |
+
rustc_apfloat = "0.2.3"
|
| 63 |
+
serde_json = "1.0.149"
|
| 64 |
+
syn = "2.0.114"
|
| 65 |
+
tempfile = "3.24.0"
|
| 66 |
+
|
| 67 |
+
[profile.release]
|
| 68 |
+
panic = "abort"
|
| 69 |
+
|
| 70 |
+
[profile.dev]
|
| 71 |
+
panic = "abort"
|
| 72 |
+
|
| 73 |
+
# Release mode with debug assertions
|
| 74 |
+
[profile.release-checked]
|
| 75 |
+
inherits = "release"
|
| 76 |
+
debug-assertions = true
|
| 77 |
+
overflow-checks = true
|
| 78 |
+
|
| 79 |
+
# Release with maximum optimizations, which is very slow to build. This is also
|
| 80 |
+
# what is needed to check `no-panic`.
|
| 81 |
+
[profile.release-opt]
|
| 82 |
+
inherits = "release"
|
| 83 |
+
codegen-units = 1
|
| 84 |
+
lto = "fat"
|
| 85 |
+
|
| 86 |
+
[profile.bench]
|
| 87 |
+
codegen-units = 1
|
| 88 |
+
# Required for gungraun
|
| 89 |
+
debug = true
|
| 90 |
+
strip = false
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/LICENSE.txt
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The compiler-builtins crate is available for use under both the MIT license
|
| 2 |
+
and the Apache-2.0 license with the LLVM exception (MIT AND Apache-2.0 WITH
|
| 3 |
+
LLVM-exception).
|
| 4 |
+
|
| 5 |
+
The libm crate is available for use under the MIT license.
|
| 6 |
+
|
| 7 |
+
As a contributor, you agree that your code may be used under any of the
|
| 8 |
+
following: the MIT license, the Apache-2.0 license, or the Apache-2.0 license
|
| 9 |
+
with the LLVM exception. In other words, original (non-derivative) work is
|
| 10 |
+
licensed under MIT OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception. This is
|
| 11 |
+
the default license for all other source in this repository.
|
| 12 |
+
|
| 13 |
+
Text of the relevant licenses is provided below:
|
| 14 |
+
|
| 15 |
+
------------------------------------------------------------------------------
|
| 16 |
+
MIT License
|
| 17 |
+
|
| 18 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 19 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 20 |
+
in the Software without restriction, including without limitation the rights
|
| 21 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 22 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 23 |
+
furnished to do so, subject to the following conditions:
|
| 24 |
+
|
| 25 |
+
The above copyright notice and this permission notice shall be included in all
|
| 26 |
+
copies or substantial portions of the Software.
|
| 27 |
+
|
| 28 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 29 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 30 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 31 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 32 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 33 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 34 |
+
SOFTWARE.
|
| 35 |
+
------------------------------------------------------------------------------
|
| 36 |
+
Apache License
|
| 37 |
+
Version 2.0, January 2004
|
| 38 |
+
http://www.apache.org/licenses/
|
| 39 |
+
|
| 40 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 41 |
+
|
| 42 |
+
1. Definitions.
|
| 43 |
+
|
| 44 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 45 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 46 |
+
|
| 47 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 48 |
+
the copyright owner that is granting the License.
|
| 49 |
+
|
| 50 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 51 |
+
other entities that control, are controlled by, or are under common
|
| 52 |
+
control with that entity. For the purposes of this definition,
|
| 53 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 54 |
+
direction or management of such entity, whether by contract or
|
| 55 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 56 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 57 |
+
|
| 58 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 59 |
+
exercising permissions granted by this License.
|
| 60 |
+
|
| 61 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 62 |
+
including but not limited to software source code, documentation
|
| 63 |
+
source, and configuration files.
|
| 64 |
+
|
| 65 |
+
"Object" form shall mean any form resulting from mechanical
|
| 66 |
+
transformation or translation of a Source form, including but
|
| 67 |
+
not limited to compiled object code, generated documentation,
|
| 68 |
+
and conversions to other media types.
|
| 69 |
+
|
| 70 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 71 |
+
Object form, made available under the License, as indicated by a
|
| 72 |
+
copyright notice that is included in or attached to the work
|
| 73 |
+
(an example is provided in the Appendix below).
|
| 74 |
+
|
| 75 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 76 |
+
form, that is based on (or derived from) the Work and for which the
|
| 77 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 78 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 79 |
+
of this License, Derivative Works shall not include works that remain
|
| 80 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 81 |
+
the Work and Derivative Works thereof.
|
| 82 |
+
|
| 83 |
+
"Contribution" shall mean any work of authorship, including
|
| 84 |
+
the original version of the Work and any modifications or additions
|
| 85 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 86 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 87 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 88 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 89 |
+
means any form of electronic, verbal, or written communication sent
|
| 90 |
+
to the Licensor or its representatives, including but not limited to
|
| 91 |
+
communication on electronic mailing lists, source code control systems,
|
| 92 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 93 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 94 |
+
excluding communication that is conspicuously marked or otherwise
|
| 95 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 96 |
+
|
| 97 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 98 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 99 |
+
subsequently incorporated within the Work.
|
| 100 |
+
|
| 101 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 102 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 103 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 104 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 105 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 106 |
+
Work and such Derivative Works in Source or Object form.
|
| 107 |
+
|
| 108 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 109 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 110 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 111 |
+
(except as stated in this section) patent license to make, have made,
|
| 112 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 113 |
+
where such license applies only to those patent claims licensable
|
| 114 |
+
by such Contributor that are necessarily infringed by their
|
| 115 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 116 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 117 |
+
institute patent litigation against any entity (including a
|
| 118 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 119 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 120 |
+
or contributory patent infringement, then any patent licenses
|
| 121 |
+
granted to You under this License for that Work shall terminate
|
| 122 |
+
as of the date such litigation is filed.
|
| 123 |
+
|
| 124 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 125 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 126 |
+
modifications, and in Source or Object form, provided that You
|
| 127 |
+
meet the following conditions:
|
| 128 |
+
|
| 129 |
+
(a) You must give any other recipients of the Work or
|
| 130 |
+
Derivative Works a copy of this License; and
|
| 131 |
+
|
| 132 |
+
(b) You must cause any modified files to carry prominent notices
|
| 133 |
+
stating that You changed the files; and
|
| 134 |
+
|
| 135 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 136 |
+
that You distribute, all copyright, patent, trademark, and
|
| 137 |
+
attribution notices from the Source form of the Work,
|
| 138 |
+
excluding those notices that do not pertain to any part of
|
| 139 |
+
the Derivative Works; and
|
| 140 |
+
|
| 141 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 142 |
+
distribution, then any Derivative Works that You distribute must
|
| 143 |
+
include a readable copy of the attribution notices contained
|
| 144 |
+
within such NOTICE file, excluding those notices that do not
|
| 145 |
+
pertain to any part of the Derivative Works, in at least one
|
| 146 |
+
of the following places: within a NOTICE text file distributed
|
| 147 |
+
as part of the Derivative Works; within the Source form or
|
| 148 |
+
documentation, if provided along with the Derivative Works; or,
|
| 149 |
+
within a display generated by the Derivative Works, if and
|
| 150 |
+
wherever such third-party notices normally appear. The contents
|
| 151 |
+
of the NOTICE file are for informational purposes only and
|
| 152 |
+
do not modify the License. You may add Your own attribution
|
| 153 |
+
notices within Derivative Works that You distribute, alongside
|
| 154 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 155 |
+
that such additional attribution notices cannot be construed
|
| 156 |
+
as modifying the License.
|
| 157 |
+
|
| 158 |
+
You may add Your own copyright statement to Your modifications and
|
| 159 |
+
may provide additional or different license terms and conditions
|
| 160 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 161 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 162 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 163 |
+
the conditions stated in this License.
|
| 164 |
+
|
| 165 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 166 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 167 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 168 |
+
this License, without any additional terms or conditions.
|
| 169 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 170 |
+
the terms of any separate license agreement you may have executed
|
| 171 |
+
with Licensor regarding such Contributions.
|
| 172 |
+
|
| 173 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 174 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 175 |
+
except as required for reasonable and customary use in describing the
|
| 176 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 177 |
+
|
| 178 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 179 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 180 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 181 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 182 |
+
implied, including, without limitation, any warranties or conditions
|
| 183 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 184 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 185 |
+
appropriateness of using or redistributing the Work and assume any
|
| 186 |
+
risks associated with Your exercise of permissions under this License.
|
| 187 |
+
|
| 188 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 189 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 190 |
+
unless required by applicable law (such as deliberate and grossly
|
| 191 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 192 |
+
liable to You for damages, including any direct, indirect, special,
|
| 193 |
+
incidental, or consequential damages of any character arising as a
|
| 194 |
+
result of this License or out of the use or inability to use the
|
| 195 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 196 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 197 |
+
other commercial damages or losses), even if such Contributor
|
| 198 |
+
has been advised of the possibility of such damages.
|
| 199 |
+
|
| 200 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 201 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 202 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 203 |
+
or other liability obligations and/or rights consistent with this
|
| 204 |
+
License. However, in accepting such obligations, You may act only
|
| 205 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 206 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 207 |
+
defend, and hold each Contributor harmless for any liability
|
| 208 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 209 |
+
of your accepting any such warranty or additional liability.
|
| 210 |
+
|
| 211 |
+
END OF TERMS AND CONDITIONS
|
| 212 |
+
|
| 213 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 214 |
+
|
| 215 |
+
To apply the Apache License to your work, attach the following
|
| 216 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 217 |
+
replaced with your own identifying information. (Don't include
|
| 218 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 219 |
+
comment syntax for the file format. We also recommend that a
|
| 220 |
+
file or class name and description of purpose be included on the
|
| 221 |
+
same "printed page" as the copyright notice for easier
|
| 222 |
+
identification within third-party archives.
|
| 223 |
+
|
| 224 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 225 |
+
you may not use this file except in compliance with the License.
|
| 226 |
+
You may obtain a copy of the License at
|
| 227 |
+
|
| 228 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 229 |
+
|
| 230 |
+
Unless required by applicable law or agreed to in writing, software
|
| 231 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 232 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 233 |
+
See the License for the specific language governing permissions and
|
| 234 |
+
limitations under the License.
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
---- LLVM Exceptions to the Apache 2.0 License ----
|
| 238 |
+
|
| 239 |
+
As an exception, if, as a result of your compiling your source code, portions
|
| 240 |
+
of this Software are embedded into an Object form of such source code, you
|
| 241 |
+
may redistribute such embedded portions in such Object form without complying
|
| 242 |
+
with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
|
| 243 |
+
|
| 244 |
+
In addition, if you combine or link compiled forms of this Software with
|
| 245 |
+
software that is licensed under the GPLv2 ("Combined Software") and if a
|
| 246 |
+
court of competent jurisdiction determines that the patent provision (Section
|
| 247 |
+
3), the indemnity provision (Section 9) or other Section of the License
|
| 248 |
+
conflicts with the conditions of the GPLv2, you may retroactively and
|
| 249 |
+
prospectively choose to deem waived or otherwise exclude such Section(s) of
|
| 250 |
+
the License, but only in their entirety and only with respect to the Combined
|
| 251 |
+
Software.
|
| 252 |
+
------------------------------------------------------------------------------
|
| 253 |
+
|
| 254 |
+
Portions of this software are derived from third-party works licensed under
|
| 255 |
+
terms compatible with the above Apache-2.0 WITH LLVM-exception AND MIT
|
| 256 |
+
license:
|
| 257 |
+
|
| 258 |
+
* compiler-builtins is derived from LLVM's compiler-rt (https://llvm.org/).
|
| 259 |
+
Work derived from compiler-rt prior to 2019-01-19 is usable under the MIT
|
| 260 |
+
license, with the following copyright:
|
| 261 |
+
|
| 262 |
+
Copyright (c) 2009-2016 by the contributors listed in CREDITS.TXT
|
| 263 |
+
|
| 264 |
+
The relevant CREDITS.TXT is located at
|
| 265 |
+
https://github.com/llvm/llvm-project/blob/main/compiler-rt/CREDITS.TXT.
|
| 266 |
+
|
| 267 |
+
* Work derived from compiler-rt after 2019-01-19 is usable under the
|
| 268 |
+
Apache-2.0 license with the LLVM exception.
|
| 269 |
+
|
| 270 |
+
* The bundled `math` module is from the libm crate, usable under the MIT
|
| 271 |
+
license. For further details and copyrights, see see libm/LICENSE.txt at
|
| 272 |
+
https://github.com/rust-lang/compiler-builtins.
|
| 273 |
+
|
| 274 |
+
Additionally, some source files may contain comments with specific copyrights
|
| 275 |
+
or licenses.
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/PUBLISHING.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Publishing to crates.io
|
| 2 |
+
|
| 3 |
+
Publishing `compiler-builtins` to crates.io takes a few steps unfortunately.
|
| 4 |
+
It's not great, but it works for now. PRs to improve this process would be
|
| 5 |
+
greatly appreciated!
|
| 6 |
+
|
| 7 |
+
1. Make sure you've got a clean working tree and it's updated with the latest
|
| 8 |
+
changes on `main`
|
| 9 |
+
2. Edit `Cargo.toml` to bump the version number
|
| 10 |
+
3. Commit this change
|
| 11 |
+
4. Run `git tag` to create a tag for this version
|
| 12 |
+
5. Delete the `libm/Cargo.toml` file
|
| 13 |
+
6. Run `cargo +nightly publish`
|
| 14 |
+
7. Push the tag
|
| 15 |
+
8. Push the commit
|
| 16 |
+
9. Undo changes to `Cargo.toml` and the `libm` submodule
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# `compiler-builtins` and `libm`
|
| 2 |
+
|
| 3 |
+
This repository contains two main crates:
|
| 4 |
+
|
| 5 |
+
* `compiler-builtins`: symbols that the compiler expects to be available at
|
| 6 |
+
link time
|
| 7 |
+
* `libm`: a Rust implementation of C math libraries, used to provide
|
| 8 |
+
implementations in `core`.
|
| 9 |
+
|
| 10 |
+
More details are at [compiler-builtins/README.md](compiler-builtins/README.md)
|
| 11 |
+
and [libm/README.md](libm/README.md).
|
| 12 |
+
|
| 13 |
+
For instructions on contributing, see [CONTRIBUTING.md](CONTRIBUTING.md).
|
| 14 |
+
|
| 15 |
+
## License
|
| 16 |
+
|
| 17 |
+
* `libm` may be used under the [MIT License]
|
| 18 |
+
* `compiler-builtins` may be used under the [MIT License] and the
|
| 19 |
+
[Apache License, Version 2.0] with the LLVM exception.
|
| 20 |
+
* All original contributions must be under all of: the MIT license, the
|
| 21 |
+
Apache-2.0 license, and the Apache-2.0 license with the LLVM exception.
|
| 22 |
+
|
| 23 |
+
More details are in [LICENSE.txt](LICENSE.txt) and
|
| 24 |
+
[libm/LICENSE.txt](libm/LICENSE.txt).
|
| 25 |
+
|
| 26 |
+
[MIT License]: https://opensource.org/license/mit
|
| 27 |
+
[Apache License, Version 2.0]: htps://www.apache.org/licenses/LICENSE-2.0
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/josh-sync.toml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
org = "rust-lang"
|
| 2 |
+
repo = "compiler-builtins"
|
| 3 |
+
path = "library/compiler-builtins"
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/rust-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
db3e99bbab28c6ca778b13222becdea54533d908
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/compiler-builtins/triagebot.toml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## See <https://forge.rust-lang.org/triagebot/index.html> for documentation
|
| 2 |
+
## of these features.
|
| 3 |
+
|
| 4 |
+
# Warns when a PR contains merge commits
|
| 5 |
+
# Documentation at: https://forge.rust-lang.org/triagebot/no-merge.html
|
| 6 |
+
[no-merges]
|
| 7 |
+
exclude_titles = ["Rustc pull update"]
|
| 8 |
+
|
| 9 |
+
# Canonicalize issue numbers to avoid closing the wrong issue
|
| 10 |
+
# when commits are included in subtrees, as well as warning links in commits.
|
| 11 |
+
# Documentation at: https://forge.rust-lang.org/triagebot/issue-links.html
|
| 12 |
+
[issue-links]
|
| 13 |
+
check-commits = "uncanonicalized"
|
| 14 |
+
|
| 15 |
+
# Enable issue transfers within the org
|
| 16 |
+
# Documentation at: https://forge.rust-lang.org/triagebot/transfer.html
|
| 17 |
+
[transfer]
|
| 18 |
+
|
| 19 |
+
# Enable comments linking to triagebot range-diff when a PR is rebased
|
| 20 |
+
# onto a different base commit
|
| 21 |
+
# Documentation at: https://forge.rust-lang.org/triagebot/range-diff.html
|
| 22 |
+
[range-diff]
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/core/Cargo.toml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "core"
|
| 3 |
+
version = "0.0.0"
|
| 4 |
+
license = "MIT OR Apache-2.0"
|
| 5 |
+
repository = "https://github.com/rust-lang/rust.git"
|
| 6 |
+
description = "The Rust Core Library"
|
| 7 |
+
autotests = false
|
| 8 |
+
autobenches = false
|
| 9 |
+
# If you update this, be sure to update it in a bunch of other places too!
|
| 10 |
+
# As of 2024, it was src/tools/opt-dist, the core-no-fp-fmt-parse test and
|
| 11 |
+
# the version of the prelude imported in core/lib.rs.
|
| 12 |
+
edition = "2024"
|
| 13 |
+
|
| 14 |
+
[lib]
|
| 15 |
+
test = false
|
| 16 |
+
bench = false
|
| 17 |
+
|
| 18 |
+
[features]
|
| 19 |
+
# Issue a compile error that says to use -Cpanic=immediate-abort
|
| 20 |
+
panic_immediate_abort = []
|
| 21 |
+
# Choose algorithms that are optimized for binary size instead of runtime performance
|
| 22 |
+
optimize_for_size = []
|
| 23 |
+
# Make `RefCell` store additional debugging information, which is printed out when
|
| 24 |
+
# a borrow error occurs
|
| 25 |
+
debug_refcell = []
|
| 26 |
+
llvm_enzyme = []
|
| 27 |
+
|
| 28 |
+
[lints.rust.unexpected_cfgs]
|
| 29 |
+
level = "warn"
|
| 30 |
+
check-cfg = [
|
| 31 |
+
'cfg(no_fp_fmt_parse)',
|
| 32 |
+
# core use #[path] imports to portable-simd `core_simd` crate
|
| 33 |
+
# and to stdarch `core_arch` crate which messes-up with Cargo list
|
| 34 |
+
# of declared features, we therefor expect any feature cfg
|
| 35 |
+
'cfg(feature, values(any()))',
|
| 36 |
+
# Internal features aren't marked known config by default, we use these to
|
| 37 |
+
# gate tests.
|
| 38 |
+
'cfg(target_has_reliable_f16)',
|
| 39 |
+
'cfg(target_has_reliable_f16_math)',
|
| 40 |
+
'cfg(target_has_reliable_f128)',
|
| 41 |
+
'cfg(target_has_reliable_f128_math)',
|
| 42 |
+
'cfg(llvm_enzyme)',
|
| 43 |
+
|
| 44 |
+
]
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/coretests/Cargo.toml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "coretests"
|
| 3 |
+
version = "0.0.0"
|
| 4 |
+
license = "MIT OR Apache-2.0"
|
| 5 |
+
repository = "https://github.com/rust-lang/rust.git"
|
| 6 |
+
description = "Tests for the Rust Core Library"
|
| 7 |
+
autotests = false
|
| 8 |
+
autobenches = false
|
| 9 |
+
edition = "2024"
|
| 10 |
+
|
| 11 |
+
[lib]
|
| 12 |
+
path = "lib.rs"
|
| 13 |
+
test = false
|
| 14 |
+
bench = false
|
| 15 |
+
doc = false
|
| 16 |
+
|
| 17 |
+
[[test]]
|
| 18 |
+
name = "coretests"
|
| 19 |
+
path = "tests/lib.rs"
|
| 20 |
+
|
| 21 |
+
[[bench]]
|
| 22 |
+
name = "corebenches"
|
| 23 |
+
path = "benches/lib.rs"
|
| 24 |
+
test = true
|
| 25 |
+
|
| 26 |
+
[dev-dependencies]
|
| 27 |
+
rand = { version = "0.9.0", default-features = false }
|
| 28 |
+
rand_xorshift = { version = "0.4.0", default-features = false }
|
| 29 |
+
|
| 30 |
+
[lints.rust.unexpected_cfgs]
|
| 31 |
+
level = "warn"
|
| 32 |
+
check-cfg = [
|
| 33 |
+
# Internal features aren't marked known config by default, we use these to
|
| 34 |
+
# gate tests.
|
| 35 |
+
'cfg(target_has_reliable_f16)',
|
| 36 |
+
'cfg(target_has_reliable_f16_math)',
|
| 37 |
+
'cfg(target_has_reliable_f128)',
|
| 38 |
+
'cfg(target_has_reliable_f128_math)',
|
| 39 |
+
]
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/coretests/lib.rs
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
// Intentionally left empty.
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/panic_abort/Cargo.toml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "panic_abort"
|
| 3 |
+
version = "0.0.0"
|
| 4 |
+
license = "MIT OR Apache-2.0"
|
| 5 |
+
repository = "https://github.com/rust-lang/rust.git"
|
| 6 |
+
description = "Implementation of Rust panics via process aborts"
|
| 7 |
+
edition = "2024"
|
| 8 |
+
|
| 9 |
+
[lib]
|
| 10 |
+
test = false
|
| 11 |
+
bench = false
|
| 12 |
+
doc = false
|
| 13 |
+
|
| 14 |
+
[dependencies]
|
| 15 |
+
core = { path = "../rustc-std-workspace-core", package = "rustc-std-workspace-core" }
|
| 16 |
+
|
| 17 |
+
[target.'cfg(target_os = "android")'.dependencies]
|
| 18 |
+
libc = { version = "0.2", default-features = false }
|
| 19 |
+
|
| 20 |
+
[target.'cfg(any(target_os = "android", target_os = "zkvm"))'.dependencies]
|
| 21 |
+
alloc = { path = "../alloc" }
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/panic_unwind/Cargo.toml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "panic_unwind"
|
| 3 |
+
version = "0.0.0"
|
| 4 |
+
license = "MIT OR Apache-2.0"
|
| 5 |
+
repository = "https://github.com/rust-lang/rust.git"
|
| 6 |
+
description = "Implementation of Rust panics via stack unwinding"
|
| 7 |
+
edition = "2024"
|
| 8 |
+
|
| 9 |
+
[lib]
|
| 10 |
+
test = false
|
| 11 |
+
bench = false
|
| 12 |
+
doc = false
|
| 13 |
+
|
| 14 |
+
[dependencies]
|
| 15 |
+
alloc = { path = "../alloc" }
|
| 16 |
+
core = { path = "../rustc-std-workspace-core", package = "rustc-std-workspace-core" }
|
| 17 |
+
unwind = { path = "../unwind" }
|
| 18 |
+
|
| 19 |
+
[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
|
| 20 |
+
libc = { version = "0.2", default-features = false }
|
| 21 |
+
|
| 22 |
+
[lints.rust.unexpected_cfgs]
|
| 23 |
+
level = "warn"
|
| 24 |
+
check-cfg = ['cfg(emscripten_wasm_eh)']
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Contributing to `std::simd`
|
| 2 |
+
|
| 3 |
+
Simple version:
|
| 4 |
+
1. Fork it and `git clone` it
|
| 5 |
+
2. Create your feature branch: `git checkout -b my-branch`
|
| 6 |
+
3. Write your changes.
|
| 7 |
+
4. Test it: `cargo test`. Remember to enable whatever SIMD features you intend to test by setting `RUSTFLAGS`.
|
| 8 |
+
5. Commit your changes: `git commit add ./path/to/changes && git commit -m 'Fix some bug'`
|
| 9 |
+
6. Push the branch: `git push --set-upstream origin my-branch`
|
| 10 |
+
7. Submit a pull request!
|
| 11 |
+
|
| 12 |
+
## Taking on an Issue
|
| 13 |
+
|
| 14 |
+
SIMD can be quite complex, and even a "simple" issue can be huge. If an issue is organized like a tracking issue, with an itemized list of items that don't necessarily have to be done in a specific order, please take the issue one item at a time. This will help by letting work proceed apace on the rest of the issue. If it's a (relatively) small issue, feel free to announce your intention to solve it on the issue tracker and take it in one go!
|
| 15 |
+
|
| 16 |
+
## CI
|
| 17 |
+
|
| 18 |
+
We currently use GitHub Actions which will automatically build and test your change in order to verify that `std::simd`'s portable API is, in fact, portable. If your change builds locally, but does not build in CI, this is likely due to a platform-specific concern that your code has not addressed. Please consult the build logs and address the error, or ask for help if you need it.
|
| 19 |
+
|
| 20 |
+
## Beyond stdsimd
|
| 21 |
+
|
| 22 |
+
A large amount of the core SIMD implementation is found in the rustc_codegen_* crates in the [main rustc repo](https://github.com/rust-lang/rust). In addition, actual platform-specific functions are implemented in [stdarch]. Not all changes to `std::simd` require interacting with either of these, but if you're wondering where something is and it doesn't seem to be in this repository, those might be where to start looking.
|
| 23 |
+
|
| 24 |
+
## Questions? Concerns? Need Help?
|
| 25 |
+
|
| 26 |
+
Please feel free to ask in the [#project-portable-simd][zulip-portable-simd] stream on the [rust-lang Zulip][zulip] for help with making changes to `std::simd`!
|
| 27 |
+
If your changes include directly modifying the compiler, it might also be useful to ask in [#t-compiler/help][zulip-compiler-help].
|
| 28 |
+
|
| 29 |
+
[zulip-portable-simd]: https://rust-lang.zulipchat.com/#narrow/stream/257879-project-portable-simd
|
| 30 |
+
[zulip-compiler-help]: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp
|
| 31 |
+
[zulip]: https://rust-lang.zulipchat.com
|
| 32 |
+
[stdarch]: https://github.com/rust-lang/stdarch
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/Cargo.lock
ADDED
|
@@ -0,0 +1,462 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is automatically @generated by Cargo.
|
| 2 |
+
# It is not intended for manual editing.
|
| 3 |
+
version = 4
|
| 4 |
+
|
| 5 |
+
[[package]]
|
| 6 |
+
name = "autocfg"
|
| 7 |
+
version = "1.5.0"
|
| 8 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 9 |
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
| 10 |
+
|
| 11 |
+
[[package]]
|
| 12 |
+
name = "bitflags"
|
| 13 |
+
version = "1.3.2"
|
| 14 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 15 |
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
| 16 |
+
|
| 17 |
+
[[package]]
|
| 18 |
+
name = "bumpalo"
|
| 19 |
+
version = "3.19.0"
|
| 20 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 21 |
+
checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
|
| 22 |
+
|
| 23 |
+
[[package]]
|
| 24 |
+
name = "byteorder"
|
| 25 |
+
version = "1.5.0"
|
| 26 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 27 |
+
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
| 28 |
+
|
| 29 |
+
[[package]]
|
| 30 |
+
name = "cc"
|
| 31 |
+
version = "1.2.33"
|
| 32 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 33 |
+
checksum = "3ee0f8803222ba5a7e2777dd72ca451868909b1ac410621b676adf07280e9b5f"
|
| 34 |
+
dependencies = [
|
| 35 |
+
"shlex",
|
| 36 |
+
]
|
| 37 |
+
|
| 38 |
+
[[package]]
|
| 39 |
+
name = "cfg-if"
|
| 40 |
+
version = "1.0.1"
|
| 41 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 42 |
+
checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
|
| 43 |
+
|
| 44 |
+
[[package]]
|
| 45 |
+
name = "core_simd"
|
| 46 |
+
version = "0.1.0"
|
| 47 |
+
dependencies = [
|
| 48 |
+
"proptest",
|
| 49 |
+
"std_float",
|
| 50 |
+
"test_helpers",
|
| 51 |
+
"wasm-bindgen",
|
| 52 |
+
"wasm-bindgen-test",
|
| 53 |
+
]
|
| 54 |
+
|
| 55 |
+
[[package]]
|
| 56 |
+
name = "float-cmp"
|
| 57 |
+
version = "0.10.0"
|
| 58 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 59 |
+
checksum = "b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8"
|
| 60 |
+
dependencies = [
|
| 61 |
+
"num-traits",
|
| 62 |
+
]
|
| 63 |
+
|
| 64 |
+
[[package]]
|
| 65 |
+
name = "js-sys"
|
| 66 |
+
version = "0.3.77"
|
| 67 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 68 |
+
checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
|
| 69 |
+
dependencies = [
|
| 70 |
+
"once_cell",
|
| 71 |
+
"wasm-bindgen",
|
| 72 |
+
]
|
| 73 |
+
|
| 74 |
+
[[package]]
|
| 75 |
+
name = "log"
|
| 76 |
+
version = "0.4.27"
|
| 77 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 78 |
+
checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
|
| 79 |
+
|
| 80 |
+
[[package]]
|
| 81 |
+
name = "minicov"
|
| 82 |
+
version = "0.3.7"
|
| 83 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 84 |
+
checksum = "f27fe9f1cc3c22e1687f9446c2083c4c5fc7f0bcf1c7a86bdbded14985895b4b"
|
| 85 |
+
dependencies = [
|
| 86 |
+
"cc",
|
| 87 |
+
"walkdir",
|
| 88 |
+
]
|
| 89 |
+
|
| 90 |
+
[[package]]
|
| 91 |
+
name = "num-traits"
|
| 92 |
+
version = "0.2.19"
|
| 93 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 94 |
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
| 95 |
+
dependencies = [
|
| 96 |
+
"autocfg",
|
| 97 |
+
]
|
| 98 |
+
|
| 99 |
+
[[package]]
|
| 100 |
+
name = "once_cell"
|
| 101 |
+
version = "1.21.3"
|
| 102 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 103 |
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
| 104 |
+
|
| 105 |
+
[[package]]
|
| 106 |
+
name = "ppv-lite86"
|
| 107 |
+
version = "0.2.21"
|
| 108 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 109 |
+
checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
|
| 110 |
+
dependencies = [
|
| 111 |
+
"zerocopy",
|
| 112 |
+
]
|
| 113 |
+
|
| 114 |
+
[[package]]
|
| 115 |
+
name = "proc-macro2"
|
| 116 |
+
version = "1.0.101"
|
| 117 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 118 |
+
checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
|
| 119 |
+
dependencies = [
|
| 120 |
+
"unicode-ident",
|
| 121 |
+
]
|
| 122 |
+
|
| 123 |
+
[[package]]
|
| 124 |
+
name = "proptest"
|
| 125 |
+
version = "0.10.1"
|
| 126 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 127 |
+
checksum = "12e6c80c1139113c28ee4670dc50cc42915228b51f56a9e407f0ec60f966646f"
|
| 128 |
+
dependencies = [
|
| 129 |
+
"bitflags",
|
| 130 |
+
"byteorder",
|
| 131 |
+
"num-traits",
|
| 132 |
+
"rand",
|
| 133 |
+
"rand_chacha",
|
| 134 |
+
"rand_xorshift",
|
| 135 |
+
]
|
| 136 |
+
|
| 137 |
+
[[package]]
|
| 138 |
+
name = "quote"
|
| 139 |
+
version = "1.0.40"
|
| 140 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 141 |
+
checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
|
| 142 |
+
dependencies = [
|
| 143 |
+
"proc-macro2",
|
| 144 |
+
]
|
| 145 |
+
|
| 146 |
+
[[package]]
|
| 147 |
+
name = "rand"
|
| 148 |
+
version = "0.7.3"
|
| 149 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 150 |
+
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
|
| 151 |
+
dependencies = [
|
| 152 |
+
"rand_chacha",
|
| 153 |
+
"rand_core",
|
| 154 |
+
"rand_hc",
|
| 155 |
+
]
|
| 156 |
+
|
| 157 |
+
[[package]]
|
| 158 |
+
name = "rand_chacha"
|
| 159 |
+
version = "0.2.2"
|
| 160 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 161 |
+
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
|
| 162 |
+
dependencies = [
|
| 163 |
+
"ppv-lite86",
|
| 164 |
+
"rand_core",
|
| 165 |
+
]
|
| 166 |
+
|
| 167 |
+
[[package]]
|
| 168 |
+
name = "rand_core"
|
| 169 |
+
version = "0.5.1"
|
| 170 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 171 |
+
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
|
| 172 |
+
|
| 173 |
+
[[package]]
|
| 174 |
+
name = "rand_hc"
|
| 175 |
+
version = "0.2.0"
|
| 176 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 177 |
+
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
|
| 178 |
+
dependencies = [
|
| 179 |
+
"rand_core",
|
| 180 |
+
]
|
| 181 |
+
|
| 182 |
+
[[package]]
|
| 183 |
+
name = "rand_xorshift"
|
| 184 |
+
version = "0.2.0"
|
| 185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 186 |
+
checksum = "77d416b86801d23dde1aa643023b775c3a462efc0ed96443add11546cdf1dca8"
|
| 187 |
+
dependencies = [
|
| 188 |
+
"rand_core",
|
| 189 |
+
]
|
| 190 |
+
|
| 191 |
+
[[package]]
|
| 192 |
+
name = "rustversion"
|
| 193 |
+
version = "1.0.22"
|
| 194 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 195 |
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
| 196 |
+
|
| 197 |
+
[[package]]
|
| 198 |
+
name = "same-file"
|
| 199 |
+
version = "1.0.6"
|
| 200 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 201 |
+
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
| 202 |
+
dependencies = [
|
| 203 |
+
"winapi-util",
|
| 204 |
+
]
|
| 205 |
+
|
| 206 |
+
[[package]]
|
| 207 |
+
name = "shlex"
|
| 208 |
+
version = "1.3.0"
|
| 209 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 210 |
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
| 211 |
+
|
| 212 |
+
[[package]]
|
| 213 |
+
name = "std_float"
|
| 214 |
+
version = "0.1.0"
|
| 215 |
+
dependencies = [
|
| 216 |
+
"core_simd",
|
| 217 |
+
"test_helpers",
|
| 218 |
+
"wasm-bindgen",
|
| 219 |
+
"wasm-bindgen-test",
|
| 220 |
+
]
|
| 221 |
+
|
| 222 |
+
[[package]]
|
| 223 |
+
name = "syn"
|
| 224 |
+
version = "2.0.106"
|
| 225 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 226 |
+
checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
|
| 227 |
+
dependencies = [
|
| 228 |
+
"proc-macro2",
|
| 229 |
+
"quote",
|
| 230 |
+
"unicode-ident",
|
| 231 |
+
]
|
| 232 |
+
|
| 233 |
+
[[package]]
|
| 234 |
+
name = "test_helpers"
|
| 235 |
+
version = "0.1.0"
|
| 236 |
+
dependencies = [
|
| 237 |
+
"float-cmp",
|
| 238 |
+
"proptest",
|
| 239 |
+
]
|
| 240 |
+
|
| 241 |
+
[[package]]
|
| 242 |
+
name = "unicode-ident"
|
| 243 |
+
version = "1.0.18"
|
| 244 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 245 |
+
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
| 246 |
+
|
| 247 |
+
[[package]]
|
| 248 |
+
name = "walkdir"
|
| 249 |
+
version = "2.5.0"
|
| 250 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 251 |
+
checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
|
| 252 |
+
dependencies = [
|
| 253 |
+
"same-file",
|
| 254 |
+
"winapi-util",
|
| 255 |
+
]
|
| 256 |
+
|
| 257 |
+
[[package]]
|
| 258 |
+
name = "wasm-bindgen"
|
| 259 |
+
version = "0.2.100"
|
| 260 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 261 |
+
checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
|
| 262 |
+
dependencies = [
|
| 263 |
+
"cfg-if",
|
| 264 |
+
"once_cell",
|
| 265 |
+
"rustversion",
|
| 266 |
+
"wasm-bindgen-macro",
|
| 267 |
+
]
|
| 268 |
+
|
| 269 |
+
[[package]]
|
| 270 |
+
name = "wasm-bindgen-backend"
|
| 271 |
+
version = "0.2.100"
|
| 272 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 273 |
+
checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
|
| 274 |
+
dependencies = [
|
| 275 |
+
"bumpalo",
|
| 276 |
+
"log",
|
| 277 |
+
"proc-macro2",
|
| 278 |
+
"quote",
|
| 279 |
+
"syn",
|
| 280 |
+
"wasm-bindgen-shared",
|
| 281 |
+
]
|
| 282 |
+
|
| 283 |
+
[[package]]
|
| 284 |
+
name = "wasm-bindgen-futures"
|
| 285 |
+
version = "0.4.50"
|
| 286 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 287 |
+
checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61"
|
| 288 |
+
dependencies = [
|
| 289 |
+
"cfg-if",
|
| 290 |
+
"js-sys",
|
| 291 |
+
"once_cell",
|
| 292 |
+
"wasm-bindgen",
|
| 293 |
+
"web-sys",
|
| 294 |
+
]
|
| 295 |
+
|
| 296 |
+
[[package]]
|
| 297 |
+
name = "wasm-bindgen-macro"
|
| 298 |
+
version = "0.2.100"
|
| 299 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 300 |
+
checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
|
| 301 |
+
dependencies = [
|
| 302 |
+
"quote",
|
| 303 |
+
"wasm-bindgen-macro-support",
|
| 304 |
+
]
|
| 305 |
+
|
| 306 |
+
[[package]]
|
| 307 |
+
name = "wasm-bindgen-macro-support"
|
| 308 |
+
version = "0.2.100"
|
| 309 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 310 |
+
checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
|
| 311 |
+
dependencies = [
|
| 312 |
+
"proc-macro2",
|
| 313 |
+
"quote",
|
| 314 |
+
"syn",
|
| 315 |
+
"wasm-bindgen-backend",
|
| 316 |
+
"wasm-bindgen-shared",
|
| 317 |
+
]
|
| 318 |
+
|
| 319 |
+
[[package]]
|
| 320 |
+
name = "wasm-bindgen-shared"
|
| 321 |
+
version = "0.2.100"
|
| 322 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 323 |
+
checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
|
| 324 |
+
dependencies = [
|
| 325 |
+
"unicode-ident",
|
| 326 |
+
]
|
| 327 |
+
|
| 328 |
+
[[package]]
|
| 329 |
+
name = "wasm-bindgen-test"
|
| 330 |
+
version = "0.3.50"
|
| 331 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 332 |
+
checksum = "66c8d5e33ca3b6d9fa3b4676d774c5778031d27a578c2b007f905acf816152c3"
|
| 333 |
+
dependencies = [
|
| 334 |
+
"js-sys",
|
| 335 |
+
"minicov",
|
| 336 |
+
"wasm-bindgen",
|
| 337 |
+
"wasm-bindgen-futures",
|
| 338 |
+
"wasm-bindgen-test-macro",
|
| 339 |
+
]
|
| 340 |
+
|
| 341 |
+
[[package]]
|
| 342 |
+
name = "wasm-bindgen-test-macro"
|
| 343 |
+
version = "0.3.50"
|
| 344 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 345 |
+
checksum = "17d5042cc5fa009658f9a7333ef24291b1291a25b6382dd68862a7f3b969f69b"
|
| 346 |
+
dependencies = [
|
| 347 |
+
"proc-macro2",
|
| 348 |
+
"quote",
|
| 349 |
+
"syn",
|
| 350 |
+
]
|
| 351 |
+
|
| 352 |
+
[[package]]
|
| 353 |
+
name = "web-sys"
|
| 354 |
+
version = "0.3.77"
|
| 355 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 356 |
+
checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2"
|
| 357 |
+
dependencies = [
|
| 358 |
+
"js-sys",
|
| 359 |
+
"wasm-bindgen",
|
| 360 |
+
]
|
| 361 |
+
|
| 362 |
+
[[package]]
|
| 363 |
+
name = "winapi-util"
|
| 364 |
+
version = "0.1.9"
|
| 365 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 366 |
+
checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
|
| 367 |
+
dependencies = [
|
| 368 |
+
"windows-sys",
|
| 369 |
+
]
|
| 370 |
+
|
| 371 |
+
[[package]]
|
| 372 |
+
name = "windows-sys"
|
| 373 |
+
version = "0.59.0"
|
| 374 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 375 |
+
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
| 376 |
+
dependencies = [
|
| 377 |
+
"windows-targets",
|
| 378 |
+
]
|
| 379 |
+
|
| 380 |
+
[[package]]
|
| 381 |
+
name = "windows-targets"
|
| 382 |
+
version = "0.52.6"
|
| 383 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 384 |
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
| 385 |
+
dependencies = [
|
| 386 |
+
"windows_aarch64_gnullvm",
|
| 387 |
+
"windows_aarch64_msvc",
|
| 388 |
+
"windows_i686_gnu",
|
| 389 |
+
"windows_i686_gnullvm",
|
| 390 |
+
"windows_i686_msvc",
|
| 391 |
+
"windows_x86_64_gnu",
|
| 392 |
+
"windows_x86_64_gnullvm",
|
| 393 |
+
"windows_x86_64_msvc",
|
| 394 |
+
]
|
| 395 |
+
|
| 396 |
+
[[package]]
|
| 397 |
+
name = "windows_aarch64_gnullvm"
|
| 398 |
+
version = "0.52.6"
|
| 399 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 400 |
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
| 401 |
+
|
| 402 |
+
[[package]]
|
| 403 |
+
name = "windows_aarch64_msvc"
|
| 404 |
+
version = "0.52.6"
|
| 405 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 406 |
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
| 407 |
+
|
| 408 |
+
[[package]]
|
| 409 |
+
name = "windows_i686_gnu"
|
| 410 |
+
version = "0.52.6"
|
| 411 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 412 |
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
| 413 |
+
|
| 414 |
+
[[package]]
|
| 415 |
+
name = "windows_i686_gnullvm"
|
| 416 |
+
version = "0.52.6"
|
| 417 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 418 |
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
| 419 |
+
|
| 420 |
+
[[package]]
|
| 421 |
+
name = "windows_i686_msvc"
|
| 422 |
+
version = "0.52.6"
|
| 423 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 424 |
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
| 425 |
+
|
| 426 |
+
[[package]]
|
| 427 |
+
name = "windows_x86_64_gnu"
|
| 428 |
+
version = "0.52.6"
|
| 429 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 430 |
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
| 431 |
+
|
| 432 |
+
[[package]]
|
| 433 |
+
name = "windows_x86_64_gnullvm"
|
| 434 |
+
version = "0.52.6"
|
| 435 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 436 |
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
| 437 |
+
|
| 438 |
+
[[package]]
|
| 439 |
+
name = "windows_x86_64_msvc"
|
| 440 |
+
version = "0.52.6"
|
| 441 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 442 |
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
| 443 |
+
|
| 444 |
+
[[package]]
|
| 445 |
+
name = "zerocopy"
|
| 446 |
+
version = "0.8.26"
|
| 447 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 448 |
+
checksum = "1039dd0d3c310cf05de012d8a39ff557cb0d23087fd44cad61df08fc31907a2f"
|
| 449 |
+
dependencies = [
|
| 450 |
+
"zerocopy-derive",
|
| 451 |
+
]
|
| 452 |
+
|
| 453 |
+
[[package]]
|
| 454 |
+
name = "zerocopy-derive"
|
| 455 |
+
version = "0.8.26"
|
| 456 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 457 |
+
checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181"
|
| 458 |
+
dependencies = [
|
| 459 |
+
"proc-macro2",
|
| 460 |
+
"quote",
|
| 461 |
+
"syn",
|
| 462 |
+
]
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/Cargo.toml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[workspace]
|
| 2 |
+
resolver = "1"
|
| 3 |
+
members = [
|
| 4 |
+
"crates/core_simd",
|
| 5 |
+
"crates/std_float",
|
| 6 |
+
"crates/test_helpers",
|
| 7 |
+
]
|
| 8 |
+
|
| 9 |
+
[profile.test.package."*"]
|
| 10 |
+
opt-level = 2
|
| 11 |
+
|
| 12 |
+
[profile.test.package.test_helpers]
|
| 13 |
+
opt-level = 2
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/Cross.toml
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build.env]
|
| 2 |
+
passthrough = ["PROPTEST_CASES"]
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/LICENSE-APACHE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/LICENSE-MIT
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2020 The Rust Project Developers
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 4 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 5 |
+
in the Software without restriction, including without limitation the rights
|
| 6 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 7 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 8 |
+
furnished to do so, subject to the following conditions:
|
| 9 |
+
|
| 10 |
+
The above copyright notice and this permission notice shall be included in all
|
| 11 |
+
copies or substantial portions of the Software.
|
| 12 |
+
|
| 13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 16 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 17 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 18 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 19 |
+
SOFTWARE.
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# The Rust standard library's portable SIMD API
|
| 2 |
+

|
| 3 |
+
|
| 4 |
+
Code repository for the [Portable SIMD Project Group](https://github.com/rust-lang/project-portable-simd).
|
| 5 |
+
Please refer to [CONTRIBUTING.md](./CONTRIBUTING.md) for our contributing guidelines.
|
| 6 |
+
|
| 7 |
+
The docs for this crate are published from the main branch.
|
| 8 |
+
You can [read them here][docs].
|
| 9 |
+
|
| 10 |
+
If you have questions about SIMD, we have begun writing a [guide][simd-guide].
|
| 11 |
+
We can also be found on [Zulip][zulip-project-portable-simd].
|
| 12 |
+
|
| 13 |
+
If you are interested in support for a specific architecture, you may want [stdarch] instead.
|
| 14 |
+
|
| 15 |
+
## Hello World
|
| 16 |
+
|
| 17 |
+
Now we're gonna dip our toes into this world with a small SIMD "Hello, World!" example. Make sure your compiler is up to date and using `nightly`. We can do that by running
|
| 18 |
+
|
| 19 |
+
```bash
|
| 20 |
+
rustup update -- nightly
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
or by setting up `rustup default nightly` or else with `cargo +nightly {build,test,run}`. After updating, run
|
| 24 |
+
```bash
|
| 25 |
+
cargo new hellosimd
|
| 26 |
+
```
|
| 27 |
+
to create a new crate. Finally write this in `src/main.rs`:
|
| 28 |
+
```rust
|
| 29 |
+
#![feature(portable_simd)]
|
| 30 |
+
use std::simd::f32x4;
|
| 31 |
+
fn main() {
|
| 32 |
+
let a = f32x4::splat(10.0);
|
| 33 |
+
let b = f32x4::from_array([1.0, 2.0, 3.0, 4.0]);
|
| 34 |
+
println!("{:?}", a + b);
|
| 35 |
+
}
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
Explanation: We construct our SIMD vectors with methods like `splat` or `from_array`. Next, we can use operators like `+` on them, and the appropriate SIMD instructions will be carried out. When we run `cargo run` you should get `[11.0, 12.0, 13.0, 14.0]`.
|
| 39 |
+
|
| 40 |
+
## Supported vectors
|
| 41 |
+
|
| 42 |
+
Currently, vectors may have up to 64 elements, but aliases are provided only up to 512-bit vectors.
|
| 43 |
+
|
| 44 |
+
Depending on the size of the primitive type, the number of lanes the vector will have varies. For example, 128-bit vectors have four `f32` lanes and two `f64` lanes.
|
| 45 |
+
|
| 46 |
+
The supported element types are as follows:
|
| 47 |
+
* **Floating Point:** `f32`, `f64`
|
| 48 |
+
* **Signed Integers:** `i8`, `i16`, `i32`, `i64`, `isize` (`i128` excluded)
|
| 49 |
+
* **Unsigned Integers:** `u8`, `u16`, `u32`, `u64`, `usize` (`u128` excluded)
|
| 50 |
+
* **Pointers:** `*const T` and `*mut T` (zero-sized metadata only)
|
| 51 |
+
* **Masks:** 8-bit, 16-bit, 32-bit, 64-bit, and `usize`-sized masks
|
| 52 |
+
|
| 53 |
+
Floating point, signed integers, unsigned integers, and pointers are the [primitive types](https://doc.rust-lang.org/core/primitive/index.html) you're already used to.
|
| 54 |
+
The mask types have elements that are "truthy" values, like `bool`, but have an unspecified layout because different architectures prefer different layouts for mask types.
|
| 55 |
+
|
| 56 |
+
[simd-guide]: ./beginners-guide.md
|
| 57 |
+
[zulip-project-portable-simd]: https://rust-lang.zulipchat.com/#narrow/stream/257879-project-portable-simd
|
| 58 |
+
[stdarch]: https://github.com/rust-lang/stdarch
|
| 59 |
+
[docs]: https://rust-lang.github.io/portable-simd/core_simd
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/beginners-guide.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Beginner's Guide To SIMD
|
| 3 |
+
|
| 4 |
+
Hello and welcome to our SIMD basics guide!
|
| 5 |
+
|
| 6 |
+
Because SIMD is a subject that many programmers haven't worked with before, we thought that it's best to outline some terms and other basics for you to get started with.
|
| 7 |
+
|
| 8 |
+
## Quick Background
|
| 9 |
+
|
| 10 |
+
**SIMD** stands for *Single Instruction, Multiple Data*. In other words, SIMD is when the CPU performs a single action on more than one logical piece of data at the same time. Instead of adding two registers that each contain one `f32` value and getting an `f32` as the result, you might add two registers that each contain `f32x4` (128 bits of data) and then you get an `f32x4` as the output.
|
| 11 |
+
|
| 12 |
+
This might seem a tiny bit weird at first, but there's a good reason for it. Back in the day, as CPUs got faster and faster, eventually they got so fast that the CPU would just melt itself. The heat management (heat sinks, fans, etc) simply couldn't keep up with how much electricity was going through the metal. Two main strategies were developed to help get around the limits of physics.
|
| 13 |
+
* One of them you're probably familiar with: Multi-core processors. By giving a processor more than one core, each core can do its own work, and because they're physically distant (at least on the CPU's scale) the heat can still be managed. Unfortunately, not all tasks can just be split up across cores in an efficient way.
|
| 14 |
+
* The second strategy is SIMD. If you can't make the register go any faster, you can still make the register *wider*. This lets you process more data at a time, which is *almost* as good as just having a faster CPU. As with multi-core programming, SIMD doesn't fit every kind of task, so you have to know when it will improve your program.
|
| 15 |
+
|
| 16 |
+
## Terms
|
| 17 |
+
|
| 18 |
+
SIMD has a few special vocabulary terms you should know:
|
| 19 |
+
|
| 20 |
+
* **Vector:** A SIMD value is called a vector. This shouldn't be confused with the `Vec<T>` type. A SIMD vector has a fixed size, known at compile time. All of the elements within the vector are of the same type. This makes vectors *similar to* arrays. One difference is that a vector is generally aligned to its *entire* size (eg: 16 bytes, 32 bytes, etc), not just the size of an individual element. Sometimes vector data is called "packed" data.
|
| 21 |
+
|
| 22 |
+
* **Vectorize**: An operation that uses SIMD instructions to operate over a vector is often referred to as "vectorized".
|
| 23 |
+
|
| 24 |
+
* **Autovectorization**: Also known as _implicit vectorization_. This is when a compiler can automatically recognize a situation where scalar instructions may be replaced with SIMD instructions, and use those instead.
|
| 25 |
+
|
| 26 |
+
* **Scalar:** "Scalar" in mathematical contexts refers to values that can be represented as a single element, mostly numbers like 6, 3.14, or -2. It can also be used to describe "scalar operations" that use strictly scalar values, like addition. This term is mostly used to differentiate between vectorized operations that use SIMD instructions and scalar operations that don't.
|
| 27 |
+
|
| 28 |
+
* **Lane:** A single element position within a vector is called a lane. If you have `N` lanes available then they're numbered from `0` to `N-1` when referring to them, again like an array. The biggest difference between an array element and a vector lane is that in general it is *relatively costly* to access an individual lane value. On most architectures, the vector has to be pushed out of the SIMD register onto the stack, then an individual lane is accessed while it's on the stack (and possibly the stack value is read back into a register). For this reason, when working with SIMD you should avoid reading or writing the value of an individual lane during hot loops.
|
| 29 |
+
|
| 30 |
+
* **Bit Widths:** When talking about SIMD, the bit widths used are the bit size of the vectors involved, *not* the individual elements. So "128-bit SIMD" has 128-bit vectors, and that might be `f32x4`, `i32x4`, `i16x8`, or other variations. While 128-bit SIMD is the most common, there's also 64-bit, 256-bit, and even 512-bit on the newest CPUs.
|
| 31 |
+
|
| 32 |
+
* **Vector Register:** The extra-wide registers that are used for SIMD operations are commonly called vector registers, though you may also see "SIMD registers", vendor names for specific features, or even "floating-point register" as it is common for the same registers to be used with both scalar and vectorized floating-point operations.
|
| 33 |
+
|
| 34 |
+
* **Vertical:** When an operation is "vertical", each lane processes individually without regard to the other lanes in the same vector. For example, a "vertical add" between two vectors would add lane 0 in `a` with lane 0 in `b`, with the total in lane 0 of `out`, and then the same thing for lanes 1, 2, etc. Most SIMD operations are vertical operations, so if your problem is a vertical problem then you can probably solve it with SIMD.
|
| 35 |
+
|
| 36 |
+
* **Reducing/Reduce:** When an operation is "reducing" (functions named `reduce_*`), the lanes within a single vector are merged using some operation such as addition, returning the merged value as a scalar. For instance, a reducing add would return the sum of all the lanes' values.
|
| 37 |
+
|
| 38 |
+
* **Target Feature:** Rust calls a CPU architecture extension a `target_feature`. Proper SIMD requires various CPU extensions to be enabled (details below). Don't confuse this with `feature`, which is a Cargo crate concept.
|
| 39 |
+
|
| 40 |
+
## Target Features
|
| 41 |
+
|
| 42 |
+
When using SIMD, you should be familiar with the CPU feature set that you're targeting.
|
| 43 |
+
|
| 44 |
+
On `arm` and `aarch64` it's fairly simple. There's just one CPU feature that controls if SIMD is available: `neon` (or "NEON", all caps, as the ARM docs often put it). Neon registers can be used as 64-bit or 128-bit. When doing 128-bit operations it just uses two 64-bit registers as a single 128-bit register.
|
| 45 |
+
|
| 46 |
+
> By default, the `aarch64`, `arm`, and `thumb` Rust targets generally do not enable `neon` unless it's in the target string.
|
| 47 |
+
|
| 48 |
+
On `x86` and `x86_64` it's slightly more complicated. The SIMD support is split into many levels:
|
| 49 |
+
* 128-bit: `sse`, `sse2`, `sse3`, `ssse3` (not a typo!), `sse4.1`, `sse4.2`, `sse4a` (AMD only)
|
| 50 |
+
* 256-bit (mostly): `avx`, `avx2`, `fma`
|
| 51 |
+
* 512-bit (mostly): a *wide* range of `avx512` variations
|
| 52 |
+
|
| 53 |
+
The list notes the bit widths available at each feature level, though the operations of the more advanced features can generally be used with the smaller register sizes as well. For example, new operations introduced in `avx` generally have a 128-bit form as well as a 256-bit form. This means that even if you only do 128-bit work you can still benefit from the later feature levels.
|
| 54 |
+
|
| 55 |
+
> By default, the `i686` and `x86_64` Rust targets enable `sse` and `sse2`.
|
| 56 |
+
|
| 57 |
+
### Selecting Additional Target Features
|
| 58 |
+
|
| 59 |
+
If you want to enable support for a target feature within your build, generally you should use a [target-feature](https://rust-lang.github.io/packed_simd/perf-guide/target-feature/rustflags.html#target-feature) setting within you `RUSTFLAGS` setting.
|
| 60 |
+
|
| 61 |
+
If you know that you're targeting a specific CPU you can instead use the [target-cpu](https://rust-lang.github.io/packed_simd/perf-guide/target-feature/rustflags.html#target-cpu) flag and the compiler will enable the correct set of features for that CPU.
|
| 62 |
+
|
| 63 |
+
The [Steam Hardware Survey](https://store.steampowered.com/hwsurvey/Steam-Hardware-Software-Survey-Welcome-to-Steam) is one of the few places with data on how common various CPU features are. The dataset is limited to "the kinds of computers owned by people who play computer games", so the info only covers `x86`/`x86_64`, and it also probably skews to slightly higher quality computers than average. Still, we can see that the `sse` levels have very high support, `avx` and `avx2` are quite common as well, and the `avx-512` family is still so early in adoption you can barely find it in consumer grade stuff.
|
| 64 |
+
|
| 65 |
+
## Running a program compiled for a CPU feature level that the CPU doesn't support is automatic undefined behavior.
|
| 66 |
+
|
| 67 |
+
This means that if you build your program with `avx` support enabled and run it on a CPU without `avx` support, it's **instantly** undefined behavior.
|
| 68 |
+
|
| 69 |
+
Even without an `unsafe` block in sight.
|
| 70 |
+
|
| 71 |
+
This is no bug in Rust, or soundness hole in the type system. You just plain can't make a CPU do what it doesn't know how to do.
|
| 72 |
+
|
| 73 |
+
This is why the various Rust targets *don't* enable many CPU feature flags by default: requiring a more advanced CPU makes the final binary *less* portable.
|
| 74 |
+
|
| 75 |
+
So please select an appropriate CPU feature level when building your programs.
|
| 76 |
+
|
| 77 |
+
## Size, Alignment, and Unsafe Code
|
| 78 |
+
|
| 79 |
+
Most of the portable SIMD API is designed to allow the user to gloss over the details of different architectures and avoid using unsafe code. However, there are plenty of reasons to want to use unsafe code with these SIMD types, such as using an intrinsic function from `core::arch` to further accelerate particularly specialized SIMD operations on a given platform, while still using the portable API elsewhere. For these cases, there are some rules to keep in mind.
|
| 80 |
+
|
| 81 |
+
Fortunately, most SIMD types have a fairly predictable size. `i32x4` is bit-equivalent to `[i32; 4]` and so can be bitcast to it, e.g. using [`mem::transmute`], though the API usually offers a safe cast you can use instead.
|
| 82 |
+
|
| 83 |
+
However, this is not the same as alignment. Computer architectures generally prefer aligned accesses, especially when moving data between memory and vector registers, and while some support specialized operations that can bend the rules to help with this, unaligned access is still typically slow, or even undefined behavior. In addition, different architectures can require different alignments when interacting with their native SIMD types. For this reason, any `#[repr(simd)]` type has a non-portable alignment. If it is necessary to directly interact with the alignment of these types, it should be via [`align_of`].
|
| 84 |
+
|
| 85 |
+
When working with slices, data correctly aligned for SIMD can be acquired using the [`as_simd`] and [`as_simd_mut`] methods of the slice primitive.
|
| 86 |
+
|
| 87 |
+
[`mem::transmute`]: https://doc.rust-lang.org/core/mem/fn.transmute.html
|
| 88 |
+
[`align_of`]: https://doc.rust-lang.org/core/mem/fn.align_of.html
|
| 89 |
+
[`as_simd`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.as_simd
|
| 90 |
+
[`as_simd_mut`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.as_simd_mut
|
| 91 |
+
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/rust-toolchain.toml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[toolchain]
|
| 2 |
+
channel = "nightly-2026-01-26"
|
| 3 |
+
components = ["rustfmt", "clippy", "miri", "rust-src"]
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/portable-simd/subtree-sync.sh
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
set -eou pipefail
|
| 4 |
+
|
| 5 |
+
git fetch origin
|
| 6 |
+
pushd $2
|
| 7 |
+
git fetch origin
|
| 8 |
+
popd
|
| 9 |
+
|
| 10 |
+
if [ "$(git rev-parse --show-prefix)" != "" ]; then
|
| 11 |
+
echo "Run this script from the git root" >&2
|
| 12 |
+
exit 1
|
| 13 |
+
fi
|
| 14 |
+
|
| 15 |
+
if [ "$(git rev-parse HEAD)" != "$(git rev-parse origin/master)" ]; then
|
| 16 |
+
echo "$(pwd) is not at origin/master" >&2
|
| 17 |
+
exit 1
|
| 18 |
+
fi
|
| 19 |
+
|
| 20 |
+
if [ ! -f library/portable-simd/git-subtree.sh ]; then
|
| 21 |
+
curl -sS https://raw.githubusercontent.com/bjorn3/git/tqc-subtree-portable/contrib/subtree/git-subtree.sh -o library/portable-simd/git-subtree.sh
|
| 22 |
+
chmod +x library/portable-simd/git-subtree.sh
|
| 23 |
+
fi
|
| 24 |
+
|
| 25 |
+
today=$(date +%Y-%m-%d)
|
| 26 |
+
|
| 27 |
+
case $1 in
|
| 28 |
+
"push")
|
| 29 |
+
upstream=rust-upstream-$today
|
| 30 |
+
merge=sync-from-rust-$today
|
| 31 |
+
|
| 32 |
+
pushd $2
|
| 33 |
+
git checkout master
|
| 34 |
+
git pull
|
| 35 |
+
popd
|
| 36 |
+
|
| 37 |
+
library/portable-simd/git-subtree.sh push -P library/portable-simd $2 $upstream
|
| 38 |
+
|
| 39 |
+
pushd $2
|
| 40 |
+
git checkout -B $merge origin/master
|
| 41 |
+
git merge $upstream
|
| 42 |
+
popd
|
| 43 |
+
echo "Branch \`$merge\` created in \`$2\`. You may need to resolve merge conflicts."
|
| 44 |
+
;;
|
| 45 |
+
"pull")
|
| 46 |
+
branch=sync-from-portable-simd-$today
|
| 47 |
+
|
| 48 |
+
git checkout -B $branch
|
| 49 |
+
echo "Creating branch \`$branch\`... You may need to resolve merge conflicts."
|
| 50 |
+
library/portable-simd/git-subtree.sh pull -P library/portable-simd $2 origin/master
|
| 51 |
+
;;
|
| 52 |
+
esac
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/proc_macro/Cargo.toml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "proc_macro"
|
| 3 |
+
version = "0.0.0"
|
| 4 |
+
edition = "2024"
|
| 5 |
+
|
| 6 |
+
[dependencies]
|
| 7 |
+
std = { path = "../std" }
|
| 8 |
+
# Workaround: when documenting this crate rustdoc will try to load crate named
|
| 9 |
+
# `core` when resolving doc links. Without this line a different `core` will be
|
| 10 |
+
# loaded from sysroot causing duplicate lang items and other similar errors.
|
| 11 |
+
core = { path = "../core" }
|
| 12 |
+
rustc-literal-escaper = { version = "0.0.7", features = ["rustc-dep-of-std"] }
|
| 13 |
+
|
| 14 |
+
[features]
|
| 15 |
+
default = ["rustc-dep-of-std"]
|
| 16 |
+
rustc-dep-of-std = []
|
| 17 |
+
|
| 18 |
+
[lints.rust]
|
| 19 |
+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(bootstrap)'] }
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/profiler_builtins/Cargo.toml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "profiler_builtins"
|
| 3 |
+
version = "0.0.0"
|
| 4 |
+
edition = "2024"
|
| 5 |
+
|
| 6 |
+
[lib]
|
| 7 |
+
test = false
|
| 8 |
+
bench = false
|
| 9 |
+
doc = false
|
| 10 |
+
|
| 11 |
+
[dependencies]
|
| 12 |
+
|
| 13 |
+
[build-dependencies]
|
| 14 |
+
# Pinned so `cargo update` bumps don't cause breakage
|
| 15 |
+
cc = "=1.2.0"
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/profiler_builtins/build.rs
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//! Compiles the profiler part of the `compiler-rt` library.
|
| 2 |
+
//!
|
| 3 |
+
//! Loosely based on:
|
| 4 |
+
//! - LLVM's `compiler-rt/lib/profile/CMakeLists.txt`
|
| 5 |
+
//! - <https://github.com/rust-lang/compiler-builtins/blob/master/build.rs>.
|
| 6 |
+
|
| 7 |
+
use std::env;
|
| 8 |
+
use std::path::PathBuf;
|
| 9 |
+
|
| 10 |
+
fn main() {
|
| 11 |
+
if let Ok(rt) = tracked_env_var("LLVM_PROFILER_RT_LIB") {
|
| 12 |
+
let rt = PathBuf::from(rt);
|
| 13 |
+
if let Some(lib) = rt.file_name() {
|
| 14 |
+
if let Some(dir) = rt.parent() {
|
| 15 |
+
println!("cargo::rustc-link-search=native={}", dir.display());
|
| 16 |
+
}
|
| 17 |
+
println!("cargo::rustc-link-lib=static:+verbatim={}", lib.to_str().unwrap());
|
| 18 |
+
return;
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
let target_os = env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS was not set");
|
| 23 |
+
let target_env = env::var("CARGO_CFG_TARGET_ENV").expect("CARGO_CFG_TARGET_ENV was not set");
|
| 24 |
+
let cfg = &mut cc::Build::new();
|
| 25 |
+
|
| 26 |
+
let profile_sources = vec![
|
| 27 |
+
// tidy-alphabetical-start
|
| 28 |
+
"GCDAProfiling.c",
|
| 29 |
+
"InstrProfiling.c",
|
| 30 |
+
"InstrProfilingBuffer.c",
|
| 31 |
+
"InstrProfilingFile.c",
|
| 32 |
+
"InstrProfilingInternal.c",
|
| 33 |
+
"InstrProfilingMerge.c",
|
| 34 |
+
"InstrProfilingMergeFile.c",
|
| 35 |
+
"InstrProfilingNameVar.c",
|
| 36 |
+
"InstrProfilingPlatformAIX.c",
|
| 37 |
+
"InstrProfilingPlatformDarwin.c",
|
| 38 |
+
"InstrProfilingPlatformFuchsia.c",
|
| 39 |
+
"InstrProfilingPlatformLinux.c",
|
| 40 |
+
"InstrProfilingPlatformOther.c",
|
| 41 |
+
"InstrProfilingPlatformWindows.c",
|
| 42 |
+
"InstrProfilingRuntime.cpp",
|
| 43 |
+
"InstrProfilingUtil.c",
|
| 44 |
+
"InstrProfilingValue.c",
|
| 45 |
+
"InstrProfilingVersionVar.c",
|
| 46 |
+
"InstrProfilingWriter.c",
|
| 47 |
+
"WindowsMMap.c",
|
| 48 |
+
// tidy-alphabetical-end
|
| 49 |
+
];
|
| 50 |
+
|
| 51 |
+
if target_env == "msvc" {
|
| 52 |
+
// Don't pull in extra libraries on MSVC
|
| 53 |
+
cfg.flag("/Zl");
|
| 54 |
+
cfg.define("strdup", Some("_strdup"));
|
| 55 |
+
cfg.define("open", Some("_open"));
|
| 56 |
+
cfg.define("fdopen", Some("_fdopen"));
|
| 57 |
+
cfg.define("getpid", Some("_getpid"));
|
| 58 |
+
cfg.define("fileno", Some("_fileno"));
|
| 59 |
+
} else {
|
| 60 |
+
// Turn off various features of gcc and such, mostly copying
|
| 61 |
+
// compiler-rt's build system already
|
| 62 |
+
cfg.flag("-fno-builtin");
|
| 63 |
+
cfg.flag("-fomit-frame-pointer");
|
| 64 |
+
cfg.define("VISIBILITY_HIDDEN", None);
|
| 65 |
+
if target_os != "windows" {
|
| 66 |
+
cfg.flag("-fvisibility=hidden");
|
| 67 |
+
cfg.define("COMPILER_RT_HAS_UNAME", Some("1"));
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
// Assume that the Unixes we are building this for have fnctl() available
|
| 72 |
+
if env::var_os("CARGO_CFG_UNIX").is_some() {
|
| 73 |
+
cfg.define("COMPILER_RT_HAS_FCNTL_LCK", Some("1"));
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
// This should be a pretty good heuristic for when to set
|
| 77 |
+
// COMPILER_RT_HAS_ATOMICS
|
| 78 |
+
if env::var_os("CARGO_CFG_TARGET_HAS_ATOMIC")
|
| 79 |
+
.map(|features| features.to_string_lossy().to_lowercase().contains("ptr"))
|
| 80 |
+
.unwrap_or(false)
|
| 81 |
+
{
|
| 82 |
+
cfg.define("COMPILER_RT_HAS_ATOMICS", Some("1"));
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
// Get the LLVM `compiler-rt` directory from bootstrap.
|
| 86 |
+
let root = PathBuf::from(tracked_env_var_or_fallback(
|
| 87 |
+
"RUST_COMPILER_RT_FOR_PROFILER",
|
| 88 |
+
"../../src/llvm-project/compiler-rt",
|
| 89 |
+
));
|
| 90 |
+
|
| 91 |
+
let src_root = root.join("lib").join("profile");
|
| 92 |
+
assert!(src_root.exists(), "profiler runtime source directory not found: {src_root:?}");
|
| 93 |
+
println!("cargo::rerun-if-changed={}", src_root.display());
|
| 94 |
+
for file in profile_sources {
|
| 95 |
+
cfg.file(src_root.join(file));
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
let include = root.join("include");
|
| 99 |
+
println!("cargo::rerun-if-changed={}", include.display());
|
| 100 |
+
cfg.include(include);
|
| 101 |
+
|
| 102 |
+
cfg.warnings(false);
|
| 103 |
+
cfg.compile("profiler-rt");
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
fn tracked_env_var(key: &str) -> Result<String, env::VarError> {
|
| 107 |
+
println!("cargo::rerun-if-env-changed={key}");
|
| 108 |
+
env::var(key)
|
| 109 |
+
}
|
| 110 |
+
fn tracked_env_var_or_fallback(key: &str, fallback: &str) -> String {
|
| 111 |
+
tracked_env_var(key).unwrap_or_else(|_| {
|
| 112 |
+
println!("cargo::warning={key} was not set; falling back to {fallback:?}");
|
| 113 |
+
fallback.to_owned()
|
| 114 |
+
})
|
| 115 |
+
}
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rtstartup/rsbegin.rs
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// rsbegin.o and rsend.o are the so called "compiler runtime startup objects".
|
| 2 |
+
// They contain code needed to correctly initialize the compiler runtime.
|
| 3 |
+
//
|
| 4 |
+
// When an executable or dylib image is linked, all user code and libraries are
|
| 5 |
+
// "sandwiched" between these two object files, so code or data from rsbegin.o
|
| 6 |
+
// become first in the respective sections of the image, whereas code and data
|
| 7 |
+
// from rsend.o become the last ones. This effect can be used to place symbols
|
| 8 |
+
// at the beginning or at the end of a section, as well as to insert any required
|
| 9 |
+
// headers or footers.
|
| 10 |
+
//
|
| 11 |
+
// Note that the actual module entry point is located in the C runtime startup
|
| 12 |
+
// object (usually called `crtX.o`), which then invokes initialization callbacks
|
| 13 |
+
// of other runtime components (registered via yet another special image section).
|
| 14 |
+
|
| 15 |
+
#![feature(no_core)]
|
| 16 |
+
#![feature(lang_items)]
|
| 17 |
+
#![feature(auto_traits)]
|
| 18 |
+
#![crate_type = "rlib"]
|
| 19 |
+
#![no_core]
|
| 20 |
+
#![allow(non_camel_case_types)]
|
| 21 |
+
#![allow(internal_features)]
|
| 22 |
+
#![warn(unreachable_pub)]
|
| 23 |
+
|
| 24 |
+
#[lang = "pointee_sized"]
|
| 25 |
+
pub trait PointeeSized {}
|
| 26 |
+
|
| 27 |
+
#[lang = "meta_sized"]
|
| 28 |
+
pub trait MetaSized: PointeeSized {}
|
| 29 |
+
|
| 30 |
+
#[lang = "sized"]
|
| 31 |
+
pub trait Sized: MetaSized {}
|
| 32 |
+
|
| 33 |
+
#[lang = "sync"]
|
| 34 |
+
auto trait Sync {}
|
| 35 |
+
#[lang = "copy"]
|
| 36 |
+
trait Copy {}
|
| 37 |
+
#[lang = "freeze"]
|
| 38 |
+
auto trait Freeze {}
|
| 39 |
+
|
| 40 |
+
impl<T: PointeeSized> Copy for *mut T {}
|
| 41 |
+
|
| 42 |
+
#[lang = "drop_in_place"]
|
| 43 |
+
#[inline]
|
| 44 |
+
#[allow(unconditional_recursion)]
|
| 45 |
+
pub unsafe fn drop_in_place<T: PointeeSized>(to_drop: *mut T) {
|
| 46 |
+
drop_in_place(to_drop);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
// Frame unwind info registration
|
| 50 |
+
//
|
| 51 |
+
// Each module's image contains a frame unwind info section (usually
|
| 52 |
+
// ".eh_frame"). When a module is loaded/unloaded into the process, the
|
| 53 |
+
// unwinder must be informed about the location of this section in memory. The
|
| 54 |
+
// methods of achieving that vary by the platform. On some (e.g., Linux), the
|
| 55 |
+
// unwinder can discover unwind info sections on its own (by dynamically
|
| 56 |
+
// enumerating currently loaded modules via the dl_iterate_phdr() API and
|
| 57 |
+
// finding their ".eh_frame" sections); Others, like Windows, require modules
|
| 58 |
+
// to actively register their unwind info sections via unwinder API.
|
| 59 |
+
#[cfg(all(target_os = "windows", target_arch = "x86", target_env = "gnu"))]
|
| 60 |
+
pub mod eh_frames {
|
| 61 |
+
#[no_mangle]
|
| 62 |
+
#[unsafe(link_section = ".eh_frame")]
|
| 63 |
+
// Marks beginning of the stack frame unwind info section
|
| 64 |
+
pub static __EH_FRAME_BEGIN__: [u8; 0] = [];
|
| 65 |
+
|
| 66 |
+
// Scratch space for unwinder's internal book-keeping.
|
| 67 |
+
// This is defined as `struct object` in $GCC/libgcc/unwind-dw2-fde.h.
|
| 68 |
+
static mut OBJ: [isize; 6] = [0; 6];
|
| 69 |
+
|
| 70 |
+
macro_rules! impl_copy {
|
| 71 |
+
($($t:ty)*) => {
|
| 72 |
+
$(
|
| 73 |
+
impl ::Copy for $t {}
|
| 74 |
+
)*
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
impl_copy! {
|
| 79 |
+
usize u8 u16 u32 u64 u128
|
| 80 |
+
isize i8 i16 i32 i64 i128
|
| 81 |
+
f32 f64
|
| 82 |
+
bool char
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
// Unwind info registration/deregistration routines.
|
| 86 |
+
unsafe extern "C" {
|
| 87 |
+
fn __register_frame_info(eh_frame_begin: *const u8, object: *mut u8);
|
| 88 |
+
fn __deregister_frame_info(eh_frame_begin: *const u8, object: *mut u8);
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
unsafe extern "C" fn init() {
|
| 92 |
+
// register unwind info on module startup
|
| 93 |
+
__register_frame_info(&__EH_FRAME_BEGIN__ as *const u8, &raw mut OBJ as *mut u8);
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
unsafe extern "C" fn uninit() {
|
| 97 |
+
// unregister on shutdown
|
| 98 |
+
__deregister_frame_info(&__EH_FRAME_BEGIN__ as *const u8, &raw mut OBJ as *mut u8);
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
// MinGW-specific init/uninit routine registration
|
| 102 |
+
pub mod mingw_init {
|
| 103 |
+
// MinGW's startup objects (crt0.o / dllcrt0.o) will invoke global constructors in the
|
| 104 |
+
// .ctors and .dtors sections on startup and exit. In the case of DLLs, this is done when
|
| 105 |
+
// the DLL is loaded and unloaded.
|
| 106 |
+
//
|
| 107 |
+
// The linker will sort the sections, which ensures that our callbacks are located at the
|
| 108 |
+
// end of the list. Since constructors are run in reverse order, this ensures that our
|
| 109 |
+
// callbacks are the first and last ones executed.
|
| 110 |
+
|
| 111 |
+
#[unsafe(link_section = ".ctors.65535")] // .ctors.* : C initialization callbacks
|
| 112 |
+
pub static P_INIT: unsafe extern "C" fn() = super::init;
|
| 113 |
+
|
| 114 |
+
#[unsafe(link_section = ".dtors.65535")] // .dtors.* : C termination callbacks
|
| 115 |
+
pub static P_UNINIT: unsafe extern "C" fn() = super::uninit;
|
| 116 |
+
}
|
| 117 |
+
}
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rtstartup/rsend.rs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// See rsbegin.rs for details.
|
| 2 |
+
|
| 3 |
+
#![feature(no_core)]
|
| 4 |
+
#![feature(lang_items)]
|
| 5 |
+
#![feature(auto_traits)]
|
| 6 |
+
#![crate_type = "rlib"]
|
| 7 |
+
#![no_core]
|
| 8 |
+
#![allow(internal_features)]
|
| 9 |
+
#![warn(unreachable_pub)]
|
| 10 |
+
|
| 11 |
+
#[lang = "pointee_sized"]
|
| 12 |
+
pub trait PointeeSized {}
|
| 13 |
+
|
| 14 |
+
#[lang = "meta_sized"]
|
| 15 |
+
pub trait MetaSized: PointeeSized {}
|
| 16 |
+
|
| 17 |
+
#[lang = "sized"]
|
| 18 |
+
pub trait Sized: MetaSized {}
|
| 19 |
+
|
| 20 |
+
#[lang = "sync"]
|
| 21 |
+
trait Sync {}
|
| 22 |
+
impl<T> Sync for T {}
|
| 23 |
+
#[lang = "copy"]
|
| 24 |
+
trait Copy {}
|
| 25 |
+
#[lang = "freeze"]
|
| 26 |
+
auto trait Freeze {}
|
| 27 |
+
|
| 28 |
+
impl<T: PointeeSized> Copy for *mut T {}
|
| 29 |
+
|
| 30 |
+
#[lang = "drop_in_place"]
|
| 31 |
+
#[inline]
|
| 32 |
+
#[allow(unconditional_recursion)]
|
| 33 |
+
pub unsafe fn drop_in_place<T: PointeeSized>(to_drop: *mut T) {
|
| 34 |
+
drop_in_place(to_drop);
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
#[cfg(all(target_os = "windows", target_arch = "x86", target_env = "gnu"))]
|
| 38 |
+
pub mod eh_frames {
|
| 39 |
+
// Terminate the frame unwind info section with a 0 as a sentinel;
|
| 40 |
+
// this would be the 'length' field in a real FDE.
|
| 41 |
+
#[no_mangle]
|
| 42 |
+
#[unsafe(link_section = ".eh_frame")]
|
| 43 |
+
pub static __EH_FRAME_END__: u32 = 0;
|
| 44 |
+
}
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-alloc/Cargo.toml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "rustc-std-workspace-alloc"
|
| 3 |
+
version = "1.99.0"
|
| 4 |
+
license = 'MIT OR Apache-2.0'
|
| 5 |
+
description = """
|
| 6 |
+
Hack for the compiler's own build system
|
| 7 |
+
"""
|
| 8 |
+
edition = "2024"
|
| 9 |
+
|
| 10 |
+
[lib]
|
| 11 |
+
path = "lib.rs"
|
| 12 |
+
test = false
|
| 13 |
+
bench = false
|
| 14 |
+
doc = false
|
| 15 |
+
|
| 16 |
+
[dependencies]
|
| 17 |
+
alloc = { path = "../alloc" }
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-alloc/lib.rs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#![feature(no_core)]
|
| 2 |
+
#![no_core]
|
| 3 |
+
|
| 4 |
+
// See rustc-std-workspace-core for why this crate is needed.
|
| 5 |
+
|
| 6 |
+
// Rename the crate to avoid conflicting with the alloc module in alloc.
|
| 7 |
+
extern crate alloc as foo;
|
| 8 |
+
|
| 9 |
+
pub use foo::*;
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-core/Cargo.toml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cargo-features = ["public-dependency"]
|
| 2 |
+
|
| 3 |
+
[package]
|
| 4 |
+
name = "rustc-std-workspace-core"
|
| 5 |
+
version = "1.99.0"
|
| 6 |
+
license = 'MIT OR Apache-2.0'
|
| 7 |
+
description = """
|
| 8 |
+
Hack for the compiler's own build system
|
| 9 |
+
"""
|
| 10 |
+
edition = "2024"
|
| 11 |
+
|
| 12 |
+
[lib]
|
| 13 |
+
path = "lib.rs"
|
| 14 |
+
test = false
|
| 15 |
+
bench = false
|
| 16 |
+
doc = false
|
| 17 |
+
|
| 18 |
+
[dependencies]
|
| 19 |
+
core = { path = "../core", public = true }
|
| 20 |
+
compiler_builtins = { path = "../compiler-builtins/compiler-builtins", features = [
|
| 21 |
+
"compiler-builtins",
|
| 22 |
+
] }
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-core/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# The `rustc-std-workspace-core` crate
|
| 2 |
+
|
| 3 |
+
This crate is a shim and empty crate which simply depends on `libcore` and
|
| 4 |
+
reexports all of its contents. The crate is the crux of empowering the standard
|
| 5 |
+
library to depend on crates from crates.io
|
| 6 |
+
|
| 7 |
+
Crates on crates.io that the standard library depend on need to depend on the
|
| 8 |
+
`rustc-std-workspace-core` crate from crates.io, which is empty. We use
|
| 9 |
+
`[patch]` to override it to this crate in this repository. As a result, crates
|
| 10 |
+
on crates.io will draw a dependency edge to `libcore`, the version defined in
|
| 11 |
+
this repository. That should draw all the dependency edges to ensure Cargo
|
| 12 |
+
builds crates successfully!
|
| 13 |
+
|
| 14 |
+
`rustc-std-workspace-core` also ensures `compiler-builtins` is in the crate
|
| 15 |
+
graph. This crate is used by other crates in `library/`, other than `std` and
|
| 16 |
+
`alloc`, so the `compiler-builtins` setup only needs to be configured in a
|
| 17 |
+
single place. (Otherwise these crates would just need to depend on `core` and
|
| 18 |
+
`compiler-builtins` separately.)
|
| 19 |
+
|
| 20 |
+
Note that crates on crates.io need to depend on this crate with the name `core`
|
| 21 |
+
for everything to work correctly. To do that they can use:
|
| 22 |
+
|
| 23 |
+
```toml
|
| 24 |
+
core = { version = "1.0.0", optional = true, package = 'rustc-std-workspace-core' }
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
Through the use of the `package` key the crate is renamed to `core`, meaning
|
| 28 |
+
it'll look like
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
--extern core=.../librustc_std_workspace_core-XXXXXXX.rlib
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
when Cargo invokes the compiler, satisfying the implicit `extern crate core`
|
| 35 |
+
directive injected by the compiler.
|
| 36 |
+
|
| 37 |
+
The sources for the crates.io version can be found in
|
| 38 |
+
[`src/rustc-std-workspace`](../../src/rustc-std-workspace).
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-core/lib.rs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#![feature(no_core)]
|
| 2 |
+
#![no_core]
|
| 3 |
+
|
| 4 |
+
pub use core::*;
|
| 5 |
+
|
| 6 |
+
// Crate must be brought into scope so it appears in the crate graph for anything that
|
| 7 |
+
// depends on `rustc-std-workspace-core`.
|
| 8 |
+
use compiler_builtins as _;
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-std/Cargo.toml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "rustc-std-workspace-std"
|
| 3 |
+
version = "1.99.0"
|
| 4 |
+
license = 'MIT OR Apache-2.0'
|
| 5 |
+
description = """
|
| 6 |
+
Hack for the compiler's own build system
|
| 7 |
+
"""
|
| 8 |
+
edition = "2024"
|
| 9 |
+
|
| 10 |
+
[lib]
|
| 11 |
+
path = "lib.rs"
|
| 12 |
+
test = false
|
| 13 |
+
bench = false
|
| 14 |
+
doc = false
|
| 15 |
+
|
| 16 |
+
[dependencies]
|
| 17 |
+
std = { path = "../std" }
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-std/README.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# The `rustc-std-workspace-std` crate
|
| 2 |
+
|
| 3 |
+
See documentation for the `rustc-std-workspace-core` crate.
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/rustc-std-workspace-std/lib.rs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#![feature(restricted_std)]
|
| 2 |
+
pub use std::*;
|
rust/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust/library/std/Cargo.toml
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cargo-features = ["public-dependency"]
|
| 2 |
+
|
| 3 |
+
[package]
|
| 4 |
+
name = "std"
|
| 5 |
+
version = "0.0.0"
|
| 6 |
+
license = "MIT OR Apache-2.0"
|
| 7 |
+
repository = "https://github.com/rust-lang/rust.git"
|
| 8 |
+
description = "The Rust Standard Library"
|
| 9 |
+
edition = "2024"
|
| 10 |
+
autobenches = false
|
| 11 |
+
|
| 12 |
+
[lib]
|
| 13 |
+
crate-type = ["dylib", "rlib"]
|
| 14 |
+
|
| 15 |
+
[dependencies]
|
| 16 |
+
alloc = { path = "../alloc", public = true }
|
| 17 |
+
# std no longer uses cfg-if directly, but the included copy of backtrace does.
|
| 18 |
+
cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] }
|
| 19 |
+
panic_unwind = { path = "../panic_unwind", optional = true }
|
| 20 |
+
panic_abort = { path = "../panic_abort" }
|
| 21 |
+
core = { path = "../core", public = true }
|
| 22 |
+
unwind = { path = "../unwind" }
|
| 23 |
+
hashbrown = { version = "0.16.1", default-features = false, features = [
|
| 24 |
+
'rustc-dep-of-std',
|
| 25 |
+
] }
|
| 26 |
+
std_detect = { path = "../std_detect", public = true }
|
| 27 |
+
|
| 28 |
+
# Dependencies of the `backtrace` crate
|
| 29 |
+
rustc-demangle = { version = "0.1.27", features = ['rustc-dep-of-std'] }
|
| 30 |
+
|
| 31 |
+
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
|
| 32 |
+
miniz_oxide = { version = "0.8.0", optional = true, default-features = false }
|
| 33 |
+
addr2line = { version = "0.25.0", optional = true, default-features = false }
|
| 34 |
+
|
| 35 |
+
[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
|
| 36 |
+
libc = { version = "0.2.178", default-features = false, features = [
|
| 37 |
+
'rustc-dep-of-std',
|
| 38 |
+
], public = true }
|
| 39 |
+
|
| 40 |
+
[target.'cfg(all(not(target_os = "aix"), not(all(windows, target_env = "msvc", not(target_vendor = "uwp")))))'.dependencies]
|
| 41 |
+
object = { version = "0.37.1", default-features = false, optional = true, features = [
|
| 42 |
+
'read_core',
|
| 43 |
+
'elf',
|
| 44 |
+
'macho',
|
| 45 |
+
'pe',
|
| 46 |
+
'unaligned',
|
| 47 |
+
'archive',
|
| 48 |
+
] }
|
| 49 |
+
|
| 50 |
+
[target.'cfg(target_os = "aix")'.dependencies]
|
| 51 |
+
object = { version = "0.37.1", default-features = false, optional = true, features = [
|
| 52 |
+
'read_core',
|
| 53 |
+
'xcoff',
|
| 54 |
+
'unaligned',
|
| 55 |
+
'archive',
|
| 56 |
+
] }
|
| 57 |
+
|
| 58 |
+
[target.'cfg(any(windows, target_os = "cygwin"))'.dependencies.windows-link]
|
| 59 |
+
path = "../windows_link"
|
| 60 |
+
|
| 61 |
+
[dev-dependencies]
|
| 62 |
+
rand = { version = "0.9.0", default-features = false, features = ["alloc"] }
|
| 63 |
+
rand_xorshift = "0.4.0"
|
| 64 |
+
|
| 65 |
+
[target.'cfg(any(all(target_family = "wasm", target_os = "unknown"), target_os = "xous", target_os = "vexos", all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
|
| 66 |
+
dlmalloc = { version = "0.2.10", features = ['rustc-dep-of-std'] }
|
| 67 |
+
|
| 68 |
+
[target.x86_64-fortanix-unknown-sgx.dependencies]
|
| 69 |
+
fortanix-sgx-abi = { version = "0.6.1", features = [
|
| 70 |
+
'rustc-dep-of-std',
|
| 71 |
+
], public = true }
|
| 72 |
+
|
| 73 |
+
[target.'cfg(target_os = "motor")'.dependencies]
|
| 74 |
+
moto-rt = { version = "0.16", features = ['rustc-dep-of-std'], public = true }
|
| 75 |
+
|
| 76 |
+
[target.'cfg(target_os = "hermit")'.dependencies]
|
| 77 |
+
hermit-abi = { version = "0.5.0", features = [
|
| 78 |
+
'rustc-dep-of-std',
|
| 79 |
+
], public = true }
|
| 80 |
+
|
| 81 |
+
[target.'cfg(all(target_os = "wasi", target_env = "p1"))'.dependencies]
|
| 82 |
+
wasi = { version = "0.11.0", features = [
|
| 83 |
+
'rustc-dep-of-std',
|
| 84 |
+
], default-features = false }
|
| 85 |
+
|
| 86 |
+
[target.'cfg(all(target_os = "wasi", target_env = "p2"))'.dependencies]
|
| 87 |
+
wasip2 = { version = '0.14.4', features = [
|
| 88 |
+
'rustc-dep-of-std',
|
| 89 |
+
], default-features = false, package = 'wasi' }
|
| 90 |
+
|
| 91 |
+
[target.'cfg(all(target_os = "wasi", target_env = "p3"))'.dependencies]
|
| 92 |
+
wasip2 = { version = '0.14.4', features = [
|
| 93 |
+
'rustc-dep-of-std',
|
| 94 |
+
], default-features = false, package = 'wasi' }
|
| 95 |
+
|
| 96 |
+
[target.'cfg(target_os = "uefi")'.dependencies]
|
| 97 |
+
r-efi = { version = "5.2.0", features = ['rustc-dep-of-std'] }
|
| 98 |
+
r-efi-alloc = { version = "2.0.0", features = ['rustc-dep-of-std'] }
|
| 99 |
+
|
| 100 |
+
[target.'cfg(target_os = "vexos")'.dependencies]
|
| 101 |
+
vex-sdk = { version = "0.27.0", features = [
|
| 102 |
+
'rustc-dep-of-std',
|
| 103 |
+
], default-features = false }
|
| 104 |
+
|
| 105 |
+
[features]
|
| 106 |
+
backtrace = [
|
| 107 |
+
'addr2line/rustc-dep-of-std',
|
| 108 |
+
'object/rustc-dep-of-std',
|
| 109 |
+
'miniz_oxide/rustc-dep-of-std',
|
| 110 |
+
]
|
| 111 |
+
# Disable symbolization in backtraces. For use with -Zbuild-std.
|
| 112 |
+
# FIXME: Ideally this should be an additive backtrace-symbolization feature
|
| 113 |
+
backtrace-trace-only = []
|
| 114 |
+
|
| 115 |
+
panic-unwind = ["dep:panic_unwind"]
|
| 116 |
+
compiler-builtins-c = ["alloc/compiler-builtins-c"]
|
| 117 |
+
compiler-builtins-mem = ["alloc/compiler-builtins-mem"]
|
| 118 |
+
llvm-libunwind = ["unwind/llvm-libunwind"]
|
| 119 |
+
system-llvm-libunwind = ["unwind/system-llvm-libunwind"]
|
| 120 |
+
|
| 121 |
+
# Choose algorithms that are optimized for binary size instead of runtime performance
|
| 122 |
+
optimize_for_size = ["core/optimize_for_size", "alloc/optimize_for_size"]
|
| 123 |
+
|
| 124 |
+
# Make `RefCell` store additional debugging information, which is printed out when
|
| 125 |
+
# a borrow error occurs
|
| 126 |
+
debug_refcell = ["core/debug_refcell"]
|
| 127 |
+
|
| 128 |
+
llvm_enzyme = ["core/llvm_enzyme"]
|
| 129 |
+
|
| 130 |
+
# Enable using raw-dylib for Windows imports.
|
| 131 |
+
# This will eventually be the default.
|
| 132 |
+
windows_raw_dylib = ["windows-link/windows_raw_dylib"]
|
| 133 |
+
|
| 134 |
+
[package.metadata.fortanix-sgx]
|
| 135 |
+
# Maximum possible number of threads when testing
|
| 136 |
+
threads = 125
|
| 137 |
+
# Maximum heap size
|
| 138 |
+
heap_size = 0x8000000
|
| 139 |
+
|
| 140 |
+
[[test]]
|
| 141 |
+
name = "pipe-subprocess"
|
| 142 |
+
path = "tests/pipe_subprocess.rs"
|
| 143 |
+
harness = false
|
| 144 |
+
|
| 145 |
+
[[test]]
|
| 146 |
+
name = "sync"
|
| 147 |
+
path = "tests/sync/lib.rs"
|
| 148 |
+
|
| 149 |
+
[[test]]
|
| 150 |
+
name = "thread_local"
|
| 151 |
+
path = "tests/thread_local/lib.rs"
|
| 152 |
+
|
| 153 |
+
[[bench]]
|
| 154 |
+
name = "stdbenches"
|
| 155 |
+
path = "benches/lib.rs"
|
| 156 |
+
test = true
|
| 157 |
+
|
| 158 |
+
[lints.rust.unexpected_cfgs]
|
| 159 |
+
level = "warn"
|
| 160 |
+
check-cfg = [
|
| 161 |
+
# std use #[path] imports to portable-simd `std_float` crate
|
| 162 |
+
# and to the `backtrace` crate which messes-up with Cargo list
|
| 163 |
+
# of declared features, we therefor expect any feature cfg
|
| 164 |
+
'cfg(feature, values(any()))',
|
| 165 |
+
# Internal features aren't marked known config by default, we use these to
|
| 166 |
+
# gate tests.
|
| 167 |
+
'cfg(target_has_reliable_f16)',
|
| 168 |
+
'cfg(target_has_reliable_f16_math)',
|
| 169 |
+
'cfg(target_has_reliable_f128)',
|
| 170 |
+
'cfg(target_has_reliable_f128_math)',
|
| 171 |
+
]
|