2019-02-04 16:31:48 +00:00
|
|
|
# This file is automatically @generated by Cargo.
|
|
|
|
# It is not intended for manual editing.
|
2018-12-08 11:06:54 +00:00
|
|
|
[[package]]
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
name = "addr2line"
|
|
|
|
version = "0.13.0"
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
checksum = "1b6a2d3371669ab3ca9797670853d61402b03d0b4b9ebf33d677dfa720203072"
|
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"gimli",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "adler"
|
|
|
|
version = "0.2.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e"
|
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
]
|
2018-12-08 11:06:54 +00:00
|
|
|
|
2019-05-16 05:27:39 +00:00
|
|
|
[[package]]
|
|
|
|
name = "aho-corasick"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.7.13"
|
2019-05-16 05:27:39 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86"
|
2019-05-16 05:27:39 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"memchr",
|
2019-05-16 05:27:39 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "alloc"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand",
|
|
|
|
"rand_xorshift",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ammonia"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "3.1.0"
|
2019-06-19 03:36:47 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "89eac85170f4b3fb3dc5e442c1cfb036cb8eecf9dbbd431a161ffad15d90ea3b"
|
2019-06-19 03:36:47 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"html5ever",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"maplit",
|
2020-08-01 14:11:15 +00:00
|
|
|
"markup5ever_rcdom",
|
2019-08-15 00:45:09 +00:00
|
|
|
"matches",
|
|
|
|
"tendril",
|
2020-08-17 15:21:44 +00:00
|
|
|
"url 2.1.1",
|
2019-06-19 03:36:47 +00:00
|
|
|
]
|
|
|
|
|
2019-07-25 19:03:53 +00:00
|
|
|
[[package]]
|
|
|
|
name = "annotate-snippets"
|
|
|
|
version = "0.6.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "c7021ce4924a3f25f802b2cccd1af585e39ea1a363a1aa2e72afe54b67a3a7a7"
|
2019-07-30 11:00:27 +00:00
|
|
|
dependencies = [
|
2020-07-24 18:42:00 +00:00
|
|
|
"ansi_term 0.11.0",
|
2019-07-30 11:00:27 +00:00
|
|
|
]
|
2019-07-25 19:03:53 +00:00
|
|
|
|
2020-05-08 20:48:26 +00:00
|
|
|
[[package]]
|
|
|
|
name = "annotate-snippets"
|
|
|
|
version = "0.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d78ea013094e5ea606b1c05fe35f1dd7ea1eb1ea259908d040b25bd5ec677ee5"
|
|
|
|
|
2017-02-07 23:13:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ansi_term"
|
2018-03-16 10:37:14 +00:00
|
|
|
version = "0.11.0"
|
2017-02-07 23:13:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
|
2018-03-16 10:37:14 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-03-16 10:37:14 +00:00
|
|
|
]
|
2017-02-07 23:13:57 +00:00
|
|
|
|
2020-07-24 18:42:00 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ansi_term"
|
|
|
|
version = "0.12.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
|
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2020-07-24 18:42:00 +00:00
|
|
|
]
|
|
|
|
|
2020-01-14 17:47:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "anyhow"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.32"
|
2020-01-14 17:47:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "6b602bfe940d21c130f3895acd65221e8a61270debe89d628b9cb4e3ccb8569b"
|
2020-01-14 17:47:04 +00:00
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "arc-swap"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.7"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "4d25d88fd6b8041580a654f9d0c581a047baee2b3efee13275f2fc392fc75034"
|
2019-01-21 15:32:43 +00:00
|
|
|
|
2019-02-18 09:32:58 +00:00
|
|
|
[[package]]
|
2020-08-17 15:21:44 +00:00
|
|
|
name = "arrayref"
|
|
|
|
version = "0.3.6"
|
2019-02-18 09:32:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544"
|
2018-02-26 03:15:45 +00:00
|
|
|
|
2020-07-14 00:31:54 +00:00
|
|
|
[[package]]
|
|
|
|
name = "arrayvec"
|
|
|
|
version = "0.5.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cff77d8686867eceff3105329d4698d96c2391c176d5d03adc90c7389162b5b8"
|
|
|
|
|
2017-06-15 02:33:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "atty"
|
2020-05-26 04:35:21 +00:00
|
|
|
version = "0.2.14"
|
2017-06-15 02:33:06 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 04:35:21 +00:00
|
|
|
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
2017-06-15 02:33:06 +00:00
|
|
|
dependencies = [
|
2020-05-26 04:35:21 +00:00
|
|
|
"hermit-abi",
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2017-06-15 02:33:06 +00:00
|
|
|
]
|
|
|
|
|
2020-03-26 13:10:35 +00:00
|
|
|
[[package]]
|
|
|
|
name = "autocfg"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d"
|
|
|
|
|
2017-05-08 22:01:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "backtrace"
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
version = "0.3.50"
|
2017-05-08 22:01:13 +00:00
|
|
|
dependencies = [
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
"addr2line",
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
"miniz_oxide",
|
|
|
|
"object",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc-demangle",
|
2017-05-08 22:01:13 +00:00
|
|
|
]
|
|
|
|
|
2020-08-17 15:21:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "base64"
|
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7"
|
|
|
|
|
2017-09-08 19:08:01 +00:00
|
|
|
[[package]]
|
|
|
|
name = "bitflags"
|
2019-10-13 23:37:55 +00:00
|
|
|
version = "1.2.1"
|
2017-09-08 19:08:01 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-10-13 23:37:55 +00:00
|
|
|
checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
|
2017-09-08 19:08:01 +00:00
|
|
|
|
2019-11-25 16:14:07 +00:00
|
|
|
[[package]]
|
|
|
|
name = "bitmaps"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "2.1.0"
|
2019-11-25 16:14:07 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2"
|
2019-11-25 16:14:07 +00:00
|
|
|
dependencies = [
|
|
|
|
"typenum",
|
|
|
|
]
|
|
|
|
|
2019-02-18 09:32:58 +00:00
|
|
|
[[package]]
|
2020-08-17 15:21:44 +00:00
|
|
|
name = "blake2b_simd"
|
|
|
|
version = "0.5.10"
|
2019-02-18 09:32:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "d8fb2d74254a3a0b5cac33ac9f8ed0e44aa50378d9dbb2e5d83bd21ed1dc2c8a"
|
2019-02-18 09:32:58 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"arrayref",
|
|
|
|
"arrayvec",
|
2019-08-15 00:45:09 +00:00
|
|
|
"constant_time_eq",
|
2019-02-18 09:32:58 +00:00
|
|
|
]
|
|
|
|
|
2019-01-19 02:39:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "block-buffer"
|
2020-03-31 05:17:15 +00:00
|
|
|
version = "0.7.3"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 05:17:15 +00:00
|
|
|
checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b"
|
|
|
|
dependencies = [
|
|
|
|
"block-padding",
|
|
|
|
"byte-tools",
|
|
|
|
"byteorder",
|
2020-10-01 15:15:12 +00:00
|
|
|
"generic-array 0.12.3",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "block-buffer"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
|
|
|
|
dependencies = [
|
|
|
|
"generic-array 0.14.4",
|
2020-03-31 05:17:15 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "block-padding"
|
|
|
|
version = "0.1.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5"
|
2019-01-19 02:39:37 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"byte-tools",
|
2019-01-19 02:39:37 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "bootstrap"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"build_helper",
|
|
|
|
"cc",
|
|
|
|
"cmake",
|
|
|
|
"filetime",
|
|
|
|
"getopts",
|
2019-12-18 15:52:10 +00:00
|
|
|
"ignore",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2020-09-12 04:42:52 +00:00
|
|
|
"merge",
|
2019-08-15 00:45:09 +00:00
|
|
|
"num_cpus",
|
2020-05-22 02:48:44 +00:00
|
|
|
"opener",
|
2019-08-15 00:45:09 +00:00
|
|
|
"pretty_assertions",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"time",
|
2019-08-20 17:46:35 +00:00
|
|
|
"toml",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2017-01-24 22:37:04 +00:00
|
|
|
]
|
|
|
|
|
2019-05-16 05:27:39 +00:00
|
|
|
[[package]]
|
|
|
|
name = "bstr"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.13"
|
2019-05-16 05:27:39 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "31accafdb70df7871592c058eca3985b71104e15ac32f64706022c58867da931"
|
2019-05-16 05:27:39 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"memchr",
|
2019-05-16 05:27:39 +00:00
|
|
|
]
|
|
|
|
|
2017-01-24 22:37:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "build-manifest"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2020-09-18 12:40:01 +00:00
|
|
|
"anyhow",
|
2020-09-24 12:13:40 +00:00
|
|
|
"flate2",
|
2020-10-01 15:15:12 +00:00
|
|
|
"hex 0.4.2",
|
|
|
|
"rayon",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
2019-11-03 10:47:07 +00:00
|
|
|
"serde_json",
|
2020-10-01 15:15:12 +00:00
|
|
|
"sha2",
|
2020-09-24 12:13:40 +00:00
|
|
|
"tar",
|
2019-08-20 17:46:35 +00:00
|
|
|
"toml",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "build_helper"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2019-01-19 02:39:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "byte-tools"
|
2020-03-31 05:17:15 +00:00
|
|
|
version = "0.3.1"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 05:17:15 +00:00
|
|
|
checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7"
|
2019-01-19 02:39:37 +00:00
|
|
|
|
2018-10-08 17:39:09 +00:00
|
|
|
[[package]]
|
|
|
|
name = "bytecount"
|
2019-09-08 08:28:11 +00:00
|
|
|
version = "0.6.0"
|
2018-10-08 17:39:09 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-08 08:28:11 +00:00
|
|
|
checksum = "b0017894339f586ccb943b01b9555de56770c11cda818e7e3d8bd93f4ed7f46e"
|
2018-10-08 17:39:09 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"packed_simd",
|
2018-10-08 17:39:09 +00:00
|
|
|
]
|
|
|
|
|
2017-09-18 14:18:23 +00:00
|
|
|
[[package]]
|
|
|
|
name = "byteorder"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.3.4"
|
2017-09-18 14:18:23 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
|
2017-09-18 14:18:23 +00:00
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "bytes"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.12"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"byteorder",
|
|
|
|
"iovec",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2018-09-20 21:37:53 +00:00
|
|
|
[[package]]
|
|
|
|
name = "bytesize"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.1"
|
2018-09-20 21:37:53 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "81a18687293a1546b67c246452202bbbf143d239cb43494cc163da14979082da"
|
2018-09-20 21:37:53 +00:00
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cargo"
|
2020-08-31 17:36:13 +00:00
|
|
|
version = "0.49.0"
|
2017-07-19 01:32:12 +00:00
|
|
|
dependencies = [
|
2020-01-14 17:47:04 +00:00
|
|
|
"anyhow",
|
2019-08-15 00:45:09 +00:00
|
|
|
"atty",
|
|
|
|
"bytesize",
|
2019-09-24 18:06:56 +00:00
|
|
|
"cargo-platform",
|
2019-08-15 00:45:09 +00:00
|
|
|
"cargo-test-macro",
|
2019-09-16 18:45:40 +00:00
|
|
|
"cargo-test-support",
|
2019-08-15 00:45:09 +00:00
|
|
|
"clap",
|
2020-06-23 22:00:48 +00:00
|
|
|
"core-foundation",
|
2019-08-15 00:45:09 +00:00
|
|
|
"crates-io",
|
2020-03-26 13:10:35 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"crypto-hash",
|
|
|
|
"curl",
|
|
|
|
"curl-sys",
|
2019-10-30 20:03:19 +00:00
|
|
|
"env_logger 0.7.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"filetime",
|
|
|
|
"flate2",
|
|
|
|
"fwdansi",
|
|
|
|
"git2",
|
|
|
|
"git2-curl",
|
|
|
|
"glob",
|
2020-08-17 15:21:44 +00:00
|
|
|
"hex 0.4.2",
|
2019-09-08 08:28:11 +00:00
|
|
|
"home",
|
2020-08-17 15:21:44 +00:00
|
|
|
"humantime 2.0.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"ignore",
|
|
|
|
"im-rc",
|
|
|
|
"jobserver",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"lazycell",
|
|
|
|
"libc",
|
|
|
|
"libgit2-sys",
|
|
|
|
"log",
|
|
|
|
"memchr",
|
2020-08-17 15:21:44 +00:00
|
|
|
"miow 0.3.5",
|
2019-08-15 00:45:09 +00:00
|
|
|
"num_cpus",
|
|
|
|
"opener",
|
|
|
|
"openssl",
|
2019-11-12 18:14:48 +00:00
|
|
|
"percent-encoding 2.1.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"pretty_env_logger",
|
|
|
|
"rustc-workspace-hack",
|
2020-04-15 16:32:41 +00:00
|
|
|
"rustfix",
|
2019-08-15 00:45:09 +00:00
|
|
|
"same-file",
|
2020-05-26 00:56:32 +00:00
|
|
|
"semver 0.10.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
2019-09-08 08:28:11 +00:00
|
|
|
"serde_ignored",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde_json",
|
|
|
|
"shell-escape",
|
|
|
|
"strip-ansi-escapes",
|
|
|
|
"tar",
|
|
|
|
"tempfile",
|
|
|
|
"termcolor",
|
2019-08-20 17:46:35 +00:00
|
|
|
"toml",
|
2019-08-15 00:45:09 +00:00
|
|
|
"unicode-width",
|
2020-08-01 14:11:15 +00:00
|
|
|
"unicode-xid",
|
2020-08-17 15:21:44 +00:00
|
|
|
"url 2.1.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"walkdir",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
2020-06-01 18:17:20 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cargo-miri"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"directories",
|
|
|
|
"rustc-workspace-hack",
|
|
|
|
"rustc_version",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"vergen",
|
|
|
|
]
|
|
|
|
|
2019-09-24 18:06:56 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cargo-platform"
|
2019-12-10 19:54:10 +00:00
|
|
|
version = "0.1.1"
|
2019-09-24 18:06:56 +00:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2019-06-12 14:37:30 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cargo-test-macro"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2019-09-16 18:45:40 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cargo-test-support"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"cargo",
|
|
|
|
"cargo-test-macro",
|
|
|
|
"filetime",
|
|
|
|
"flate2",
|
|
|
|
"git2",
|
|
|
|
"glob",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-09-16 18:45:40 +00:00
|
|
|
"remove_dir_all",
|
|
|
|
"serde_json",
|
|
|
|
"tar",
|
2020-08-17 15:21:44 +00:00
|
|
|
"url 2.1.1",
|
2019-09-16 18:45:40 +00:00
|
|
|
]
|
|
|
|
|
2019-06-03 23:00:38 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cargo_metadata"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.8.2"
|
2019-06-03 23:00:38 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "700b3731fd7d357223d0000f4dbf1808401b694609035c3c411fbc0cd375c426"
|
2019-06-03 23:00:38 +00:00
|
|
|
dependencies = [
|
2020-05-26 00:56:32 +00:00
|
|
|
"semver 0.9.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
2019-06-03 23:00:38 +00:00
|
|
|
]
|
|
|
|
|
2020-08-21 08:24:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cargo_metadata"
|
|
|
|
version = "0.11.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "89fec17b16f1ac67908af82e47d0a90a7afd0e1827b181cd77504323d3263d35"
|
|
|
|
dependencies = [
|
|
|
|
"semver 0.10.0",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
]
|
|
|
|
|
2017-02-15 22:55:26 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cargotest2"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2017-09-22 01:58:35 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cc"
|
2020-09-16 17:09:25 +00:00
|
|
|
version = "1.0.60"
|
2017-09-22 01:58:35 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-16 17:09:25 +00:00
|
|
|
checksum = "ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c"
|
2019-11-09 19:59:53 +00:00
|
|
|
dependencies = [
|
|
|
|
"jobserver",
|
|
|
|
]
|
2017-09-22 01:58:35 +00:00
|
|
|
|
2017-05-08 22:01:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cfg-if"
|
2020-01-08 15:33:57 +00:00
|
|
|
version = "0.1.10"
|
2017-05-08 22:01:13 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-08 15:33:57 +00:00
|
|
|
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
|
2019-05-15 14:30:15 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-core",
|
2019-05-15 14:30:15 +00:00
|
|
|
]
|
2017-05-08 22:01:13 +00:00
|
|
|
|
2020-03-03 16:25:03 +00:00
|
|
|
[[package]]
|
|
|
|
name = "chalk-derive"
|
2020-09-27 13:54:07 +00:00
|
|
|
version = "0.29.0"
|
2020-03-03 16:25:03 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-27 13:54:07 +00:00
|
|
|
checksum = "3a7f257e3bcdc56d8877ae31c012bd69fba0be66929d588e603905f2632c0c59"
|
2020-03-03 16:25:03 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-05-05 11:26:16 +00:00
|
|
|
"synstructure",
|
2020-03-03 16:25:03 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "chalk-engine"
|
2020-09-27 13:54:07 +00:00
|
|
|
version = "0.29.0"
|
2020-03-03 16:25:03 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-27 13:54:07 +00:00
|
|
|
checksum = "c43fcc7edf4d51b42f44ed50e2337bd90ddc8e088d0cd78a71db92a6f780f782"
|
2020-03-03 16:25:03 +00:00
|
|
|
dependencies = [
|
2020-05-27 00:19:19 +00:00
|
|
|
"chalk-derive",
|
|
|
|
"chalk-ir",
|
2020-08-04 22:35:37 +00:00
|
|
|
"chalk-solve",
|
2020-03-03 16:25:03 +00:00
|
|
|
"rustc-hash",
|
2020-05-27 05:05:09 +00:00
|
|
|
"tracing",
|
2020-03-03 16:25:03 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "chalk-ir"
|
2020-09-27 13:54:07 +00:00
|
|
|
version = "0.29.0"
|
2020-03-03 16:25:03 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-27 13:54:07 +00:00
|
|
|
checksum = "03a4050029ecb2b5a1ff3bfc64c39279179b294821ec2e8891a4a5c6e3a08db0"
|
2020-03-03 16:25:03 +00:00
|
|
|
dependencies = [
|
|
|
|
"chalk-derive",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2020-03-03 16:25:03 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "chalk-solve"
|
2020-09-27 13:54:07 +00:00
|
|
|
version = "0.29.0"
|
2020-03-03 16:25:03 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-27 13:54:07 +00:00
|
|
|
checksum = "828c1f80d4eaf681027cce02050c54a3c97370f81988d31bf2a56df54048746c"
|
2020-03-03 16:25:03 +00:00
|
|
|
dependencies = [
|
|
|
|
"chalk-derive",
|
|
|
|
"chalk-ir",
|
2020-05-27 05:05:09 +00:00
|
|
|
"ena",
|
2020-03-03 16:25:03 +00:00
|
|
|
"itertools 0.9.0",
|
|
|
|
"petgraph",
|
|
|
|
"rustc-hash",
|
2020-05-27 05:05:09 +00:00
|
|
|
"tracing",
|
2020-08-04 22:35:37 +00:00
|
|
|
"tracing-subscriber",
|
|
|
|
"tracing-tree",
|
2020-03-03 16:25:03 +00:00
|
|
|
]
|
|
|
|
|
2018-01-25 04:01:42 +00:00
|
|
|
[[package]]
|
|
|
|
name = "chrono"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.15"
|
2018-01-25 04:01:42 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "942f72db697d8767c22d46a598e01f2d3b475501ea43d0db4f16d90259182d0b"
|
2018-01-25 04:01:42 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"num-integer",
|
|
|
|
"num-traits",
|
|
|
|
"time",
|
2018-01-25 04:01:42 +00:00
|
|
|
]
|
|
|
|
|
2017-02-07 23:13:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "clap"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "2.33.3"
|
2017-02-07 23:13:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002"
|
2017-02-07 23:13:57 +00:00
|
|
|
dependencies = [
|
2020-07-24 18:42:00 +00:00
|
|
|
"ansi_term 0.11.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"atty",
|
|
|
|
"bitflags",
|
|
|
|
"strsim",
|
|
|
|
"textwrap",
|
|
|
|
"unicode-width",
|
|
|
|
"vec_map",
|
2019-11-26 11:06:30 +00:00
|
|
|
"yaml-rust 0.3.5",
|
2017-02-07 23:13:57 +00:00
|
|
|
]
|
|
|
|
|
2017-12-06 08:25:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "clippy"
|
2018-07-14 22:01:24 +00:00
|
|
|
version = "0.0.212"
|
2017-12-06 08:25:29 +00:00
|
|
|
dependencies = [
|
2020-08-28 16:43:41 +00:00
|
|
|
"cargo_metadata 0.11.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"clippy-mini-macro-test",
|
|
|
|
"clippy_lints",
|
2020-04-15 16:32:41 +00:00
|
|
|
"compiletest_rs",
|
2019-08-15 00:45:09 +00:00
|
|
|
"derive-new",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc-workspace-hack",
|
2019-05-26 17:21:54 +00:00
|
|
|
"rustc_tools_util 0.2.0",
|
2020-08-28 16:43:41 +00:00
|
|
|
"semver 0.10.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
2019-12-02 22:09:48 +00:00
|
|
|
"tempfile",
|
2019-11-28 17:40:05 +00:00
|
|
|
"tester",
|
2017-12-06 08:25:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "clippy-mini-macro-test"
|
2018-01-30 14:12:12 +00:00
|
|
|
version = "0.2.0"
|
2017-12-06 08:25:29 +00:00
|
|
|
|
2018-05-19 11:18:02 +00:00
|
|
|
[[package]]
|
|
|
|
name = "clippy_lints"
|
2018-07-14 22:01:24 +00:00
|
|
|
version = "0.0.212"
|
2018-05-11 12:11:06 +00:00
|
|
|
dependencies = [
|
2020-08-28 16:43:41 +00:00
|
|
|
"cargo_metadata 0.11.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"if_chain",
|
2020-03-12 20:47:47 +00:00
|
|
|
"itertools 0.9.0",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2020-09-24 12:51:13 +00:00
|
|
|
"pulldown-cmark 0.8.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"quine-mc_cluskey",
|
2020-08-01 14:11:15 +00:00
|
|
|
"quote",
|
2019-08-15 00:45:09 +00:00
|
|
|
"regex-syntax",
|
2020-08-28 16:43:41 +00:00
|
|
|
"semver 0.10.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-08-01 14:11:15 +00:00
|
|
|
"syn",
|
2019-08-20 17:46:35 +00:00
|
|
|
"toml",
|
2019-08-15 00:45:09 +00:00
|
|
|
"unicode-normalization",
|
2020-08-17 15:21:44 +00:00
|
|
|
"url 2.1.1",
|
2018-05-11 12:11:06 +00:00
|
|
|
]
|
|
|
|
|
2018-07-26 21:58:55 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cloudabi"
|
|
|
|
version = "0.0.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
|
2018-07-26 21:58:55 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
2018-07-26 21:58:55 +00:00
|
|
|
]
|
|
|
|
|
2020-08-17 15:21:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cloudabi"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4344512281c643ae7638bbabc3af17a11307803ec8f0fcad9fae512a8bf36467"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags",
|
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cmake"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.44"
|
2016-09-02 08:55:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "0e56268c17a6248366d66d4a47a3381369d068cce8409bb1716ed77ea32163bb"
|
2016-09-02 08:55:29 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2018-04-25 22:11:28 +00:00
|
|
|
[[package]]
|
|
|
|
name = "colored"
|
2020-09-17 18:04:20 +00:00
|
|
|
version = "2.0.0"
|
2018-04-25 22:11:28 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-17 18:04:20 +00:00
|
|
|
checksum = "b3616f750b84d8f0de8a58bda93e08e2a81ad3f523089b05f1dffecab48c6cbd"
|
2018-04-25 22:11:28 +00:00
|
|
|
dependencies = [
|
2020-05-26 04:00:42 +00:00
|
|
|
"atty",
|
|
|
|
"lazy_static",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-04-25 22:11:28 +00:00
|
|
|
]
|
|
|
|
|
2017-12-06 08:25:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "commoncrypto"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "d056a8586ba25a1e4d61cb090900e495952c7886786fc55f909ab2f819b69007"
|
2017-12-06 08:25:29 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"commoncrypto-sys",
|
2017-12-06 08:25:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "commoncrypto-sys"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "1fed34f46747aa73dfaa578069fd8279d2818ade2b55f38f22a9401c7f4083e2"
|
2017-12-06 08:25:29 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2017-06-17 19:01:18 +00:00
|
|
|
]
|
|
|
|
|
2016-10-07 06:30:38 +00:00
|
|
|
[[package]]
|
|
|
|
name = "compiler_builtins"
|
2020-08-24 13:44:13 +00:00
|
|
|
version = "0.1.35"
|
std: Depend directly on crates.io crates
Ever since we added a Cargo-based build system for the compiler the
standard library has always been a little special, it's never been able
to depend on crates.io crates for runtime dependencies. This has been a
result of various limitations, namely that Cargo doesn't understand that
crates from crates.io depend on libcore, so Cargo tries to build crates
before libcore is finished.
I had an idea this afternoon, however, which lifts the strategy
from #52919 to directly depend on crates.io crates from the standard
library. After all is said and done this removes a whopping three
submodules that we need to manage!
The basic idea here is that for any crate `std` depends on it adds an
*optional* dependency on an empty crate on crates.io, in this case named
`rustc-std-workspace-core`. This crate is overridden via `[patch]` in
this repository to point to a local crate we write, and *that* has a
`path` dependency on libcore.
Note that all `no_std` crates also depend on `compiler_builtins`, but if
we're not using submodules we can publish `compiler_builtins` to
crates.io and all crates can depend on it anyway! The basic strategy
then looks like:
* The standard library (or some transitive dep) decides to depend on a
crate `foo`.
* The standard library adds
```toml
[dependencies]
foo = { version = "0.1", features = ['rustc-dep-of-std'] }
```
* The crate `foo` has an optional dependency on `rustc-std-workspace-core`
* The crate `foo` has an optional dependency on `compiler_builtins`
* The crate `foo` has a feature `rustc-dep-of-std` which activates these
crates and any other necessary infrastructure in the crate.
A sample commit for `dlmalloc` [turns out to be quite simple][commit].
After that all `no_std` crates should largely build "as is" and still be
publishable on crates.io! Notably they should be able to continue to use
stable Rust if necessary, since the `rename-dependency` feature of Cargo
is soon stabilizing.
As a proof of concept, this commit removes the `dlmalloc`,
`libcompiler_builtins`, and `libc` submodules from this repository. Long
thorns in our side these are now gone for good and we can directly
depend on crates.io! It's hoped that in the long term we can bring in
other crates as necessary, but for now this is largely intended to
simply make it easier to manage these crates and remove submodules.
This should be a transparent non-breaking change for all users, but one
possible stickler is that this almost for sure breaks out-of-tree
`std`-building tools like `xargo` and `cargo-xbuild`. I think it should
be relatively easy to get them working, however, as all that's needed is
an entry in the `[patch]` section used to build the standard library.
Hopefully we can work with these tools to solve this problem!
[commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
2018-11-20 05:52:50 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-24 13:44:13 +00:00
|
|
|
checksum = "e3fcd8aba10d17504c87ef12d4f62ef404c6a4703d16682a9eb5543e6cf24455"
|
2016-10-07 06:30:38 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"rustc-std-workspace-core",
|
2016-10-07 06:30:38 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "compiletest"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"diff",
|
2019-10-30 20:03:19 +00:00
|
|
|
"env_logger 0.7.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"getopts",
|
2020-07-28 13:22:21 +00:00
|
|
|
"glob",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2020-08-17 15:21:44 +00:00
|
|
|
"miow 0.3.5",
|
2019-08-15 00:45:09 +00:00
|
|
|
"regex",
|
2020-04-15 16:32:41 +00:00
|
|
|
"rustfix",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2019-08-15 00:45:09 +00:00
|
|
|
"walkdir",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2020-04-15 18:54:39 +00:00
|
|
|
[[package]]
|
|
|
|
name = "compiletest_rs"
|
|
|
|
version = "0.5.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9f737835bfbbe29ed1ff82d5137520338d7ed5bf1a1d4b9c1c7c58bb45b8fa29"
|
|
|
|
dependencies = [
|
|
|
|
"diff",
|
|
|
|
"filetime",
|
|
|
|
"getopts",
|
|
|
|
"libc",
|
|
|
|
"log",
|
2020-08-17 15:21:44 +00:00
|
|
|
"miow 0.3.5",
|
2020-04-15 18:54:39 +00:00
|
|
|
"regex",
|
2020-04-15 16:32:41 +00:00
|
|
|
"rustfix",
|
2020-04-15 18:54:39 +00:00
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
|
|
|
"tempfile",
|
|
|
|
"tester",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2020-04-15 18:54:39 +00:00
|
|
|
]
|
|
|
|
|
2019-02-18 09:32:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "constant_time_eq"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.5"
|
2019-02-18 09:32:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc"
|
2019-02-18 09:32:58 +00:00
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "core"
|
|
|
|
version = "0.0.0"
|
2018-02-26 17:07:16 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand",
|
2018-02-26 17:07:16 +00:00
|
|
|
]
|
2016-09-02 08:55:29 +00:00
|
|
|
|
2019-11-25 16:14:07 +00:00
|
|
|
[[package]]
|
|
|
|
name = "core-foundation"
|
2020-06-30 17:39:05 +00:00
|
|
|
version = "0.9.0"
|
2019-11-25 16:14:07 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-06-30 17:39:05 +00:00
|
|
|
checksum = "3b5ed8e7e76c45974e15e41bfa8d5b0483cd90191639e01d8f5f1e606299d3fb"
|
2019-11-25 16:14:07 +00:00
|
|
|
dependencies = [
|
2020-06-23 22:00:48 +00:00
|
|
|
"core-foundation-sys",
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2017-08-24 05:52:28 +00:00
|
|
|
]
|
|
|
|
|
2019-11-25 16:14:07 +00:00
|
|
|
[[package]]
|
|
|
|
name = "core-foundation-sys"
|
2020-06-30 17:39:05 +00:00
|
|
|
version = "0.8.0"
|
2019-11-25 16:14:07 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-06-30 17:39:05 +00:00
|
|
|
checksum = "9a21fa21941700a3cd8fcb4091f361a6a712fac632f85d9f487cc892045d55c6"
|
2019-11-25 16:14:07 +00:00
|
|
|
|
2020-10-01 15:15:12 +00:00
|
|
|
[[package]]
|
|
|
|
name = "cpuid-bool"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634"
|
|
|
|
|
2017-07-19 01:32:12 +00:00
|
|
|
[[package]]
|
|
|
|
name = "crates-io"
|
2020-04-21 21:11:30 +00:00
|
|
|
version = "0.31.1"
|
2017-07-19 01:32:12 +00:00
|
|
|
dependencies = [
|
2020-01-14 17:47:04 +00:00
|
|
|
"anyhow",
|
2019-08-15 00:45:09 +00:00
|
|
|
"curl",
|
2019-11-12 18:14:48 +00:00
|
|
|
"percent-encoding 2.1.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-08-17 15:21:44 +00:00
|
|
|
"url 2.1.1",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
2018-12-08 11:06:54 +00:00
|
|
|
[[package]]
|
|
|
|
name = "crc32fast"
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
version = "1.2.0"
|
2018-12-08 11:06:54 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
checksum = "ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"
|
2018-12-08 11:06:54 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
2018-12-08 11:06:54 +00:00
|
|
|
]
|
2017-09-02 03:46:51 +00:00
|
|
|
|
2020-02-10 19:47:38 +00:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-channel"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.3"
|
2020-02-10 19:47:38 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "09ee0cc8804d5393478d743b035099520087a5186f3b93fa58cec08fa62407b6"
|
2020-02-10 19:47:38 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"cfg-if",
|
2020-03-26 13:10:35 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
2020-02-10 19:47:38 +00:00
|
|
|
]
|
|
|
|
|
2019-09-10 17:13:07 +00:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-deque"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.7.3"
|
2019-09-10 17:13:07 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285"
|
2019-09-10 17:13:07 +00:00
|
|
|
dependencies = [
|
2019-12-10 15:01:01 +00:00
|
|
|
"crossbeam-epoch",
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
|
|
|
"maybe-uninit",
|
2019-09-10 17:13:07 +00:00
|
|
|
]
|
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-epoch"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.8.2"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"autocfg",
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2020-08-17 15:21:44 +00:00
|
|
|
"maybe-uninit",
|
2019-12-10 15:01:01 +00:00
|
|
|
"memoffset",
|
2019-12-04 17:40:16 +00:00
|
|
|
"scopeguard",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2019-04-07 12:59:33 +00:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-queue"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "7c979cd6cfe72335896575c6b5688da489e420d36a27a0b9eb0c73db574b4a4b"
|
2019-04-07 12:59:33 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-utils 0.6.6",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-queue"
|
|
|
|
version = "0.2.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"crossbeam-utils 0.7.2",
|
|
|
|
"maybe-uninit",
|
2019-04-07 12:59:33 +00:00
|
|
|
]
|
|
|
|
|
2018-11-16 11:08:23 +00:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-utils"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.6.6"
|
2018-11-16 11:08:23 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6"
|
2018-11-16 11:08:23 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2018-11-16 11:08:23 +00:00
|
|
|
]
|
|
|
|
|
2019-11-12 17:57:41 +00:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-utils"
|
2020-03-26 13:10:35 +00:00
|
|
|
version = "0.7.2"
|
2019-11-12 17:57:41 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-26 13:10:35 +00:00
|
|
|
checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
|
2019-11-12 17:57:41 +00:00
|
|
|
dependencies = [
|
2020-03-16 18:37:15 +00:00
|
|
|
"autocfg",
|
2019-11-12 17:57:41 +00:00
|
|
|
"cfg-if",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-11-12 17:57:41 +00:00
|
|
|
]
|
|
|
|
|
2017-12-06 08:25:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "crypto-hash"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.4"
|
2017-12-06 08:25:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "8a77162240fd97248d19a564a565eb563a3f592b386e4136fb300909e67dddca"
|
2017-12-06 08:25:29 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"commoncrypto",
|
2019-09-16 18:45:40 +00:00
|
|
|
"hex 0.3.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"openssl",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2017-12-06 08:25:29 +00:00
|
|
|
]
|
|
|
|
|
2020-03-26 13:10:35 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ctor"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.15"
|
2020-03-26 13:10:35 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "39858aa5bac06462d4dd4b9164848eb81ffc4aa5c479746393598fd193afa227"
|
2020-03-26 13:10:35 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-03-26 13:10:35 +00:00
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "curl"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.31"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "9447ad28eee2a5cfb031c329d46bef77487244fff6a724b378885b8691a35f78"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"curl-sys",
|
|
|
|
"libc",
|
|
|
|
"openssl-probe",
|
|
|
|
"openssl-sys",
|
|
|
|
"schannel",
|
|
|
|
"socket2",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "curl-sys"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.34+curl-7.71.1"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "ad4eff0be6985b7e709f64b5a541f700e9ad1407190a29f4884319eb663ed1d6"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"libnghttp2-sys",
|
|
|
|
"libz-sys",
|
|
|
|
"openssl-sys",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2017-05-08 22:01:13 +00:00
|
|
|
]
|
|
|
|
|
2018-05-29 11:52:51 +00:00
|
|
|
[[package]]
|
|
|
|
name = "datafrog"
|
2019-01-02 19:45:22 +00:00
|
|
|
version = "2.0.1"
|
2018-05-29 11:52:51 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "a0afaad2b26fa326569eb264b1363e8ae3357618c43982b3f285f0774ce76b69"
|
2018-05-29 11:52:51 +00:00
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "derive-new"
|
2020-05-05 11:30:49 +00:00
|
|
|
version = "0.5.8"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-05 11:30:49 +00:00
|
|
|
checksum = "71f31892cd5c62e414316f2963c5689242c43d8e7bbcaaeca97e5e28c95d91d9"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
2018-07-26 21:58:55 +00:00
|
|
|
[[package]]
|
|
|
|
name = "derive_more"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.99.9"
|
2018-07-26 21:58:55 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "298998b1cf6b5b2c8a7b023dfd45821825ce3ba8a8af55c921a0e734e4653f76"
|
2018-07-26 21:58:55 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2018-07-26 21:58:55 +00:00
|
|
|
]
|
|
|
|
|
2017-04-27 19:41:18 +00:00
|
|
|
[[package]]
|
|
|
|
name = "diff"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.12"
|
2017-04-27 19:41:18 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499"
|
2017-04-27 19:41:18 +00:00
|
|
|
|
Add tests to rustbuild
In order to run tests, previous commits have cfg'd out various parts of
rustbuild. Generally speaking, these are filesystem-related operations
and process-spawning related parts. Then, rustbuild is run "as normal"
and the various steps that where run are retrieved from the cache and
checked against the expected results.
Note that this means that the current implementation primarily tests
"what" we build, but doesn't actually test that what we build *will*
build. In other words, it doesn't do any form of dependency verification
for any crate. This is possible to implement, but is considered future
work.
This implementation strives to cfg out as little code as possible; it
also does not currently test anywhere near all of rustbuild. The current
tests are also not checked for "correctness," rather, they simply
represent what we do as of this commit, which may be wrong.
Test cases are drawn from the old implementation of rustbuild, though
the expected results may vary.
2018-03-10 14:03:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "difference"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
|
Add tests to rustbuild
In order to run tests, previous commits have cfg'd out various parts of
rustbuild. Generally speaking, these are filesystem-related operations
and process-spawning related parts. Then, rustbuild is run "as normal"
and the various steps that where run are retrieved from the cache and
checked against the expected results.
Note that this means that the current implementation primarily tests
"what" we build, but doesn't actually test that what we build *will*
build. In other words, it doesn't do any form of dependency verification
for any crate. This is possible to implement, but is considered future
work.
This implementation strives to cfg out as little code as possible; it
also does not currently test anywhere near all of rustbuild. The current
tests are also not checked for "correctness," rather, they simply
represent what we do as of this commit, which may be wrong.
Test cases are drawn from the old implementation of rustbuild, though
the expected results may vary.
2018-03-10 14:03:06 +00:00
|
|
|
|
2019-01-19 02:39:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "digest"
|
2020-03-31 05:17:15 +00:00
|
|
|
version = "0.8.1"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 05:17:15 +00:00
|
|
|
checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5"
|
2019-01-19 02:39:37 +00:00
|
|
|
dependencies = [
|
2020-10-01 15:15:12 +00:00
|
|
|
"generic-array 0.12.3",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "digest"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
|
|
|
|
dependencies = [
|
|
|
|
"generic-array 0.14.4",
|
2019-01-19 02:39:37 +00:00
|
|
|
]
|
|
|
|
|
2018-11-28 20:22:45 +00:00
|
|
|
[[package]]
|
|
|
|
name = "directories"
|
2020-09-17 18:04:20 +00:00
|
|
|
version = "3.0.1"
|
2018-11-28 20:22:45 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-17 18:04:20 +00:00
|
|
|
checksum = "f8fed639d60b58d0f53498ab13d26f621fd77569cc6edb031f4cc36a2ad9da0f"
|
2018-11-28 20:22:45 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"dirs-sys",
|
2018-11-28 20:22:45 +00:00
|
|
|
]
|
|
|
|
|
2019-02-18 09:32:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "dirs"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "2.0.2"
|
2019-02-18 09:32:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "13aea89a5c93364a98e9b37b2fa237effbb694d5cfe01c5b70941f7eb087d5e3"
|
2019-02-18 09:32:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
|
|
|
"dirs-sys",
|
2019-02-18 09:32:58 +00:00
|
|
|
]
|
|
|
|
|
2019-06-13 07:58:32 +00:00
|
|
|
[[package]]
|
|
|
|
name = "dirs-sys"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.5"
|
2019-06-13 07:58:32 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "8e93d7f5705de3e49895a2b5e0b8855a1c27f080192ae9c32a6432d50741a57a"
|
2019-06-13 07:58:32 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
|
|
|
"redox_users",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-06-13 07:58:32 +00:00
|
|
|
]
|
|
|
|
|
2017-12-06 08:25:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "dlmalloc"
|
2020-05-19 17:25:41 +00:00
|
|
|
version = "0.1.4"
|
std: Depend directly on crates.io crates
Ever since we added a Cargo-based build system for the compiler the
standard library has always been a little special, it's never been able
to depend on crates.io crates for runtime dependencies. This has been a
result of various limitations, namely that Cargo doesn't understand that
crates from crates.io depend on libcore, so Cargo tries to build crates
before libcore is finished.
I had an idea this afternoon, however, which lifts the strategy
from #52919 to directly depend on crates.io crates from the standard
library. After all is said and done this removes a whopping three
submodules that we need to manage!
The basic idea here is that for any crate `std` depends on it adds an
*optional* dependency on an empty crate on crates.io, in this case named
`rustc-std-workspace-core`. This crate is overridden via `[patch]` in
this repository to point to a local crate we write, and *that* has a
`path` dependency on libcore.
Note that all `no_std` crates also depend on `compiler_builtins`, but if
we're not using submodules we can publish `compiler_builtins` to
crates.io and all crates can depend on it anyway! The basic strategy
then looks like:
* The standard library (or some transitive dep) decides to depend on a
crate `foo`.
* The standard library adds
```toml
[dependencies]
foo = { version = "0.1", features = ['rustc-dep-of-std'] }
```
* The crate `foo` has an optional dependency on `rustc-std-workspace-core`
* The crate `foo` has an optional dependency on `compiler_builtins`
* The crate `foo` has a feature `rustc-dep-of-std` which activates these
crates and any other necessary infrastructure in the crate.
A sample commit for `dlmalloc` [turns out to be quite simple][commit].
After that all `no_std` crates should largely build "as is" and still be
publishable on crates.io! Notably they should be able to continue to use
stable Rust if necessary, since the `rename-dependency` feature of Cargo
is soon stabilizing.
As a proof of concept, this commit removes the `dlmalloc`,
`libcompiler_builtins`, and `libc` submodules from this repository. Long
thorns in our side these are now gone for good and we can directly
depend on crates.io! It's hoped that in the long term we can bring in
other crates as necessary, but for now this is largely intended to
simply make it easier to manage these crates and remove submodules.
This should be a transparent non-breaking change for all users, but one
possible stickler is that this almost for sure breaks out-of-tree
`std`-building tools like `xargo` and `cargo-xbuild`. I think it should
be relatively easy to get them working, however, as all that's needed is
an entry in the `[patch]` section used to build the standard library.
Hopefully we can work with these tools to solve this problem!
[commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
2018-11-20 05:52:50 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-19 17:25:41 +00:00
|
|
|
checksum = "35055b1021724f4eb5262eb49130eebff23fc59fc5a14160e05faad8eeb36673"
|
2017-12-06 08:25:29 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"compiler_builtins",
|
|
|
|
"libc",
|
|
|
|
"rustc-std-workspace-core",
|
2017-12-06 08:25:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "either"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.6.0"
|
2017-12-06 08:25:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "cd56b59865bce947ac5958779cfa508f6c3b9497cc762b7e24a12d11ccde2c4f"
|
2017-12-06 08:25:29 +00:00
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "elasticlunr-rs"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "2.3.9"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "35622eb004c8f0c5e7e2032815f3314a93df0db30a1ce5c94e62c1ecc81e22b9"
|
2018-04-03 14:32:04 +00:00
|
|
|
dependencies = [
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"regex",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
|
|
|
"strum",
|
|
|
|
"strum_macros",
|
2018-04-03 14:32:04 +00:00
|
|
|
]
|
|
|
|
|
2020-02-25 08:47:07 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ena"
|
|
|
|
version = "0.14.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d7402b94a93c24e742487327a7cd839dc9d36fec9de9fb25b09f2dae459f36c3"
|
2019-03-19 21:30:07 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
2019-03-19 21:30:07 +00:00
|
|
|
]
|
|
|
|
|
2018-01-25 04:01:42 +00:00
|
|
|
[[package]]
|
|
|
|
name = "env_logger"
|
2019-08-29 11:22:21 +00:00
|
|
|
version = "0.6.2"
|
2018-11-16 11:08:23 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-29 11:22:21 +00:00
|
|
|
checksum = "aafcde04e90a5226a6443b7aabdb016ba2f8307c847d524724bd9b346dd1a2d3"
|
2018-11-16 11:08:23 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"atty",
|
2020-01-21 17:55:43 +00:00
|
|
|
"humantime 1.3.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"regex",
|
|
|
|
"termcolor",
|
2018-11-16 11:08:23 +00:00
|
|
|
]
|
|
|
|
|
2019-09-24 18:06:56 +00:00
|
|
|
[[package]]
|
|
|
|
name = "env_logger"
|
2019-10-30 20:03:19 +00:00
|
|
|
version = "0.7.1"
|
2019-09-24 18:06:56 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-10-30 20:03:19 +00:00
|
|
|
checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
|
2019-09-24 18:06:56 +00:00
|
|
|
dependencies = [
|
|
|
|
"atty",
|
2020-01-21 17:55:43 +00:00
|
|
|
"humantime 1.3.0",
|
2019-09-24 18:06:56 +00:00
|
|
|
"log",
|
|
|
|
"regex",
|
|
|
|
"termcolor",
|
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "error_index_generator"
|
|
|
|
version = "0.0.0"
|
2017-07-23 02:01:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustdoc",
|
2019-08-19 22:04:25 +00:00
|
|
|
"walkdir",
|
2017-07-23 02:01:58 +00:00
|
|
|
]
|
2016-09-02 08:55:29 +00:00
|
|
|
|
2019-11-26 11:06:30 +00:00
|
|
|
[[package]]
|
|
|
|
name = "expand-yaml-anchors"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"yaml-merge-keys",
|
2020-08-17 15:21:44 +00:00
|
|
|
"yaml-rust 0.4.4",
|
2019-11-26 11:06:30 +00:00
|
|
|
]
|
|
|
|
|
Introduce expect snapshot testing library into rustc
Snapshot testing is a technique for writing maintainable unit tests.
Unlike usual `assert_eq!` tests, snapshot tests allow
to *automatically* upgrade expected values on test failure.
In a sense, snapshot tests are inline-version of our beloved
UI-tests.
Example:
![expect](https://user-images.githubusercontent.com/1711539/90888810-3bcc8180-e3b7-11ea-9626-d06e89e1a0bb.gif)
A particular library we use, `expect_test` provides an `expect!`
macro, which creates a sort of self-updating string literal (by using
`file!` macro). Self-update is triggered by setting `UPDATE_EXPECT`
environmental variable (this info is printed during the test failure).
This library was extracted from rust-analyzer, where we use it for
most of our tests.
There are some other, more popular snapshot testing libraries:
* https://github.com/mitsuhiko/insta
* https://github.com/aaronabramov/k9
The main differences of `expect` are:
* first-class snapshot objects (so, tests can be written as functions,
rather than as macros)
* focus on inline-snapshots (but file snapshots are also supported)
* restricted feature set (only `assert_eq` and `assert_debug_eq`)
* no extra runtime (ie, no `cargo insta`)
See https://github.com/rust-analyzer/rust-analyzer/pull/5101 for a
an extended comparison.
It is unclear if this testing style will stick with rustc in the long
run. At the moment, rustc is mainly tested via integrated UI tests.
But in the library-ified world, unit-tests will become somewhat more
important (that's why use use `rustc_lexer` library-ified library as
an example in this PR). Given that the cost of removal shouldn't be
too high, it probably makes sense to just see if this flies!
2020-08-21 12:03:50 +00:00
|
|
|
[[package]]
|
|
|
|
name = "expect-test"
|
2020-08-31 19:04:09 +00:00
|
|
|
version = "1.0.1"
|
Introduce expect snapshot testing library into rustc
Snapshot testing is a technique for writing maintainable unit tests.
Unlike usual `assert_eq!` tests, snapshot tests allow
to *automatically* upgrade expected values on test failure.
In a sense, snapshot tests are inline-version of our beloved
UI-tests.
Example:
![expect](https://user-images.githubusercontent.com/1711539/90888810-3bcc8180-e3b7-11ea-9626-d06e89e1a0bb.gif)
A particular library we use, `expect_test` provides an `expect!`
macro, which creates a sort of self-updating string literal (by using
`file!` macro). Self-update is triggered by setting `UPDATE_EXPECT`
environmental variable (this info is printed during the test failure).
This library was extracted from rust-analyzer, where we use it for
most of our tests.
There are some other, more popular snapshot testing libraries:
* https://github.com/mitsuhiko/insta
* https://github.com/aaronabramov/k9
The main differences of `expect` are:
* first-class snapshot objects (so, tests can be written as functions,
rather than as macros)
* focus on inline-snapshots (but file snapshots are also supported)
* restricted feature set (only `assert_eq` and `assert_debug_eq`)
* no extra runtime (ie, no `cargo insta`)
See https://github.com/rust-analyzer/rust-analyzer/pull/5101 for a
an extended comparison.
It is unclear if this testing style will stick with rustc in the long
run. At the moment, rustc is mainly tested via integrated UI tests.
But in the library-ified world, unit-tests will become somewhat more
important (that's why use use `rustc_lexer` library-ified library as
an example in this PR). Given that the cost of removal shouldn't be
too high, it probably makes sense to just see if this flies!
2020-08-21 12:03:50 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-31 19:04:09 +00:00
|
|
|
checksum = "ceb96f3eaa0d4e8769c52dacfd4eb60183b817ed2f176171b3c691d5022b0f2e"
|
Introduce expect snapshot testing library into rustc
Snapshot testing is a technique for writing maintainable unit tests.
Unlike usual `assert_eq!` tests, snapshot tests allow
to *automatically* upgrade expected values on test failure.
In a sense, snapshot tests are inline-version of our beloved
UI-tests.
Example:
![expect](https://user-images.githubusercontent.com/1711539/90888810-3bcc8180-e3b7-11ea-9626-d06e89e1a0bb.gif)
A particular library we use, `expect_test` provides an `expect!`
macro, which creates a sort of self-updating string literal (by using
`file!` macro). Self-update is triggered by setting `UPDATE_EXPECT`
environmental variable (this info is printed during the test failure).
This library was extracted from rust-analyzer, where we use it for
most of our tests.
There are some other, more popular snapshot testing libraries:
* https://github.com/mitsuhiko/insta
* https://github.com/aaronabramov/k9
The main differences of `expect` are:
* first-class snapshot objects (so, tests can be written as functions,
rather than as macros)
* focus on inline-snapshots (but file snapshots are also supported)
* restricted feature set (only `assert_eq` and `assert_debug_eq`)
* no extra runtime (ie, no `cargo insta`)
See https://github.com/rust-analyzer/rust-analyzer/pull/5101 for a
an extended comparison.
It is unclear if this testing style will stick with rustc in the long
run. At the moment, rustc is mainly tested via integrated UI tests.
But in the library-ified world, unit-tests will become somewhat more
important (that's why use use `rustc_lexer` library-ified library as
an example in this PR). Given that the cost of removal shouldn't be
too high, it probably makes sense to just see if this flies!
2020-08-21 12:03:50 +00:00
|
|
|
dependencies = [
|
|
|
|
"difference",
|
|
|
|
"once_cell",
|
|
|
|
]
|
|
|
|
|
2017-12-10 17:42:49 +00:00
|
|
|
[[package]]
|
|
|
|
name = "failure"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.8"
|
2017-12-10 17:42:49 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86"
|
2017-12-10 17:42:49 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"backtrace",
|
|
|
|
"failure_derive",
|
2017-12-10 17:42:49 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "failure_derive"
|
2020-05-05 11:26:16 +00:00
|
|
|
version = "0.1.8"
|
2017-12-10 17:42:49 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-05 11:26:16 +00:00
|
|
|
checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4"
|
2017-12-10 17:42:49 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-05-05 11:26:16 +00:00
|
|
|
"synstructure",
|
2017-12-10 17:42:49 +00:00
|
|
|
]
|
|
|
|
|
2019-01-19 02:39:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "fake-simd"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed"
|
2019-01-19 02:39:37 +00:00
|
|
|
|
2018-04-18 15:43:59 +00:00
|
|
|
[[package]]
|
|
|
|
name = "filetime"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.12"
|
2018-04-18 15:43:59 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "3ed85775dcc68644b5c950ac06a2b23768d3bc9390464151aaf27136998dcf9e"
|
2018-04-18 15:43:59 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-04-18 15:43:59 +00:00
|
|
|
]
|
|
|
|
|
2020-03-03 16:25:03 +00:00
|
|
|
[[package]]
|
|
|
|
name = "fixedbitset"
|
2020-05-27 00:19:19 +00:00
|
|
|
version = "0.2.0"
|
2020-03-03 16:25:03 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-27 00:19:19 +00:00
|
|
|
checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d"
|
2020-03-03 16:25:03 +00:00
|
|
|
|
2017-12-31 14:34:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "flate2"
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
version = "1.0.16"
|
2017-12-31 14:34:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
checksum = "68c90b0fc46cf89d227cc78b40e494ff81287a92dd07631e5af0d06fe3cf885e"
|
2017-12-31 14:34:29 +00:00
|
|
|
dependencies = [
|
2019-11-12 18:14:48 +00:00
|
|
|
"cfg-if",
|
2019-08-15 00:45:09 +00:00
|
|
|
"crc32fast",
|
|
|
|
"libc",
|
|
|
|
"libz-sys",
|
2019-11-12 18:14:48 +00:00
|
|
|
"miniz_oxide",
|
2017-12-31 14:34:29 +00:00
|
|
|
]
|
|
|
|
|
2017-07-18 21:26:55 +00:00
|
|
|
[[package]]
|
|
|
|
name = "fnv"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.7"
|
2017-07-18 21:26:55 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
2017-07-18 21:26:55 +00:00
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "foreign-types"
|
2017-12-06 08:25:29 +00:00
|
|
|
version = "0.3.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
|
2017-12-06 08:25:29 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"foreign-types-shared",
|
2017-12-06 08:25:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "foreign-types-shared"
|
|
|
|
version = "0.1.1"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
|
2017-04-29 23:11:58 +00:00
|
|
|
|
2018-08-28 04:33:26 +00:00
|
|
|
[[package]]
|
|
|
|
name = "fortanix-sgx-abi"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.3"
|
std: Depend directly on crates.io crates
Ever since we added a Cargo-based build system for the compiler the
standard library has always been a little special, it's never been able
to depend on crates.io crates for runtime dependencies. This has been a
result of various limitations, namely that Cargo doesn't understand that
crates from crates.io depend on libcore, so Cargo tries to build crates
before libcore is finished.
I had an idea this afternoon, however, which lifts the strategy
from #52919 to directly depend on crates.io crates from the standard
library. After all is said and done this removes a whopping three
submodules that we need to manage!
The basic idea here is that for any crate `std` depends on it adds an
*optional* dependency on an empty crate on crates.io, in this case named
`rustc-std-workspace-core`. This crate is overridden via `[patch]` in
this repository to point to a local crate we write, and *that* has a
`path` dependency on libcore.
Note that all `no_std` crates also depend on `compiler_builtins`, but if
we're not using submodules we can publish `compiler_builtins` to
crates.io and all crates can depend on it anyway! The basic strategy
then looks like:
* The standard library (or some transitive dep) decides to depend on a
crate `foo`.
* The standard library adds
```toml
[dependencies]
foo = { version = "0.1", features = ['rustc-dep-of-std'] }
```
* The crate `foo` has an optional dependency on `rustc-std-workspace-core`
* The crate `foo` has an optional dependency on `compiler_builtins`
* The crate `foo` has a feature `rustc-dep-of-std` which activates these
crates and any other necessary infrastructure in the crate.
A sample commit for `dlmalloc` [turns out to be quite simple][commit].
After that all `no_std` crates should largely build "as is" and still be
publishable on crates.io! Notably they should be able to continue to use
stable Rust if necessary, since the `rename-dependency` feature of Cargo
is soon stabilizing.
As a proof of concept, this commit removes the `dlmalloc`,
`libcompiler_builtins`, and `libc` submodules from this repository. Long
thorns in our side these are now gone for good and we can directly
depend on crates.io! It's hoped that in the long term we can bring in
other crates as necessary, but for now this is largely intended to
simply make it easier to manage these crates and remove submodules.
This should be a transparent non-breaking change for all users, but one
possible stickler is that this almost for sure breaks out-of-tree
`std`-building tools like `xargo` and `cargo-xbuild`. I think it should
be relatively easy to get them working, however, as all that's needed is
an entry in the `[patch]` section used to build the standard library.
Hopefully we can work with these tools to solve this problem!
[commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
2018-11-20 05:52:50 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "c56c422ef86062869b2d57ae87270608dc5929969dd130a6e248979cf4fb6ca6"
|
2018-08-28 04:33:26 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-core",
|
2018-08-28 04:33:26 +00:00
|
|
|
]
|
|
|
|
|
2018-10-21 02:15:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "fs_extra"
|
|
|
|
version = "1.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "5f2a4a2034423744d2cc7ca2068453168dcdb82c438419e639a26bd87839c674"
|
2018-10-21 02:15:06 +00:00
|
|
|
|
2018-07-06 00:34:00 +00:00
|
|
|
[[package]]
|
|
|
|
name = "fst"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.5"
|
2018-07-06 00:34:00 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "927fb434ff9f0115b215dc0efd2e4fbdd7448522a92a1aa37c77d6a2f8f1ebd6"
|
2018-07-06 00:34:00 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"byteorder",
|
2018-07-06 00:34:00 +00:00
|
|
|
]
|
|
|
|
|
2017-12-06 08:25:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "fuchsia-zircon"
|
2018-01-08 21:56:22 +00:00
|
|
|
version = "0.3.3"
|
2017-12-06 08:25:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
|
2017-12-06 08:25:29 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
|
|
|
"fuchsia-zircon-sys",
|
2017-12-06 08:25:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "fuchsia-zircon-sys"
|
2018-01-08 21:56:22 +00:00
|
|
|
version = "0.3.3"
|
2017-12-06 08:25:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
|
2017-12-06 08:25:29 +00:00
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "futf"
|
2018-07-02 16:33:16 +00:00
|
|
|
version = "0.1.4"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "7c9c1ce3fa9336301af935ab852c437817d14cd33690446569392e65170aac3b"
|
2018-04-03 14:32:04 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"mac",
|
|
|
|
"new_debug_unreachable",
|
2018-04-03 14:32:04 +00:00
|
|
|
]
|
|
|
|
|
2017-07-19 01:32:12 +00:00
|
|
|
[[package]]
|
|
|
|
name = "futures"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.29"
|
2016-09-02 08:55:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "1b980f2816d6ee8673b6517b52cb0e808a180efc92e5c19d02cdda79066703ef"
|
2016-09-02 08:55:29 +00:00
|
|
|
|
2018-08-14 21:27:26 +00:00
|
|
|
[[package]]
|
|
|
|
name = "fwdansi"
|
2020-07-29 18:02:05 +00:00
|
|
|
version = "1.1.0"
|
2018-08-14 21:27:26 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-07-29 18:02:05 +00:00
|
|
|
checksum = "08c1f5787fe85505d1f7777268db5103d80a7a374d2316a7ce262e57baf8f208"
|
2018-08-14 21:27:26 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"memchr",
|
|
|
|
"termcolor",
|
2018-08-14 21:27:26 +00:00
|
|
|
]
|
|
|
|
|
2019-01-19 02:39:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "generic-array"
|
2020-03-31 05:17:15 +00:00
|
|
|
version = "0.12.3"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 05:17:15 +00:00
|
|
|
checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec"
|
2019-01-19 02:39:37 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"typenum",
|
2019-01-19 02:39:37 +00:00
|
|
|
]
|
|
|
|
|
2020-10-01 15:15:12 +00:00
|
|
|
[[package]]
|
|
|
|
name = "generic-array"
|
|
|
|
version = "0.14.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817"
|
|
|
|
dependencies = [
|
|
|
|
"typenum",
|
|
|
|
"version_check",
|
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "getopts"
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
version = "0.2.21"
|
2016-09-02 08:55:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5"
|
2019-04-30 19:37:36 +00:00
|
|
|
dependencies = [
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
"rustc-std-workspace-core",
|
|
|
|
"rustc-std-workspace-std",
|
2019-08-15 00:45:09 +00:00
|
|
|
"unicode-width",
|
2019-04-30 19:37:36 +00:00
|
|
|
]
|
2016-09-02 08:55:29 +00:00
|
|
|
|
2019-08-01 15:02:26 +00:00
|
|
|
[[package]]
|
|
|
|
name = "getrandom"
|
2020-01-08 15:33:57 +00:00
|
|
|
version = "0.1.14"
|
2019-08-01 15:02:26 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-08 15:33:57 +00:00
|
|
|
checksum = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb"
|
2019-08-01 15:02:26 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
2020-01-08 15:33:57 +00:00
|
|
|
"wasi",
|
2019-08-01 15:02:26 +00:00
|
|
|
]
|
|
|
|
|
2020-09-17 18:04:20 +00:00
|
|
|
[[package]]
|
|
|
|
name = "getrandom"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ee8025cf36f917e6a52cce185b7c7177689b838b7ec138364e50cc2277a56cf4"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
|
|
|
"wasi",
|
|
|
|
]
|
|
|
|
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "gimli"
|
|
|
|
version = "0.22.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724"
|
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "git2"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.13.8"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "e6ac22e49b7d886b6802c66662b12609452248b1bc9e87d6d83ecea3db96f557"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
|
|
|
"libc",
|
|
|
|
"libgit2-sys",
|
|
|
|
"log",
|
|
|
|
"openssl-probe",
|
|
|
|
"openssl-sys",
|
2020-08-17 15:21:44 +00:00
|
|
|
"url 2.1.1",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "git2-curl"
|
2020-03-11 06:16:19 +00:00
|
|
|
version = "0.14.0"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-11 06:16:19 +00:00
|
|
|
checksum = "502d532a2d06184beb3bc869d4d90236e60934e3382c921b203fa3c33e212bd7"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"curl",
|
|
|
|
"git2",
|
|
|
|
"log",
|
2020-08-17 15:21:44 +00:00
|
|
|
"url 2.1.1",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "glob"
|
2019-03-12 20:34:47 +00:00
|
|
|
version = "0.3.0"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
|
2017-04-29 23:11:58 +00:00
|
|
|
|
2017-07-18 21:26:55 +00:00
|
|
|
[[package]]
|
|
|
|
name = "globset"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.5"
|
2017-07-18 21:26:55 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "7ad1da430bd7281dde2576f44c84cc3f0f7b475e7202cd503042dff01a8c8120"
|
2017-07-18 21:26:55 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"aho-corasick",
|
|
|
|
"bstr",
|
|
|
|
"fnv",
|
|
|
|
"log",
|
|
|
|
"regex",
|
2017-07-18 21:26:55 +00:00
|
|
|
]
|
|
|
|
|
2017-02-07 23:13:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "handlebars"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "3.4.0"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "5deefd4816fb852b1ff3cb48f6c41da67be2d0e1d20b26a7a3b076da11f064b1"
|
2019-01-19 02:39:37 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"pest",
|
|
|
|
"pest_derive",
|
2020-08-17 15:21:44 +00:00
|
|
|
"quick-error 2.0.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2019-01-19 02:39:37 +00:00
|
|
|
]
|
|
|
|
|
2019-09-21 10:56:05 +00:00
|
|
|
[[package]]
|
|
|
|
name = "hashbrown"
|
2020-09-03 20:32:53 +00:00
|
|
|
version = "0.9.0"
|
2019-09-21 10:56:05 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-03 20:32:53 +00:00
|
|
|
checksum = "00d63df3d41950fb462ed38308eea019113ad1508da725bbedcd0fa5a85ef5f7"
|
2019-09-21 10:56:05 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
2019-07-08 21:52:07 +00:00
|
|
|
]
|
|
|
|
|
2018-12-08 14:11:47 +00:00
|
|
|
[[package]]
|
|
|
|
name = "heck"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.1"
|
2018-12-08 14:11:47 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205"
|
2018-12-08 14:11:47 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"unicode-segmentation",
|
2018-12-08 14:11:47 +00:00
|
|
|
]
|
|
|
|
|
2019-10-20 07:55:10 +00:00
|
|
|
[[package]]
|
|
|
|
name = "hermit-abi"
|
2020-07-06 18:43:51 +00:00
|
|
|
version = "0.1.15"
|
2019-10-20 07:55:10 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-07-06 18:43:51 +00:00
|
|
|
checksum = "3deed196b6e7f9e44a2ae8d94225d80302d81208b1bb673fd21fe634645c85a9"
|
2019-10-20 07:55:10 +00:00
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"libc",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
]
|
|
|
|
|
2018-01-08 21:56:22 +00:00
|
|
|
[[package]]
|
|
|
|
name = "hex"
|
2018-07-02 16:33:16 +00:00
|
|
|
version = "0.3.2"
|
2018-01-08 21:56:22 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "805026a5d0141ffc30abb3be3173848ad46a1b1664fe632428479619a3644d77"
|
2018-01-08 21:56:22 +00:00
|
|
|
|
2019-09-16 18:45:40 +00:00
|
|
|
[[package]]
|
|
|
|
name = "hex"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.2"
|
2019-09-16 18:45:40 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35"
|
2019-09-16 18:45:40 +00:00
|
|
|
|
2019-08-20 07:32:53 +00:00
|
|
|
[[package]]
|
|
|
|
name = "home"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.5.3"
|
2019-08-20 07:32:53 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "2456aef2e6b6a9784192ae780c0f15bc57df0e918585282325e8c8ac27737654"
|
2019-08-20 07:32:53 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-08-20 07:32:53 +00:00
|
|
|
]
|
|
|
|
|
2019-06-19 03:36:47 +00:00
|
|
|
[[package]]
|
|
|
|
name = "html5ever"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.25.1"
|
2019-06-19 03:36:47 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "aafcf38a1a36118242d29b92e1b08ef84e67e4a5ed06e0a80be20e6a32bfed6b"
|
2019-06-19 03:36:47 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"mac",
|
|
|
|
"markup5ever",
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-06-19 03:36:47 +00:00
|
|
|
]
|
|
|
|
|
2018-03-01 19:08:48 +00:00
|
|
|
[[package]]
|
|
|
|
name = "humantime"
|
2019-09-24 18:06:56 +00:00
|
|
|
version = "1.3.0"
|
2018-03-01 19:08:48 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-24 18:06:56 +00:00
|
|
|
checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f"
|
2018-03-01 19:08:48 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"quick-error 1.2.3",
|
2018-03-01 19:08:48 +00:00
|
|
|
]
|
|
|
|
|
2020-01-21 17:55:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "humantime"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "2.0.1"
|
2020-01-21 17:55:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a"
|
2020-01-21 17:55:43 +00:00
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "idna"
|
2018-07-17 16:04:22 +00:00
|
|
|
version = "0.1.5"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"matches",
|
|
|
|
"unicode-bidi",
|
|
|
|
"unicode-normalization",
|
2017-02-15 22:55:26 +00:00
|
|
|
]
|
|
|
|
|
2019-08-01 00:44:39 +00:00
|
|
|
[[package]]
|
|
|
|
name = "idna"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9"
|
2019-08-01 00:44:39 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"matches",
|
|
|
|
"unicode-bidi",
|
|
|
|
"unicode-normalization",
|
2019-08-01 00:44:39 +00:00
|
|
|
]
|
|
|
|
|
2017-12-06 08:25:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "if_chain"
|
2019-05-26 17:21:54 +00:00
|
|
|
version = "1.0.0"
|
2017-12-06 08:25:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "c3360c7b59e5ffa2653671fb74b4741a5d343c03f331c0a4aeda42b5c2b0ec7d"
|
2017-12-06 08:25:29 +00:00
|
|
|
|
2017-07-18 21:26:55 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ignore"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.16"
|
2017-07-18 21:26:55 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "22dcbf2a4a289528dbef21686354904e1c694ac642610a9bff9e7df730d9ec72"
|
2017-07-18 21:26:55 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"globset",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"memchr",
|
|
|
|
"regex",
|
|
|
|
"same-file",
|
2020-05-26 04:04:59 +00:00
|
|
|
"thread_local",
|
2019-08-15 00:45:09 +00:00
|
|
|
"walkdir",
|
|
|
|
"winapi-util",
|
2017-07-18 21:26:55 +00:00
|
|
|
]
|
|
|
|
|
2018-12-03 01:33:20 +00:00
|
|
|
[[package]]
|
|
|
|
name = "im-rc"
|
2020-05-18 22:41:57 +00:00
|
|
|
version = "15.0.0"
|
2018-12-03 01:33:20 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-18 22:41:57 +00:00
|
|
|
checksum = "3ca8957e71f04a205cb162508f9326aea04676c8dfd0711220190d6b83664f3f"
|
2018-12-03 01:33:20 +00:00
|
|
|
dependencies = [
|
2019-11-25 16:14:07 +00:00
|
|
|
"bitmaps",
|
2020-08-17 15:21:44 +00:00
|
|
|
"rand_core",
|
2019-11-25 16:14:07 +00:00
|
|
|
"rand_xoshiro",
|
2019-08-15 00:45:09 +00:00
|
|
|
"sized-chunks",
|
|
|
|
"typenum",
|
2020-02-13 17:39:40 +00:00
|
|
|
"version_check",
|
2018-12-03 01:33:20 +00:00
|
|
|
]
|
|
|
|
|
2019-05-14 16:42:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "indexmap"
|
2020-09-03 20:32:53 +00:00
|
|
|
version = "1.6.0"
|
2019-05-14 16:42:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-03 20:32:53 +00:00
|
|
|
checksum = "55e2e4c765aa53a0424761bf9f41aa7a6ac1efa87238f59560640e27fca028f2"
|
2020-08-08 00:03:47 +00:00
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
"hashbrown",
|
|
|
|
]
|
2019-05-14 16:42:57 +00:00
|
|
|
|
2017-05-08 22:01:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "installer"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-05-25 00:08:45 +00:00
|
|
|
"anyhow",
|
2019-08-15 00:45:09 +00:00
|
|
|
"clap",
|
|
|
|
"flate2",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"num_cpus",
|
|
|
|
"rayon",
|
|
|
|
"remove_dir_all",
|
|
|
|
"tar",
|
|
|
|
"walkdir",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-08-15 00:45:09 +00:00
|
|
|
"xz2",
|
2017-05-08 22:01:13 +00:00
|
|
|
]
|
|
|
|
|
2020-08-17 15:21:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "instant"
|
|
|
|
version = "0.1.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5b141fdc7836c525d4d594027d318c84161ca17aaf8113ab1f81ab93ae897485"
|
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "iovec"
|
2020-01-14 19:52:46 +00:00
|
|
|
version = "0.1.4"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-14 19:52:46 +00:00
|
|
|
checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "itertools"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.8.2"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "f56a2d0bc861f9165be4eb3442afd3c236d8a98afd426f65d92324ae1091a484"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"either",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2020-03-12 20:47:47 +00:00
|
|
|
[[package]]
|
|
|
|
name = "itertools"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b"
|
|
|
|
dependencies = [
|
|
|
|
"either",
|
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
2017-06-05 16:36:48 +00:00
|
|
|
name = "itoa"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.6"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6"
|
2017-04-29 23:11:58 +00:00
|
|
|
|
2018-10-21 02:15:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "jemalloc-sys"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.2"
|
2018-10-21 02:15:06 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "0d3b9f3f5c9b31aa0f5ed3260385ac205db665baa41d49bb8338008ae94ede45"
|
2018-10-21 02:15:06 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"fs_extra",
|
|
|
|
"libc",
|
2018-10-21 02:15:06 +00:00
|
|
|
]
|
|
|
|
|
2017-02-20 00:20:57 +00:00
|
|
|
[[package]]
|
2017-06-05 16:36:48 +00:00
|
|
|
name = "jobserver"
|
2020-01-30 07:47:01 +00:00
|
|
|
version = "0.1.21"
|
2017-02-20 00:20:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-30 07:47:01 +00:00
|
|
|
checksum = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2"
|
2017-06-05 16:36:48 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2017-06-05 16:36:48 +00:00
|
|
|
]
|
2017-02-20 00:20:57 +00:00
|
|
|
|
2018-08-25 16:17:55 +00:00
|
|
|
[[package]]
|
|
|
|
name = "json"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.11.15"
|
2018-08-25 16:17:55 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "92c245af8786f6ac35f95ca14feca9119e71339aaab41e878e7cdd655c97e9e5"
|
2018-08-25 16:17:55 +00:00
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-client-transports"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "14.2.1"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "2773fa94a2a1fd51efb89a8f45b8861023dbb415d18d3c9235ae9388d780f9ec"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
|
|
|
"failure",
|
|
|
|
"futures",
|
|
|
|
"jsonrpc-core",
|
|
|
|
"jsonrpc-pubsub",
|
|
|
|
"jsonrpc-server-utils",
|
|
|
|
"log",
|
|
|
|
"parity-tokio-ipc",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"tokio",
|
|
|
|
"url 1.7.2",
|
|
|
|
]
|
|
|
|
|
2017-07-19 01:32:12 +00:00
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-core"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "14.2.0"
|
2017-07-19 01:32:12 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "a0747307121ffb9703afd93afbd0fb4f854c38fb873f2c8b90e0e902f27c7b62"
|
2017-07-19 01:32:12 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"futures",
|
|
|
|
"log",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
2017-07-19 01:32:12 +00:00
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-core-client"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "14.2.0"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "34221123bc79b66279a3fde2d3363553835b43092d629b34f2e760c44dc94713"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
|
|
|
"jsonrpc-client-transports",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-derive"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "14.2.1"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "0fadf6945e227246825a583514534d864554e9f23d80b3c77d034b10983db5ef"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
|
|
|
"proc-macro-crate",
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-09-08 08:28:11 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-ipc-server"
|
2020-02-12 14:47:31 +00:00
|
|
|
version = "14.0.3"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-02-12 14:47:31 +00:00
|
|
|
checksum = "b579cd0840d7db3ebaadf52f6f31ec601a260e78d610e44f68634f919e34497a"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
|
|
|
"jsonrpc-core",
|
|
|
|
"jsonrpc-server-utils",
|
|
|
|
"log",
|
|
|
|
"parity-tokio-ipc",
|
2020-02-12 14:47:31 +00:00
|
|
|
"parking_lot 0.9.0",
|
2019-09-08 08:28:11 +00:00
|
|
|
"tokio-service",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-pubsub"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "14.2.0"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "2d44f5602a11d657946aac09357956d2841299ed422035edf140c552cb057986"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
|
|
|
"jsonrpc-core",
|
|
|
|
"log",
|
2020-04-10 16:31:31 +00:00
|
|
|
"parking_lot 0.10.2",
|
2020-08-17 15:21:44 +00:00
|
|
|
"rand",
|
2019-09-08 08:28:11 +00:00
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-server-utils"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "14.2.0"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "56cbfb462e7f902e21121d9f0d1c2b77b2c5b642e1a4e8f4ebfa2e15b94402bb"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
|
|
|
"bytes",
|
|
|
|
"globset",
|
|
|
|
"jsonrpc-core",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-09-08 08:28:11 +00:00
|
|
|
"log",
|
|
|
|
"tokio",
|
|
|
|
"tokio-codec",
|
2019-11-12 18:14:48 +00:00
|
|
|
"unicase",
|
2019-09-08 08:28:11 +00:00
|
|
|
]
|
|
|
|
|
2017-02-07 23:13:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "kernel32-sys"
|
|
|
|
version = "0.2.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
|
2017-02-07 23:13:57 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"winapi 0.2.8",
|
|
|
|
"winapi-build",
|
2017-02-07 23:13:57 +00:00
|
|
|
]
|
|
|
|
|
2017-12-10 17:42:49 +00:00
|
|
|
[[package]]
|
|
|
|
name = "lazy_static"
|
2020-01-08 15:33:57 +00:00
|
|
|
version = "1.4.0"
|
2017-12-10 17:42:49 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-08 15:33:57 +00:00
|
|
|
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
2017-12-10 17:42:49 +00:00
|
|
|
|
2018-02-26 17:07:16 +00:00
|
|
|
[[package]]
|
|
|
|
name = "lazycell"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.3.0"
|
2018-02-26 17:07:16 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
2018-02-26 17:07:16 +00:00
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "libc"
|
2020-09-10 12:37:50 +00:00
|
|
|
version = "0.2.77"
|
2016-09-02 08:55:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-10 12:37:50 +00:00
|
|
|
checksum = "f2f96b10ec2560088a8e76961b00d47107b3a625fecb76dedb29ee7ccbf98235"
|
std: Depend directly on crates.io crates
Ever since we added a Cargo-based build system for the compiler the
standard library has always been a little special, it's never been able
to depend on crates.io crates for runtime dependencies. This has been a
result of various limitations, namely that Cargo doesn't understand that
crates from crates.io depend on libcore, so Cargo tries to build crates
before libcore is finished.
I had an idea this afternoon, however, which lifts the strategy
from #52919 to directly depend on crates.io crates from the standard
library. After all is said and done this removes a whopping three
submodules that we need to manage!
The basic idea here is that for any crate `std` depends on it adds an
*optional* dependency on an empty crate on crates.io, in this case named
`rustc-std-workspace-core`. This crate is overridden via `[patch]` in
this repository to point to a local crate we write, and *that* has a
`path` dependency on libcore.
Note that all `no_std` crates also depend on `compiler_builtins`, but if
we're not using submodules we can publish `compiler_builtins` to
crates.io and all crates can depend on it anyway! The basic strategy
then looks like:
* The standard library (or some transitive dep) decides to depend on a
crate `foo`.
* The standard library adds
```toml
[dependencies]
foo = { version = "0.1", features = ['rustc-dep-of-std'] }
```
* The crate `foo` has an optional dependency on `rustc-std-workspace-core`
* The crate `foo` has an optional dependency on `compiler_builtins`
* The crate `foo` has a feature `rustc-dep-of-std` which activates these
crates and any other necessary infrastructure in the crate.
A sample commit for `dlmalloc` [turns out to be quite simple][commit].
After that all `no_std` crates should largely build "as is" and still be
publishable on crates.io! Notably they should be able to continue to use
stable Rust if necessary, since the `rename-dependency` feature of Cargo
is soon stabilizing.
As a proof of concept, this commit removes the `dlmalloc`,
`libcompiler_builtins`, and `libc` submodules from this repository. Long
thorns in our side these are now gone for good and we can directly
depend on crates.io! It's hoped that in the long term we can bring in
other crates as necessary, but for now this is largely intended to
simply make it easier to manage these crates and remove submodules.
This should be a transparent non-breaking change for all users, but one
possible stickler is that this almost for sure breaks out-of-tree
`std`-building tools like `xargo` and `cargo-xbuild`. I think it should
be relatively easy to get them working, however, as all that's needed is
an entry in the `[patch]` section used to build the standard library.
Hopefully we can work with these tools to solve this problem!
[commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
2018-11-20 05:52:50 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc-std-workspace-core",
|
std: Depend directly on crates.io crates
Ever since we added a Cargo-based build system for the compiler the
standard library has always been a little special, it's never been able
to depend on crates.io crates for runtime dependencies. This has been a
result of various limitations, namely that Cargo doesn't understand that
crates from crates.io depend on libcore, so Cargo tries to build crates
before libcore is finished.
I had an idea this afternoon, however, which lifts the strategy
from #52919 to directly depend on crates.io crates from the standard
library. After all is said and done this removes a whopping three
submodules that we need to manage!
The basic idea here is that for any crate `std` depends on it adds an
*optional* dependency on an empty crate on crates.io, in this case named
`rustc-std-workspace-core`. This crate is overridden via `[patch]` in
this repository to point to a local crate we write, and *that* has a
`path` dependency on libcore.
Note that all `no_std` crates also depend on `compiler_builtins`, but if
we're not using submodules we can publish `compiler_builtins` to
crates.io and all crates can depend on it anyway! The basic strategy
then looks like:
* The standard library (or some transitive dep) decides to depend on a
crate `foo`.
* The standard library adds
```toml
[dependencies]
foo = { version = "0.1", features = ['rustc-dep-of-std'] }
```
* The crate `foo` has an optional dependency on `rustc-std-workspace-core`
* The crate `foo` has an optional dependency on `compiler_builtins`
* The crate `foo` has a feature `rustc-dep-of-std` which activates these
crates and any other necessary infrastructure in the crate.
A sample commit for `dlmalloc` [turns out to be quite simple][commit].
After that all `no_std` crates should largely build "as is" and still be
publishable on crates.io! Notably they should be able to continue to use
stable Rust if necessary, since the `rename-dependency` feature of Cargo
is soon stabilizing.
As a proof of concept, this commit removes the `dlmalloc`,
`libcompiler_builtins`, and `libc` submodules from this repository. Long
thorns in our side these are now gone for good and we can directly
depend on crates.io! It's hoped that in the long term we can bring in
other crates as necessary, but for now this is largely intended to
simply make it easier to manage these crates and remove submodules.
This should be a transparent non-breaking change for all users, but one
possible stickler is that this almost for sure breaks out-of-tree
`std`-building tools like `xargo` and `cargo-xbuild`. I think it should
be relatively easy to get them working, however, as all that's needed is
an entry in the `[patch]` section used to build the standard library.
Hopefully we can work with these tools to solve this problem!
[commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
2018-11-20 05:52:50 +00:00
|
|
|
]
|
2016-09-02 08:55:29 +00:00
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "libgit2-sys"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.12.9+1.0.1"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "9b33bf3d9d4c45b48ae1ea7c334be69994624dc0a69f833d5d9f7605f24b552b"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"libssh2-sys",
|
|
|
|
"libz-sys",
|
|
|
|
"openssl-sys",
|
|
|
|
"pkg-config",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
2018-09-20 21:37:53 +00:00
|
|
|
[[package]]
|
|
|
|
name = "libnghttp2-sys"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.4+1.41.0"
|
2018-09-20 21:37:53 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "03624ec6df166e79e139a2310ca213283d6b3c30810c54844f307086d4488df1"
|
2018-09-20 21:37:53 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"libc",
|
2018-09-20 21:37:53 +00:00
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "libssh2-sys"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.18"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "eafa907407504b0e683786d4aba47acf250f114d37357d56608333fd167dd0fc"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"libz-sys",
|
|
|
|
"openssl-sys",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "libz-sys"
|
2020-09-18 00:14:09 +00:00
|
|
|
version = "1.1.2"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-18 00:14:09 +00:00
|
|
|
checksum = "602113192b08db8f38796c4e85c39e960c145965140e918018bcde1952429655"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "linkchecker"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2019-11-26 11:06:30 +00:00
|
|
|
[[package]]
|
|
|
|
name = "linked-hash-map"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.5.3"
|
2019-11-26 11:06:30 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "8dd5a6d5999d9907cda8ed67bbd137d3af8085216c2ac62de5be860bd41f304a"
|
2019-11-26 11:06:30 +00:00
|
|
|
|
2020-09-08 22:09:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "lint-docs"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"serde_json",
|
|
|
|
"tempfile",
|
|
|
|
"walkdir",
|
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "lock_api"
|
2020-04-10 16:31:31 +00:00
|
|
|
version = "0.3.4"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-04-10 16:31:31 +00:00
|
|
|
checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
2019-12-04 17:40:16 +00:00
|
|
|
"scopeguard",
|
2019-09-08 08:28:11 +00:00
|
|
|
]
|
|
|
|
|
2020-08-17 15:21:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "lock_api"
|
|
|
|
version = "0.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "28247cc5a5be2f05fbcd76dd0cf2c7d3b5400cb978a28042abcd4fa0b3f8261c"
|
|
|
|
dependencies = [
|
|
|
|
"scopeguard",
|
|
|
|
]
|
|
|
|
|
2017-12-29 10:24:38 +00:00
|
|
|
[[package]]
|
|
|
|
name = "log"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.11"
|
2016-09-02 08:55:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b"
|
2017-12-29 10:24:38 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
2017-12-29 10:24:38 +00:00
|
|
|
]
|
2016-09-02 08:55:29 +00:00
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "lsp-codec"
|
2019-03-04 21:18:44 +00:00
|
|
|
version = "0.1.2"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "169d737ad89cf8ddd82d1804d9122f54568c49377665157277cc90d747b1d31a"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bytes",
|
|
|
|
"serde_json",
|
|
|
|
"tokio-codec",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "lsp-types"
|
2019-09-08 08:28:11 +00:00
|
|
|
version = "0.60.0"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-08 08:28:11 +00:00
|
|
|
checksum = "fe3edefcd66dde1f7f1df706f46520a3c93adc5ca4bc5747da6621195e894efd"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2019-09-08 08:28:11 +00:00
|
|
|
"serde_repr",
|
2020-08-17 15:21:44 +00:00
|
|
|
"url 2.1.1",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2017-05-08 22:01:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "lzma-sys"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.16"
|
2017-05-08 22:01:13 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "f24f76ec44a8ac23a31915d6e326bca17ce88da03096f1ff194925dc714dac99"
|
2017-05-08 22:01:13 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"pkg-config",
|
2017-05-08 22:01:13 +00:00
|
|
|
]
|
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "mac"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
2018-04-03 14:32:04 +00:00
|
|
|
|
2018-08-15 13:07:07 +00:00
|
|
|
[[package]]
|
|
|
|
name = "macro-utils"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.3"
|
2018-08-15 13:07:07 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "0e72f7deb758fea9ea7d290aebfa788763d0bffae12caa6406a25baaf8fa68a8"
|
2018-08-15 13:07:07 +00:00
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "maplit"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.2"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
|
2018-04-03 14:32:04 +00:00
|
|
|
|
2019-06-19 03:36:47 +00:00
|
|
|
[[package]]
|
|
|
|
name = "markup5ever"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.10.0"
|
2019-06-19 03:36:47 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "aae38d669396ca9b707bfc3db254bc382ddb94f57cc5c235f34623a669a01dab"
|
2019-06-19 03:36:47 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"phf",
|
|
|
|
"phf_codegen",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
|
|
|
"string_cache",
|
|
|
|
"string_cache_codegen",
|
|
|
|
"tendril",
|
2019-06-19 03:36:47 +00:00
|
|
|
]
|
|
|
|
|
2020-08-01 14:11:15 +00:00
|
|
|
[[package]]
|
|
|
|
name = "markup5ever_rcdom"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f015da43bcd8d4f144559a3423f4591d69b8ce0652c905374da7205df336ae2b"
|
|
|
|
dependencies = [
|
|
|
|
"html5ever",
|
|
|
|
"markup5ever",
|
|
|
|
"tendril",
|
|
|
|
"xml5ever",
|
|
|
|
]
|
|
|
|
|
2020-07-24 18:42:00 +00:00
|
|
|
[[package]]
|
|
|
|
name = "matchers"
|
|
|
|
version = "0.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1"
|
|
|
|
dependencies = [
|
|
|
|
"regex-automata",
|
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "matches"
|
2018-08-21 17:23:47 +00:00
|
|
|
version = "0.1.8"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"
|
2017-04-29 23:11:58 +00:00
|
|
|
|
2020-08-17 15:21:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "maybe-uninit"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
|
|
|
|
|
2020-03-31 05:17:15 +00:00
|
|
|
[[package]]
|
|
|
|
name = "md-5"
|
|
|
|
version = "0.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a18af3dcaf2b0219366cdb4e2af65a6101457b415c3d1a5c71dd9c2b7c77b9c8"
|
|
|
|
dependencies = [
|
2020-10-01 15:15:12 +00:00
|
|
|
"block-buffer 0.7.3",
|
|
|
|
"digest 0.8.1",
|
|
|
|
"opaque-debug 0.2.3",
|
2020-03-31 05:17:15 +00:00
|
|
|
]
|
|
|
|
|
2017-02-07 23:13:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "mdbook"
|
2020-09-23 23:18:59 +00:00
|
|
|
version = "0.4.3"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-23 23:18:59 +00:00
|
|
|
checksum = "29be448fcafb00c5a8966c4020c2a5ffbbc333e5b96d0bb5ef54b5bd0524d9ff"
|
2019-08-15 00:45:09 +00:00
|
|
|
dependencies = [
|
|
|
|
"ammonia",
|
2020-06-23 22:23:46 +00:00
|
|
|
"anyhow",
|
2019-08-15 00:45:09 +00:00
|
|
|
"chrono",
|
|
|
|
"clap",
|
|
|
|
"elasticlunr-rs",
|
2020-06-23 22:23:46 +00:00
|
|
|
"env_logger 0.7.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"handlebars",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"memchr",
|
|
|
|
"open",
|
2020-09-14 00:15:01 +00:00
|
|
|
"pulldown-cmark 0.7.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"regex",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
|
|
|
"shlex",
|
|
|
|
"tempfile",
|
2019-08-20 17:46:35 +00:00
|
|
|
"toml",
|
2019-01-19 02:39:37 +00:00
|
|
|
]
|
|
|
|
|
2019-04-04 23:41:49 +00:00
|
|
|
[[package]]
|
|
|
|
name = "measureme"
|
2020-01-03 11:01:53 +00:00
|
|
|
version = "0.7.1"
|
2019-04-04 23:41:49 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-03 11:01:53 +00:00
|
|
|
checksum = "fef709d3257013bba7cff14fc504e07e80631d3fe0f6d38ce63b8f6510ccb932"
|
2019-04-04 23:41:49 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"byteorder",
|
|
|
|
"memmap",
|
2020-02-12 14:47:31 +00:00
|
|
|
"parking_lot 0.9.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc-hash",
|
2019-04-04 23:41:49 +00:00
|
|
|
]
|
|
|
|
|
2017-12-06 08:25:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "memchr"
|
2020-05-26 04:04:59 +00:00
|
|
|
version = "2.3.3"
|
2017-12-06 08:25:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 04:04:59 +00:00
|
|
|
checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
|
2017-02-07 23:13:57 +00:00
|
|
|
|
2018-08-31 13:18:08 +00:00
|
|
|
[[package]]
|
|
|
|
name = "memmap"
|
2019-12-03 09:33:24 +00:00
|
|
|
version = "0.7.0"
|
2018-08-31 13:18:08 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-12-03 09:33:24 +00:00
|
|
|
checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b"
|
2018-08-31 13:18:08 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-08-31 13:18:08 +00:00
|
|
|
]
|
|
|
|
|
2019-07-25 13:57:25 +00:00
|
|
|
[[package]]
|
|
|
|
name = "memoffset"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.5.5"
|
2019-07-25 13:57:25 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "c198b026e1bbf08a937e94c6c60f9ec4a2267f5b0d2eec9c1b21b061ce2be55f"
|
2019-07-25 13:57:25 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"autocfg",
|
2019-07-25 13:57:25 +00:00
|
|
|
]
|
|
|
|
|
2020-09-12 04:42:52 +00:00
|
|
|
[[package]]
|
|
|
|
name = "merge"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "10bbef93abb1da61525bbc45eeaff6473a41907d19f8f9aa5168d214e10693e9"
|
|
|
|
dependencies = [
|
|
|
|
"merge_derive",
|
|
|
|
"num-traits",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "merge_derive"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "209d075476da2e63b4b29e72a2ef627b840589588e71400a25e3565c4f849d07"
|
|
|
|
dependencies = [
|
|
|
|
"proc-macro-error",
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
|
|
|
]
|
|
|
|
|
2018-05-10 22:02:05 +00:00
|
|
|
[[package]]
|
|
|
|
name = "minifier"
|
2019-07-28 18:24:52 +00:00
|
|
|
version = "0.0.33"
|
2018-05-10 22:02:05 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "70bf0db2475f5e627787da77ca52fe33c294063f49f4134b8bc662eedb5e7332"
|
2018-05-10 22:02:05 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"macro-utils",
|
2018-05-10 22:02:05 +00:00
|
|
|
]
|
|
|
|
|
2018-12-08 11:06:54 +00:00
|
|
|
[[package]]
|
|
|
|
name = "miniz_oxide"
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
version = "0.4.0"
|
2018-12-08 11:06:54 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
checksum = "be0f75932c1f6cfae3c04000e40114adf955636e19040f9c0a2c380702aa1c7f"
|
2018-12-08 11:06:54 +00:00
|
|
|
dependencies = [
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
"adler",
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
2018-12-08 11:06:54 +00:00
|
|
|
]
|
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "mio"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.6.22"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"cfg-if",
|
2019-08-15 00:45:09 +00:00
|
|
|
"fuchsia-zircon",
|
|
|
|
"fuchsia-zircon-sys",
|
|
|
|
"iovec",
|
|
|
|
"kernel32-sys",
|
|
|
|
"libc",
|
|
|
|
"log",
|
|
|
|
"miow 0.2.1",
|
|
|
|
"net2",
|
|
|
|
"slab",
|
|
|
|
"winapi 0.2.8",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "mio-named-pipes"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.7"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"mio",
|
2020-08-17 15:21:44 +00:00
|
|
|
"miow 0.3.5",
|
|
|
|
"winapi 0.3.9",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "mio-uds"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.6.8"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"iovec",
|
|
|
|
"libc",
|
|
|
|
"mio",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "miow"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"kernel32-sys",
|
|
|
|
"net2",
|
|
|
|
"winapi 0.2.8",
|
|
|
|
"ws2_32-sys",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2018-03-07 07:39:55 +00:00
|
|
|
[[package]]
|
|
|
|
name = "miow"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.5"
|
2018-03-07 07:39:55 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "07b88fb9795d4d36d62a012dfbf49a8f5cf12751f36d31a9dbe66d528e58979e"
|
2018-03-07 07:39:55 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"socket2",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-03-07 07:39:55 +00:00
|
|
|
]
|
|
|
|
|
2017-12-15 19:41:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "miri"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"colored",
|
2020-04-15 16:32:41 +00:00
|
|
|
"compiletest_rs",
|
2019-10-30 20:03:19 +00:00
|
|
|
"env_logger 0.7.1",
|
2020-09-17 18:04:20 +00:00
|
|
|
"getrandom 0.2.0",
|
2020-08-17 15:21:44 +00:00
|
|
|
"hex 0.4.2",
|
2020-06-01 18:17:20 +00:00
|
|
|
"libc",
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc-workspace-hack",
|
|
|
|
"rustc_version",
|
|
|
|
"shell-escape",
|
2017-12-15 19:41:58 +00:00
|
|
|
]
|
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "net2"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.34"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "2ba7c918ac76704fb42afcbbb43891e72731f3dcca3bef2a19786297baf14af7"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2018-07-02 16:33:16 +00:00
|
|
|
[[package]]
|
|
|
|
name = "new_debug_unreachable"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.4"
|
2018-02-26 03:15:45 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54"
|
2018-02-26 03:15:45 +00:00
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
2018-07-14 22:01:24 +00:00
|
|
|
name = "num-integer"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.43"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "8d59457e662d541ba17869cf51cf177c0b5f0cbf476c66bdc90bf1edac4f875b"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"autocfg",
|
2019-08-15 00:45:09 +00:00
|
|
|
"num-traits",
|
2017-05-08 22:01:13 +00:00
|
|
|
]
|
|
|
|
|
2017-02-20 00:20:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "num-traits"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.12"
|
2017-02-20 00:20:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "ac267bcc07f48ee5f8935ab0d24f316fb722d7a1292e2913f0cc196b29ffd611"
|
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
]
|
2017-02-20 00:20:57 +00:00
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "num_cpus"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.13.0"
|
2016-09-02 08:55:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3"
|
2016-09-02 08:55:29 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"hermit-abi",
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "object"
|
|
|
|
version = "0.20.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1ab52be62400ca80aa00285d25253d7f7c437b7375c4de678f5405d3afe82ca5"
|
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
]
|
|
|
|
|
2019-09-10 01:01:41 +00:00
|
|
|
[[package]]
|
|
|
|
name = "once_cell"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.4.1"
|
2019-09-10 01:01:41 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad"
|
2019-09-10 01:01:41 +00:00
|
|
|
|
2020-03-31 05:17:15 +00:00
|
|
|
[[package]]
|
|
|
|
name = "opaque-debug"
|
|
|
|
version = "0.2.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c"
|
|
|
|
|
2020-10-01 15:15:12 +00:00
|
|
|
[[package]]
|
|
|
|
name = "opaque-debug"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
|
|
|
|
|
2017-02-20 00:20:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "open"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.4.0"
|
2017-02-20 00:20:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "7c283bf0114efea9e42f1a60edea9859e8c47528eae09d01df4b29c1e489cc48"
|
|
|
|
dependencies = [
|
|
|
|
"winapi 0.3.9",
|
|
|
|
]
|
2017-02-20 00:20:57 +00:00
|
|
|
|
2018-08-21 17:23:47 +00:00
|
|
|
[[package]]
|
|
|
|
name = "opener"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.1"
|
2018-08-21 17:23:47 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "13117407ca9d0caf3a0e74f97b490a7e64c0ae3aa90a8b7085544d0c37b6f3ae"
|
2018-08-21 17:23:47 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-08-21 17:23:47 +00:00
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "openssl"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.10.30"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "8d575eff3665419f9b83678ff2815858ad9d11567e082f5ac1814baba4e2bcb4"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
|
|
|
"cfg-if",
|
|
|
|
"foreign-types",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
|
|
|
"openssl-sys",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "openssl-probe"
|
2017-12-10 17:42:49 +00:00
|
|
|
version = "0.1.2"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de"
|
2017-04-29 23:11:58 +00:00
|
|
|
|
2018-08-14 21:27:26 +00:00
|
|
|
[[package]]
|
|
|
|
name = "openssl-src"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "111.10.2+1.1.1g"
|
2018-08-14 21:27:26 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "a287fdb22e32b5b60624d4a5a7a02dbe82777f730ec0dbc42a0554326fef5a70"
|
2018-08-14 21:27:26 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
2018-08-14 21:27:26 +00:00
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "openssl-sys"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.9.58"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "a842db4709b604f0fe5d1170ae3565899be2ad3d9cbc72dedc789ac0511f78de"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2020-03-16 18:37:15 +00:00
|
|
|
"autocfg",
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"openssl-src",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
2018-07-06 00:34:00 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ordslice"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "dd20eec3dbe4376829cb7d80ae6ac45e0a766831dca50202ff2d40db46a8a024"
|
2018-07-06 00:34:00 +00:00
|
|
|
|
2020-03-26 13:10:35 +00:00
|
|
|
[[package]]
|
|
|
|
name = "output_vt100"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "53cdc5b785b7a58c5aad8216b3dfa114df64b0b06ae6e1501cef91df2fbdf8f9"
|
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2020-03-26 13:10:35 +00:00
|
|
|
]
|
|
|
|
|
2018-12-01 10:36:32 +00:00
|
|
|
[[package]]
|
|
|
|
name = "packed_simd"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.3"
|
2018-12-01 10:36:32 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "a85ea9fc0d4ac0deb6fe7911d38786b32fc11119afd9e9d38b84ff691ce64220"
|
2018-12-01 10:36:32 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
2018-12-01 10:36:32 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "panic_abort"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-05-22 03:04:57 +00:00
|
|
|
"cfg-if",
|
2019-08-15 00:45:09 +00:00
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
|
|
|
"libc",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "panic_unwind"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"alloc",
|
|
|
|
"cfg-if",
|
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
|
|
|
"libc",
|
|
|
|
"unwind",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "parity-tokio-ipc"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8281bf4f1d6429573f89589bf68d89451c46750977a8264f8ea3edbabeba7947"
|
|
|
|
dependencies = [
|
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"log",
|
|
|
|
"mio-named-pipes",
|
2020-08-17 15:21:44 +00:00
|
|
|
"miow 0.3.5",
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand",
|
2019-09-08 08:28:11 +00:00
|
|
|
"tokio",
|
|
|
|
"tokio-named-pipes",
|
|
|
|
"tokio-uds",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-09-08 08:28:11 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "parking_lot"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252"
|
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"lock_api 0.3.4",
|
2020-02-12 14:47:31 +00:00
|
|
|
"parking_lot_core 0.6.2",
|
2019-09-08 08:28:11 +00:00
|
|
|
"rustc_version",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2020-02-12 14:47:31 +00:00
|
|
|
[[package]]
|
|
|
|
name = "parking_lot"
|
2020-04-10 16:31:31 +00:00
|
|
|
version = "0.10.2"
|
2020-02-12 14:47:31 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-04-10 16:31:31 +00:00
|
|
|
checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e"
|
2020-02-12 14:47:31 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"lock_api 0.3.4",
|
|
|
|
"parking_lot_core 0.7.2",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "parking_lot"
|
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a4893845fa2ca272e647da5d0e46660a314ead9c2fdd9a883aabc32e481a8733"
|
|
|
|
dependencies = [
|
|
|
|
"instant",
|
|
|
|
"lock_api 0.4.1",
|
|
|
|
"parking_lot_core 0.8.0",
|
2020-02-12 14:47:31 +00:00
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "parking_lot_core"
|
|
|
|
version = "0.6.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
2020-08-17 15:21:44 +00:00
|
|
|
"cloudabi 0.0.3",
|
2019-09-08 08:28:11 +00:00
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
|
|
|
"rustc_version",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 0.6.13",
|
|
|
|
"winapi 0.3.9",
|
2019-09-08 08:28:11 +00:00
|
|
|
]
|
|
|
|
|
2020-02-12 14:47:31 +00:00
|
|
|
[[package]]
|
|
|
|
name = "parking_lot_core"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.7.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"cloudabi 0.0.3",
|
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
|
|
|
"smallvec 1.4.2",
|
|
|
|
"winapi 0.3.9",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "parking_lot_core"
|
|
|
|
version = "0.8.0"
|
2020-02-12 14:47:31 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "c361aa727dd08437f2f1447be8b59a33b0edd15e0fcee698f935613d9efbca9b"
|
2020-02-12 14:47:31 +00:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
2020-08-17 15:21:44 +00:00
|
|
|
"cloudabi 0.1.0",
|
|
|
|
"instant",
|
2020-02-12 14:47:31 +00:00
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
|
|
|
"winapi 0.3.9",
|
2020-02-12 14:47:31 +00:00
|
|
|
]
|
|
|
|
|
2020-07-17 22:01:27 +00:00
|
|
|
[[package]]
|
|
|
|
name = "pathdiff"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "877630b3de15c0b64cc52f659345724fbf6bdad9bd9566699fc53688f3c34a34"
|
|
|
|
|
2017-06-15 02:33:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "percent-encoding"
|
2017-12-06 08:25:29 +00:00
|
|
|
version = "1.0.1"
|
2017-06-15 02:33:06 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
|
2017-06-15 02:33:06 +00:00
|
|
|
|
2019-08-01 00:44:39 +00:00
|
|
|
[[package]]
|
|
|
|
name = "percent-encoding"
|
2019-11-12 18:14:48 +00:00
|
|
|
version = "2.1.0"
|
2019-08-01 00:44:39 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-11-12 18:14:48 +00:00
|
|
|
checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
|
2019-08-01 00:44:39 +00:00
|
|
|
|
2019-01-19 02:39:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "pest"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "2.1.3"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53"
|
2019-01-19 02:39:37 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"ucd-trie",
|
2019-01-19 02:39:37 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pest_derive"
|
|
|
|
version = "2.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0"
|
2019-01-19 02:39:37 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"pest",
|
|
|
|
"pest_generator",
|
2019-01-19 02:39:37 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pest_generator"
|
2020-05-05 11:26:29 +00:00
|
|
|
version = "2.1.3"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-05 11:26:29 +00:00
|
|
|
checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55"
|
2019-01-19 02:39:37 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"pest",
|
|
|
|
"pest_meta",
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-01-19 02:39:37 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pest_meta"
|
2020-03-31 05:17:15 +00:00
|
|
|
version = "2.1.3"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 05:17:15 +00:00
|
|
|
checksum = "54be6e404f5317079812fc8f9f5279de376d8856929e21c184ecf6bbd692a11d"
|
2019-01-19 02:39:37 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"maplit",
|
|
|
|
"pest",
|
|
|
|
"sha-1",
|
2019-01-19 02:39:37 +00:00
|
|
|
]
|
|
|
|
|
2020-03-03 16:25:03 +00:00
|
|
|
[[package]]
|
|
|
|
name = "petgraph"
|
2020-05-27 00:19:19 +00:00
|
|
|
version = "0.5.1"
|
2020-03-03 16:25:03 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-27 00:19:19 +00:00
|
|
|
checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7"
|
2020-03-03 16:25:03 +00:00
|
|
|
dependencies = [
|
|
|
|
"fixedbitset",
|
2020-05-27 00:19:19 +00:00
|
|
|
"indexmap",
|
2020-03-03 16:25:03 +00:00
|
|
|
]
|
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "phf"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.8.0"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12"
|
2018-04-03 14:32:04 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"phf_shared",
|
2018-04-03 14:32:04 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "phf_codegen"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.8.0"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815"
|
2018-04-03 14:32:04 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"phf_generator",
|
|
|
|
"phf_shared",
|
2018-04-03 14:32:04 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "phf_generator"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.8.0"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526"
|
2018-04-03 14:32:04 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"phf_shared",
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand",
|
2018-04-03 14:32:04 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "phf_shared"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.8.0"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7"
|
2018-04-03 14:32:04 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"siphasher",
|
2018-04-03 14:32:04 +00:00
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "pkg-config"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.18"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "d36492546b6af1463394d46f0c834346f31548646f6ba10849802c9c9a27ac33"
|
2017-04-29 23:11:58 +00:00
|
|
|
|
2018-05-24 21:52:01 +00:00
|
|
|
[[package]]
|
|
|
|
name = "polonius-engine"
|
2020-03-29 23:11:44 +00:00
|
|
|
version = "0.12.1"
|
2018-05-24 21:52:01 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-29 23:11:44 +00:00
|
|
|
checksum = "ef2558a4b464e185b36ee08a2937ebb62ea5464c38856cfb1465c97cb38db52d"
|
2018-05-29 11:52:51 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"datafrog",
|
|
|
|
"log",
|
|
|
|
"rustc-hash",
|
2018-05-29 11:52:51 +00:00
|
|
|
]
|
2018-05-24 21:52:01 +00:00
|
|
|
|
2019-08-01 15:02:26 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ppv-lite86"
|
2020-05-26 04:35:21 +00:00
|
|
|
version = "0.2.8"
|
2019-08-01 15:02:26 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 04:35:21 +00:00
|
|
|
checksum = "237a5ed80e274dbc66f86bd59c1e25edc039660be53194b5fe0a482e0f2612ea"
|
2019-08-01 15:02:26 +00:00
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "precomputed-hash"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
|
2018-04-03 14:32:04 +00:00
|
|
|
|
Add tests to rustbuild
In order to run tests, previous commits have cfg'd out various parts of
rustbuild. Generally speaking, these are filesystem-related operations
and process-spawning related parts. Then, rustbuild is run "as normal"
and the various steps that where run are retrieved from the cache and
checked against the expected results.
Note that this means that the current implementation primarily tests
"what" we build, but doesn't actually test that what we build *will*
build. In other words, it doesn't do any form of dependency verification
for any crate. This is possible to implement, but is considered future
work.
This implementation strives to cfg out as little code as possible; it
also does not currently test anywhere near all of rustbuild. The current
tests are also not checked for "correctness," rather, they simply
represent what we do as of this commit, which may be wrong.
Test cases are drawn from the old implementation of rustbuild, though
the expected results may vary.
2018-03-10 14:03:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "pretty_assertions"
|
2020-03-26 13:10:35 +00:00
|
|
|
version = "0.6.1"
|
Add tests to rustbuild
In order to run tests, previous commits have cfg'd out various parts of
rustbuild. Generally speaking, these are filesystem-related operations
and process-spawning related parts. Then, rustbuild is run "as normal"
and the various steps that where run are retrieved from the cache and
checked against the expected results.
Note that this means that the current implementation primarily tests
"what" we build, but doesn't actually test that what we build *will*
build. In other words, it doesn't do any form of dependency verification
for any crate. This is possible to implement, but is considered future
work.
This implementation strives to cfg out as little code as possible; it
also does not currently test anywhere near all of rustbuild. The current
tests are also not checked for "correctness," rather, they simply
represent what we do as of this commit, which may be wrong.
Test cases are drawn from the old implementation of rustbuild, though
the expected results may vary.
2018-03-10 14:03:06 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-26 13:10:35 +00:00
|
|
|
checksum = "3f81e1644e1b54f5a68959a29aa86cde704219254669da328ecfdf6a1f09d427"
|
Add tests to rustbuild
In order to run tests, previous commits have cfg'd out various parts of
rustbuild. Generally speaking, these are filesystem-related operations
and process-spawning related parts. Then, rustbuild is run "as normal"
and the various steps that where run are retrieved from the cache and
checked against the expected results.
Note that this means that the current implementation primarily tests
"what" we build, but doesn't actually test that what we build *will*
build. In other words, it doesn't do any form of dependency verification
for any crate. This is possible to implement, but is considered future
work.
This implementation strives to cfg out as little code as possible; it
also does not currently test anywhere near all of rustbuild. The current
tests are also not checked for "correctness," rather, they simply
represent what we do as of this commit, which may be wrong.
Test cases are drawn from the old implementation of rustbuild, though
the expected results may vary.
2018-03-10 14:03:06 +00:00
|
|
|
dependencies = [
|
2020-07-24 18:42:00 +00:00
|
|
|
"ansi_term 0.11.0",
|
2020-03-26 13:10:35 +00:00
|
|
|
"ctor",
|
2019-08-15 00:45:09 +00:00
|
|
|
"difference",
|
2020-03-26 13:10:35 +00:00
|
|
|
"output_vt100",
|
Add tests to rustbuild
In order to run tests, previous commits have cfg'd out various parts of
rustbuild. Generally speaking, these are filesystem-related operations
and process-spawning related parts. Then, rustbuild is run "as normal"
and the various steps that where run are retrieved from the cache and
checked against the expected results.
Note that this means that the current implementation primarily tests
"what" we build, but doesn't actually test that what we build *will*
build. In other words, it doesn't do any form of dependency verification
for any crate. This is possible to implement, but is considered future
work.
This implementation strives to cfg out as little code as possible; it
also does not currently test anywhere near all of rustbuild. The current
tests are also not checked for "correctness," rather, they simply
represent what we do as of this commit, which may be wrong.
Test cases are drawn from the old implementation of rustbuild, though
the expected results may vary.
2018-03-10 14:03:06 +00:00
|
|
|
]
|
|
|
|
|
2018-12-03 01:33:20 +00:00
|
|
|
[[package]]
|
|
|
|
name = "pretty_env_logger"
|
2020-02-10 19:47:38 +00:00
|
|
|
version = "0.4.0"
|
2018-12-03 01:33:20 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-02-10 19:47:38 +00:00
|
|
|
checksum = "926d36b9553851b8b0005f1275891b392ee4d2d833852c417ed025477350fb9d"
|
2018-12-03 01:33:20 +00:00
|
|
|
dependencies = [
|
2020-02-10 19:47:38 +00:00
|
|
|
"env_logger 0.7.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
2018-12-03 01:33:20 +00:00
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "proc-macro-crate"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.5"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
|
|
|
"toml",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "proc-macro-error"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.4"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"proc-macro-error-attr",
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-08-17 15:21:44 +00:00
|
|
|
"version_check",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "proc-macro-error-attr"
|
|
|
|
version = "1.0.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"version_check",
|
2018-04-02 15:43:55 +00:00
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "proc-macro2"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.19"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "04f5f085b5d71e2188cb8271e5da0161ad52c3f227a661a3c135fdf28e258b12"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"unicode-xid",
|
2019-09-08 08:28:11 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "proc_macro"
|
|
|
|
version = "0.0.0"
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
dependencies = [
|
|
|
|
"std",
|
|
|
|
]
|
2016-09-02 08:55:29 +00:00
|
|
|
|
2017-02-13 09:57:50 +00:00
|
|
|
[[package]]
|
|
|
|
name = "profiler_builtins"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
2017-06-04 14:54:39 +00:00
|
|
|
]
|
|
|
|
|
2018-11-02 15:14:24 +00:00
|
|
|
[[package]]
|
|
|
|
name = "psm"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.11"
|
2018-11-02 15:14:24 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "96e0536f6528466dbbbbe6b986c34175a8d0ff25b794c4bacda22e068cd2f2c5"
|
2018-11-02 15:14:24 +00:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
]
|
|
|
|
|
2019-09-19 08:32:31 +00:00
|
|
|
[[package]]
|
|
|
|
name = "pulldown-cmark"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.7.2"
|
2019-09-19 08:32:31 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "ca36dea94d187597e104a5c8e4b07576a8a45aa5db48a65e12940d3eb7461f55"
|
2019-09-19 08:32:31 +00:00
|
|
|
dependencies = [
|
|
|
|
"bitflags",
|
2020-06-23 22:23:46 +00:00
|
|
|
"getopts",
|
2019-09-19 08:32:31 +00:00
|
|
|
"memchr",
|
2019-11-12 18:14:48 +00:00
|
|
|
"unicase",
|
2019-04-20 17:03:59 +00:00
|
|
|
]
|
|
|
|
|
2020-09-14 00:15:01 +00:00
|
|
|
[[package]]
|
|
|
|
name = "pulldown-cmark"
|
|
|
|
version = "0.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ffade02495f22453cd593159ea2f59827aae7f53fa8323f756799b670881dcf8"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags",
|
|
|
|
"memchr",
|
|
|
|
"unicase",
|
|
|
|
]
|
|
|
|
|
2019-01-29 05:24:32 +00:00
|
|
|
[[package]]
|
|
|
|
name = "punycode"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.1"
|
2019-01-29 05:24:32 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "e9e1dcb320d6839f6edb64f7a4a59d39b30480d4d1765b56873f7c858538a5fe"
|
2019-01-29 05:24:32 +00:00
|
|
|
|
2017-02-07 23:13:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "quick-error"
|
2020-05-05 12:05:06 +00:00
|
|
|
version = "1.2.3"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-05 12:05:06 +00:00
|
|
|
checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
|
2017-04-29 23:11:58 +00:00
|
|
|
|
2020-08-17 15:21:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "quick-error"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3ac73b1112776fc109b2e61909bc46c7e1bf0d7f690ffb1676553acce16d5cda"
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
2017-12-06 08:25:29 +00:00
|
|
|
name = "quine-mc_cluskey"
|
|
|
|
version = "0.2.4"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "07589615d719a60c8dd8a4622e7946465dfef20d1a428f969e3443e7386d5f45"
|
2017-04-29 23:11:58 +00:00
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "quote"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.7"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
2018-04-02 15:43:55 +00:00
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "racer"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "2.1.38"
|
2017-02-07 23:13:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "51dd5fd4247115b28f3e038eb8cda76a0c6f9cb473f769f41f930af8adff22d0"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
|
|
|
"clap",
|
|
|
|
"derive_more",
|
2020-02-12 14:47:31 +00:00
|
|
|
"env_logger 0.7.1",
|
2020-08-17 15:21:44 +00:00
|
|
|
"humantime 2.0.1",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"rls-span",
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_ast_pretty",
|
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_errors",
|
|
|
|
"rustc-ap-rustc_parse",
|
|
|
|
"rustc-ap-rustc_session",
|
|
|
|
"rustc-ap-rustc_span",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
2017-02-07 23:13:57 +00:00
|
|
|
|
2019-08-01 15:02:26 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rand"
|
2020-01-08 15:33:57 +00:00
|
|
|
version = "0.7.3"
|
2019-08-01 15:02:26 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-08 15:33:57 +00:00
|
|
|
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
|
2019-08-01 15:02:26 +00:00
|
|
|
dependencies = [
|
2020-09-17 18:04:20 +00:00
|
|
|
"getrandom 0.1.14",
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand_chacha",
|
2020-08-17 15:21:44 +00:00
|
|
|
"rand_core",
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand_hc",
|
|
|
|
"rand_pcg",
|
2018-12-08 11:06:54 +00:00
|
|
|
]
|
|
|
|
|
2019-08-01 15:02:26 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rand_chacha"
|
2020-05-26 04:35:21 +00:00
|
|
|
version = "0.2.2"
|
2019-08-01 15:02:26 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 04:35:21 +00:00
|
|
|
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
|
2019-08-01 15:02:26 +00:00
|
|
|
dependencies = [
|
2020-05-26 04:35:21 +00:00
|
|
|
"ppv-lite86",
|
2020-08-17 15:21:44 +00:00
|
|
|
"rand_core",
|
2019-08-01 15:02:26 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_core"
|
2019-11-25 16:14:07 +00:00
|
|
|
version = "0.5.1"
|
2019-08-01 15:02:26 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-11-25 16:14:07 +00:00
|
|
|
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
|
2019-08-01 15:02:26 +00:00
|
|
|
dependencies = [
|
2020-09-17 18:04:20 +00:00
|
|
|
"getrandom 0.1.14",
|
2019-08-01 15:02:26 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_hc"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
|
2019-08-01 15:02:26 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"rand_core",
|
2019-06-10 18:22:31 +00:00
|
|
|
]
|
|
|
|
|
2018-12-08 11:06:54 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rand_pcg"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.2.1"
|
2018-12-08 11:06:54 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429"
|
2018-12-08 11:06:54 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"rand_core",
|
2018-12-08 11:06:54 +00:00
|
|
|
]
|
2018-07-26 21:58:55 +00:00
|
|
|
|
2019-04-19 07:37:33 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rand_xorshift"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "77d416b86801d23dde1aa643023b775c3a462efc0ed96443add11546cdf1dca8"
|
2019-04-19 07:37:33 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"rand_core",
|
2019-11-25 16:14:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_xoshiro"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a9fcdd2e881d02f1d9390ae47ad8e5696a9e4be7b547a1da2afbc61973217004"
|
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"rand_core",
|
2019-04-19 07:37:33 +00:00
|
|
|
]
|
|
|
|
|
2018-02-26 03:15:45 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rayon"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.3.1"
|
2018-02-26 03:15:45 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "62f02856753d04e03e26929f820d0a0a337ebe71f849801eea335d464b349080"
|
2018-02-26 03:15:45 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"autocfg",
|
2019-12-04 17:40:16 +00:00
|
|
|
"crossbeam-deque",
|
2019-08-15 00:45:09 +00:00
|
|
|
"either",
|
|
|
|
"rayon-core",
|
2017-12-06 08:25:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rayon-core"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.7.1"
|
2017-12-06 08:25:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "e92e15d89083484e11353891f1af602cc661426deb9564c298b270c726973280"
|
2017-12-06 08:25:29 +00:00
|
|
|
dependencies = [
|
2019-12-04 17:40:16 +00:00
|
|
|
"crossbeam-deque",
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-queue 0.2.3",
|
|
|
|
"crossbeam-utils 0.7.2",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"num_cpus",
|
2019-06-10 18:22:31 +00:00
|
|
|
]
|
|
|
|
|
2017-09-22 01:58:35 +00:00
|
|
|
[[package]]
|
|
|
|
name = "redox_syscall"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.57"
|
2017-12-06 08:25:29 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
|
2017-12-06 08:25:29 +00:00
|
|
|
|
2019-02-18 09:32:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "redox_users"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.4"
|
2019-02-18 09:32:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "09b23093265f8d200fa7b4c2c76297f47e681c655f6f1285a8780d6a022f7431"
|
2019-02-18 09:32:58 +00:00
|
|
|
dependencies = [
|
2020-09-17 18:04:20 +00:00
|
|
|
"getrandom 0.1.14",
|
2019-08-15 00:45:09 +00:00
|
|
|
"redox_syscall",
|
2020-08-17 15:21:44 +00:00
|
|
|
"rust-argon2",
|
2019-02-18 09:32:58 +00:00
|
|
|
]
|
|
|
|
|
2018-05-11 12:11:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "regex"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.3.9"
|
2018-05-11 12:11:06 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "9c3780fcf44b193bc4d09f36d2a3c87b251da4a046c87795a0d35f4f927ad8e6"
|
2018-05-11 12:11:06 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"aho-corasick",
|
|
|
|
"memchr",
|
|
|
|
"regex-syntax",
|
2020-05-26 04:04:59 +00:00
|
|
|
"thread_local",
|
2018-05-11 12:11:06 +00:00
|
|
|
]
|
|
|
|
|
2020-07-24 18:42:00 +00:00
|
|
|
[[package]]
|
|
|
|
name = "regex-automata"
|
|
|
|
version = "0.1.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ae1ded71d66a4a97f5e961fd0cb25a5f366a42a41570d16a763a69c092c26ae4"
|
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
|
|
|
"regex-syntax",
|
|
|
|
]
|
|
|
|
|
2018-05-11 12:11:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "regex-syntax"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.6.18"
|
2018-05-11 12:11:06 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "26412eb97c6b088a6997e05f69403a802a92d520de2f8e63c2b65f9e0f47c4e8"
|
2018-05-11 12:11:06 +00:00
|
|
|
|
travis: Parallelize tests on Android
Currently our slowest test suite on android, run-pass, takes over 5 times longer
than the x86_64 component (~400 -> ~2200s). Typically QEMU emulation does indeed
add overhead, but not 5x for this kind of workload. One of the slowest parts of
the Android process is that *compilation* happens serially. Tests themselves
need to run single-threaded on the emulator (due to how the test harness works)
and this forces the compiles themselves to be single threaded.
Now Travis gives us more than one core per machine, so it'd be much better if we
could take advantage of them! The emulator itself is still fundamentally
single-threaded, but we should see a nice speedup by sending binaries for it to
run much more quickly.
It turns out that we've already got all the tools to do this in-tree. The
qemu-test-{server,client} that are in use for the ARM Linux testing are a
perfect match for the Android emulator. This commit migrates the custom adb
management code in compiletest/rustbuild to the same qemu-test-{server,client}
implementation that ARM Linux uses.
This allows us to lift the parallelism restriction on the compiletest test
suites, namely run-pass. Consequently although we'll still basically run the
tests themselves in single threaded mode we'll be able to compile all of them in
parallel, keeping the pipeline much more full and using more cores for the work
at hand. Additionally the architecture here should be a bit speedier as it
should have less overhead than adb which is a whole new process on both the host
and the emulator!
Locally on an 8 core machine I've seen the run-pass test suite speed up from
taking nearly an hour to only taking 6 minutes. I don't think we'll see quite a
drastic speedup on Travis but I'm hoping this change can place the Android tests
well below 2 hours instead of just above 2 hours.
Because the client/server here are now repurposed for more than just QEMU,
they've been renamed to `remote-test-{server,client}`.
Note that this PR does not currently modify how debuginfo tests are executed on
Android. While parallelizable it wouldn't be quite as easy, so that's left to
another day. Thankfully that test suite is much smaller than the run-pass test
suite.
As a final fix I discovered that the ARM and Android test suites were actually
running all library unit tests (e.g. stdtest, coretest, etc) twice. I've
corrected that to only run tests once which should also give a nice boost in
overall cycle time here.
2017-04-26 15:52:19 +00:00
|
|
|
[[package]]
|
|
|
|
name = "remote-test-client"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "remote-test-server"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2018-02-26 17:07:16 +00:00
|
|
|
[[package]]
|
|
|
|
name = "remove_dir_all"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.5.3"
|
2018-02-26 17:07:16 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
|
2018-02-26 17:07:16 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-02-26 17:07:16 +00:00
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rls"
|
2019-12-10 15:01:01 +00:00
|
|
|
version = "1.41.0"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2020-01-14 17:47:04 +00:00
|
|
|
"anyhow",
|
2019-08-15 00:45:09 +00:00
|
|
|
"cargo",
|
2020-08-17 15:21:44 +00:00
|
|
|
"cargo_metadata 0.8.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"clippy_lints",
|
2020-02-12 14:47:31 +00:00
|
|
|
"crossbeam-channel",
|
2019-08-15 00:45:09 +00:00
|
|
|
"difference",
|
2019-10-31 06:50:54 +00:00
|
|
|
"env_logger 0.7.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"futures",
|
|
|
|
"heck",
|
2019-09-08 08:28:11 +00:00
|
|
|
"home",
|
2020-08-17 15:21:44 +00:00
|
|
|
"itertools 0.8.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"jsonrpc-core",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"lsp-codec",
|
|
|
|
"lsp-types",
|
|
|
|
"num_cpus",
|
|
|
|
"ordslice",
|
|
|
|
"racer",
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rayon",
|
|
|
|
"regex",
|
|
|
|
"rls-analysis",
|
|
|
|
"rls-data",
|
2019-09-08 08:28:11 +00:00
|
|
|
"rls-ipc",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rls-rustc",
|
|
|
|
"rls-span",
|
|
|
|
"rls-vfs",
|
|
|
|
"rustc-workspace-hack",
|
2019-06-08 20:15:22 +00:00
|
|
|
"rustc_tools_util 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustfmt-nightly",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
2019-09-08 08:28:11 +00:00
|
|
|
"serde_ignored",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde_json",
|
|
|
|
"tempfile",
|
|
|
|
"tokio",
|
|
|
|
"tokio-process",
|
|
|
|
"tokio-timer",
|
2019-08-20 17:46:35 +00:00
|
|
|
"toml",
|
2020-08-17 15:21:44 +00:00
|
|
|
"url 2.1.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"walkdir",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rls-analysis"
|
2020-05-26 04:33:06 +00:00
|
|
|
version = "0.18.1"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 04:33:06 +00:00
|
|
|
checksum = "534032993e1b60e5db934eab2dde54da7afd1e46c3465fddb2b29eb47cb1ed3a"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"derive-new",
|
|
|
|
"fst",
|
2020-08-17 15:21:44 +00:00
|
|
|
"itertools 0.8.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"json",
|
|
|
|
"log",
|
|
|
|
"rls-data",
|
|
|
|
"rls-span",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2017-06-05 16:36:48 +00:00
|
|
|
]
|
|
|
|
|
2018-02-02 07:29:59 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rls-data"
|
2019-04-21 10:52:07 +00:00
|
|
|
version = "0.19.0"
|
2018-02-02 07:29:59 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "76c72ea97e045be5f6290bb157ebdc5ee9f2b093831ff72adfaf59025cf5c491"
|
2018-02-02 07:29:59 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"rls-span",
|
|
|
|
"serde",
|
2018-02-02 07:29:59 +00:00
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rls-ipc"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"jsonrpc-core",
|
|
|
|
"jsonrpc-core-client",
|
|
|
|
"jsonrpc-derive",
|
|
|
|
"jsonrpc-ipc-server",
|
|
|
|
"rls-data",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2017-08-30 05:09:36 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rls-rustc"
|
2019-03-10 16:03:32 +00:00
|
|
|
version = "0.6.0"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
|
|
|
"clippy_lints",
|
2019-10-31 06:50:54 +00:00
|
|
|
"env_logger 0.7.1",
|
2019-09-08 08:28:11 +00:00
|
|
|
"futures",
|
|
|
|
"log",
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand",
|
2019-09-08 08:28:11 +00:00
|
|
|
"rls-data",
|
|
|
|
"rls-ipc",
|
|
|
|
"serde",
|
|
|
|
"tokio",
|
|
|
|
]
|
2017-08-30 05:09:36 +00:00
|
|
|
|
2017-03-14 02:16:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rls-span"
|
2020-05-26 04:33:06 +00:00
|
|
|
version = "0.5.2"
|
2017-03-15 08:20:23 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 04:33:06 +00:00
|
|
|
checksum = "f2e9bed56f6272bd85d9d06d1aaeef80c5fddc78a82199eb36dceb5f94e7d934"
|
2017-03-14 02:16:44 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rls-vfs"
|
2019-04-21 10:52:07 +00:00
|
|
|
version = "0.8.0"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "ce4b57b25b4330ed5ec14028fc02141e083ddafda327e7eb598dc0569c8c83c9"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"rls-span",
|
2017-03-14 02:16:44 +00:00
|
|
|
]
|
|
|
|
|
2020-08-17 15:21:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rust-argon2"
|
|
|
|
version = "0.7.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2bc8af4bda8e1ff4932523b94d3dd20ee30a87232323eda55903ffd71d2fb017"
|
|
|
|
dependencies = [
|
|
|
|
"base64",
|
|
|
|
"blake2b_simd",
|
|
|
|
"constant_time_eq",
|
|
|
|
"crossbeam-utils 0.7.2",
|
|
|
|
]
|
|
|
|
|
2020-07-02 18:27:15 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rust-demangler"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc-demangle",
|
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustbook"
|
2017-02-07 23:13:57 +00:00
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"clap",
|
|
|
|
"mdbook",
|
2017-02-07 23:13:57 +00:00
|
|
|
]
|
2016-09-02 08:55:29 +00:00
|
|
|
|
2019-07-30 11:00:27 +00:00
|
|
|
[[package]]
|
2020-06-15 09:43:39 +00:00
|
|
|
name = "rustc-ap-rustc_arena"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2019-07-30 11:00:27 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "2958af0d6e0458434a25cd3a96f6e19f24f71bf50b900add520dec52e212866b"
|
2019-07-30 11:00:27 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc-ap-rustc_data_structures",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2019-07-30 11:00:27 +00:00
|
|
|
]
|
|
|
|
|
2020-03-31 12:31:52 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_ast"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2020-03-31 12:31:52 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "0c82c2510460f2133548e62399e5acd30c25ae6ece30245baab3d1e00c2fefac"
|
2020-03-31 12:31:52 +00:00
|
|
|
dependencies = [
|
2020-06-15 09:43:39 +00:00
|
|
|
"bitflags",
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_index",
|
|
|
|
"rustc-ap-rustc_lexer",
|
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_span",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-09-05 19:03:27 +00:00
|
|
|
"tracing",
|
2020-03-31 12:31:52 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_ast_passes"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2019-07-30 11:00:27 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "83977da57f81c6edd89bad47e49136680eaa33288de4abb702e95358c2a0fc6c"
|
2020-03-31 12:31:52 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"itertools 0.8.2",
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_ast",
|
|
|
|
"rustc-ap-rustc_ast_pretty",
|
|
|
|
"rustc-ap-rustc_attr",
|
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_errors",
|
|
|
|
"rustc-ap-rustc_feature",
|
|
|
|
"rustc-ap-rustc_parse",
|
|
|
|
"rustc-ap-rustc_session",
|
|
|
|
"rustc-ap-rustc_span",
|
2020-09-05 19:03:27 +00:00
|
|
|
"tracing",
|
2020-03-31 12:31:52 +00:00
|
|
|
]
|
2020-02-12 14:47:31 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_ast_pretty"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2020-02-12 14:47:31 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "becf4ca1638b214694c71a8752192683048ab8bd47947cc481f57bd48157eeb9"
|
2020-02-12 14:47:31 +00:00
|
|
|
dependencies = [
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_span",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_target",
|
2020-09-05 19:03:27 +00:00
|
|
|
"tracing",
|
2020-02-12 14:47:31 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_attr"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2020-02-12 14:47:31 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "0f21ca5dadce8a40d75a2756b77eab75b4c2d827f645c622dd93ee2285599640"
|
2020-02-12 14:47:31 +00:00
|
|
|
dependencies = [
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_ast_pretty",
|
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_errors",
|
|
|
|
"rustc-ap-rustc_feature",
|
2020-09-05 19:03:27 +00:00
|
|
|
"rustc-ap-rustc_lexer",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_session",
|
|
|
|
"rustc-ap-rustc_span",
|
2020-05-21 13:39:52 +00:00
|
|
|
"version_check",
|
2020-02-12 14:47:31 +00:00
|
|
|
]
|
2019-07-30 11:00:27 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_data_structures"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2019-07-30 11:00:27 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "a4cd204764727fde9abf75333eb661f058bfc7242062d91019440fe1b240688b"
|
2019-07-30 11:00:27 +00:00
|
|
|
dependencies = [
|
2020-02-12 14:47:31 +00:00
|
|
|
"bitflags",
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
2020-03-31 12:31:52 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
2020-05-27 05:05:09 +00:00
|
|
|
"ena",
|
2019-08-15 00:45:09 +00:00
|
|
|
"indexmap",
|
|
|
|
"jobserver",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2020-04-15 02:07:33 +00:00
|
|
|
"libc",
|
2020-02-12 14:47:31 +00:00
|
|
|
"measureme",
|
2020-04-10 16:31:31 +00:00
|
|
|
"parking_lot 0.10.2",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_graphviz",
|
2019-10-11 14:28:02 +00:00
|
|
|
"rustc-ap-rustc_index",
|
2020-09-05 19:03:27 +00:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_serialize",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc-hash",
|
2019-12-10 15:01:01 +00:00
|
|
|
"rustc-rayon",
|
|
|
|
"rustc-rayon-core",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"stable_deref_trait",
|
2020-05-21 13:39:52 +00:00
|
|
|
"stacker",
|
2020-09-05 19:03:27 +00:00
|
|
|
"tempfile",
|
|
|
|
"tracing",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-07-30 11:00:27 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_errors"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2019-07-30 11:00:27 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "58116f119e37f14c029f99077b347069621118e048a69df74695b98204e7c136"
|
2019-07-30 11:00:27 +00:00
|
|
|
dependencies = [
|
2020-06-15 09:43:39 +00:00
|
|
|
"annotate-snippets 0.8.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"atty",
|
|
|
|
"rustc-ap-rustc_data_structures",
|
2020-09-05 19:03:27 +00:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_span",
|
2019-08-15 00:45:09 +00:00
|
|
|
"termcolor",
|
2020-02-12 14:47:31 +00:00
|
|
|
"termize",
|
2020-09-05 19:03:27 +00:00
|
|
|
"tracing",
|
2019-08-15 00:45:09 +00:00
|
|
|
"unicode-width",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-07-30 11:00:27 +00:00
|
|
|
]
|
|
|
|
|
2020-03-31 12:31:52 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_expand"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2020-03-31 12:31:52 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "48e3c4bda9b64b92805bebe7431fdb8e24fd112b35a8c6d2174827441f10a6b2"
|
2020-03-31 12:31:52 +00:00
|
|
|
dependencies = [
|
|
|
|
"rustc-ap-rustc_ast",
|
|
|
|
"rustc-ap-rustc_ast_passes",
|
|
|
|
"rustc-ap-rustc_ast_pretty",
|
|
|
|
"rustc-ap-rustc_attr",
|
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_errors",
|
|
|
|
"rustc-ap-rustc_feature",
|
|
|
|
"rustc-ap-rustc_lexer",
|
2020-09-05 19:03:27 +00:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_parse",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_session",
|
|
|
|
"rustc-ap-rustc_span",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-09-05 19:03:27 +00:00
|
|
|
"tracing",
|
2020-03-31 12:31:52 +00:00
|
|
|
]
|
|
|
|
|
2020-02-12 14:47:31 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_feature"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2020-02-12 14:47:31 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "4b612bb67d3fc49f395b03fc4ea4384a0145b05afbadab725803074ec827632b"
|
2020-02-12 14:47:31 +00:00
|
|
|
dependencies = [
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_span",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_fs_util"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2020-06-15 09:43:39 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "7630ad1a73a8434ee920676148cb5440ac57509bd20e94ec41087fb0b1d11c28"
|
2020-06-15 09:43:39 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_graphviz"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2020-02-12 14:47:31 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "a603fca4817062eb4fb23ff129d475bd66a69fb32f34ed4362ae950cf814b49d"
|
2020-02-12 14:47:31 +00:00
|
|
|
|
2019-10-11 14:28:02 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_index"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2019-10-11 14:28:02 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "9850c4a5d7c341513e10802bca9588bf8f452ceea2d5cfa87b934246a52622bc"
|
2019-10-11 14:28:02 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"arrayvec",
|
2020-09-05 19:03:27 +00:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_serialize",
|
2019-10-11 14:28:02 +00:00
|
|
|
]
|
|
|
|
|
2019-07-30 11:00:27 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_lexer"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2019-07-30 11:00:27 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "6d86722e5a1a615b198327d0d794cd9cbc8b9db4542276fc51fe078924de68ea"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"unicode-xid",
|
2019-09-08 08:28:11 +00:00
|
|
|
]
|
2019-07-30 11:00:27 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_macros"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2019-07-30 11:00:27 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "b3fc8482e44cabdda7ac9a8e224aef62ebdf95274d629dac8db3b42321025fea"
|
2019-07-30 11:00:27 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-05-05 11:26:16 +00:00
|
|
|
"synstructure",
|
2019-07-30 11:00:27 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2020-02-12 14:47:31 +00:00
|
|
|
name = "rustc-ap-rustc_parse"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2019-07-30 11:00:27 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "3716cdcd978a91dbd4a2788400e90e809527f841426fbeb92f882f9b8582f3ab"
|
2019-07-30 11:00:27 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_ast_pretty",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc-ap-rustc_data_structures",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_errors",
|
|
|
|
"rustc-ap-rustc_feature",
|
|
|
|
"rustc-ap-rustc_lexer",
|
|
|
|
"rustc-ap-rustc_session",
|
|
|
|
"rustc-ap-rustc_span",
|
2020-09-05 19:03:27 +00:00
|
|
|
"smallvec 1.4.2",
|
|
|
|
"tracing",
|
2020-02-12 14:47:31 +00:00
|
|
|
"unicode-normalization",
|
|
|
|
]
|
|
|
|
|
2020-06-15 09:43:39 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_serialize"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2020-06-15 09:43:39 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "c68046d07988b349b2e1c8bc1c9664a1d06519354aa677b9df358c5c5c058da0"
|
2020-06-15 09:43:39 +00:00
|
|
|
dependencies = [
|
|
|
|
"indexmap",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-06-15 09:43:39 +00:00
|
|
|
]
|
|
|
|
|
2020-02-12 14:47:31 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_session"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2020-02-12 14:47:31 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "85735553501a4de0c8904e37b7ccef79cc1c585a7d7f2cfa02cc38e0d149f982"
|
2020-02-12 14:47:31 +00:00
|
|
|
dependencies = [
|
2020-07-25 21:25:16 +00:00
|
|
|
"bitflags",
|
2020-04-15 02:07:33 +00:00
|
|
|
"getopts",
|
2020-02-12 14:47:31 +00:00
|
|
|
"num_cpus",
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_errors",
|
|
|
|
"rustc-ap-rustc_feature",
|
|
|
|
"rustc-ap-rustc_fs_util",
|
2020-09-05 19:03:27 +00:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_span",
|
|
|
|
"rustc-ap-rustc_target",
|
2020-09-05 19:03:27 +00:00
|
|
|
"tracing",
|
2019-07-30 11:00:27 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2020-02-12 14:47:31 +00:00
|
|
|
name = "rustc-ap-rustc_span"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2019-07-30 11:00:27 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "1c49ae8a0d3b9e27c6ffe8febeaa30f899294fff012de70625f9ee81c54fda85"
|
2019-07-30 11:00:27 +00:00
|
|
|
dependencies = [
|
2020-02-12 14:47:31 +00:00
|
|
|
"cfg-if",
|
2020-04-15 02:07:33 +00:00
|
|
|
"md-5",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_arena",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_index",
|
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-02-12 14:47:31 +00:00
|
|
|
"scoped-tls",
|
2020-04-15 02:07:33 +00:00
|
|
|
"sha-1",
|
2020-09-05 19:03:27 +00:00
|
|
|
"tracing",
|
2020-02-12 14:47:31 +00:00
|
|
|
"unicode-width",
|
2019-07-30 11:00:27 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2020-02-12 14:47:31 +00:00
|
|
|
name = "rustc-ap-rustc_target"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "677.0.0"
|
2019-07-30 11:00:27 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-05 19:03:27 +00:00
|
|
|
checksum = "1765f447594740c501c7b666b87639aa7c1dae2bf8c3166d5d2dca16646fd034"
|
2019-07-30 11:00:27 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
|
|
|
"rustc-ap-rustc_data_structures",
|
2019-10-11 14:28:02 +00:00
|
|
|
"rustc-ap-rustc_index",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 09:43:39 +00:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_span",
|
2020-09-05 19:03:27 +00:00
|
|
|
"tracing",
|
2020-02-12 14:47:31 +00:00
|
|
|
]
|
|
|
|
|
2017-05-08 22:01:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-demangle"
|
2019-08-14 07:35:24 +00:00
|
|
|
version = "0.1.16"
|
2017-05-08 22:01:13 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783"
|
2018-12-14 22:37:51 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-core",
|
2018-12-14 22:37:51 +00:00
|
|
|
]
|
2017-05-08 22:01:13 +00:00
|
|
|
|
2018-05-24 12:48:02 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-hash"
|
2020-05-27 00:19:19 +00:00
|
|
|
version = "1.1.0"
|
2018-05-24 12:48:02 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-27 00:19:19 +00:00
|
|
|
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
2018-05-24 12:48:02 +00:00
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-main"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"jemalloc-sys",
|
|
|
|
"rustc_codegen_ssa",
|
|
|
|
"rustc_driver",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2019-09-10 17:13:07 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-rayon"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f32767f90d938f1b7199a174ef249ae1924f6e5bbdb9d112fea141e016f25b3a"
|
|
|
|
dependencies = [
|
2019-12-04 17:40:16 +00:00
|
|
|
"crossbeam-deque",
|
2019-09-10 17:13:07 +00:00
|
|
|
"either",
|
2019-12-10 15:01:01 +00:00
|
|
|
"rustc-rayon-core",
|
2019-04-25 20:50:41 +00:00
|
|
|
]
|
|
|
|
|
2019-09-10 17:13:07 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-rayon-core"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ea2427831f0053ea3ea73559c8eabd893133a51b251d142bacee53c62a288cb3"
|
|
|
|
dependencies = [
|
2019-12-04 17:40:16 +00:00
|
|
|
"crossbeam-deque",
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-queue 0.1.2",
|
|
|
|
"crossbeam-utils 0.6.6",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-09-10 17:13:07 +00:00
|
|
|
"num_cpus",
|
|
|
|
]
|
|
|
|
|
2019-02-07 11:08:05 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-std-workspace-alloc"
|
2019-09-09 20:01:05 +00:00
|
|
|
version = "1.99.0"
|
2019-02-07 11:08:05 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"alloc",
|
2019-02-07 11:08:05 +00:00
|
|
|
]
|
|
|
|
|
std: Depend directly on crates.io crates
Ever since we added a Cargo-based build system for the compiler the
standard library has always been a little special, it's never been able
to depend on crates.io crates for runtime dependencies. This has been a
result of various limitations, namely that Cargo doesn't understand that
crates from crates.io depend on libcore, so Cargo tries to build crates
before libcore is finished.
I had an idea this afternoon, however, which lifts the strategy
from #52919 to directly depend on crates.io crates from the standard
library. After all is said and done this removes a whopping three
submodules that we need to manage!
The basic idea here is that for any crate `std` depends on it adds an
*optional* dependency on an empty crate on crates.io, in this case named
`rustc-std-workspace-core`. This crate is overridden via `[patch]` in
this repository to point to a local crate we write, and *that* has a
`path` dependency on libcore.
Note that all `no_std` crates also depend on `compiler_builtins`, but if
we're not using submodules we can publish `compiler_builtins` to
crates.io and all crates can depend on it anyway! The basic strategy
then looks like:
* The standard library (or some transitive dep) decides to depend on a
crate `foo`.
* The standard library adds
```toml
[dependencies]
foo = { version = "0.1", features = ['rustc-dep-of-std'] }
```
* The crate `foo` has an optional dependency on `rustc-std-workspace-core`
* The crate `foo` has an optional dependency on `compiler_builtins`
* The crate `foo` has a feature `rustc-dep-of-std` which activates these
crates and any other necessary infrastructure in the crate.
A sample commit for `dlmalloc` [turns out to be quite simple][commit].
After that all `no_std` crates should largely build "as is" and still be
publishable on crates.io! Notably they should be able to continue to use
stable Rust if necessary, since the `rename-dependency` feature of Cargo
is soon stabilizing.
As a proof of concept, this commit removes the `dlmalloc`,
`libcompiler_builtins`, and `libc` submodules from this repository. Long
thorns in our side these are now gone for good and we can directly
depend on crates.io! It's hoped that in the long term we can bring in
other crates as necessary, but for now this is largely intended to
simply make it easier to manage these crates and remove submodules.
This should be a transparent non-breaking change for all users, but one
possible stickler is that this almost for sure breaks out-of-tree
`std`-building tools like `xargo` and `cargo-xbuild`. I think it should
be relatively easy to get them working, however, as all that's needed is
an entry in the `[patch]` section used to build the standard library.
Hopefully we can work with these tools to solve this problem!
[commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
2018-11-20 05:52:50 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-std-workspace-core"
|
2019-09-09 20:01:05 +00:00
|
|
|
version = "1.99.0"
|
std: Depend directly on crates.io crates
Ever since we added a Cargo-based build system for the compiler the
standard library has always been a little special, it's never been able
to depend on crates.io crates for runtime dependencies. This has been a
result of various limitations, namely that Cargo doesn't understand that
crates from crates.io depend on libcore, so Cargo tries to build crates
before libcore is finished.
I had an idea this afternoon, however, which lifts the strategy
from #52919 to directly depend on crates.io crates from the standard
library. After all is said and done this removes a whopping three
submodules that we need to manage!
The basic idea here is that for any crate `std` depends on it adds an
*optional* dependency on an empty crate on crates.io, in this case named
`rustc-std-workspace-core`. This crate is overridden via `[patch]` in
this repository to point to a local crate we write, and *that* has a
`path` dependency on libcore.
Note that all `no_std` crates also depend on `compiler_builtins`, but if
we're not using submodules we can publish `compiler_builtins` to
crates.io and all crates can depend on it anyway! The basic strategy
then looks like:
* The standard library (or some transitive dep) decides to depend on a
crate `foo`.
* The standard library adds
```toml
[dependencies]
foo = { version = "0.1", features = ['rustc-dep-of-std'] }
```
* The crate `foo` has an optional dependency on `rustc-std-workspace-core`
* The crate `foo` has an optional dependency on `compiler_builtins`
* The crate `foo` has a feature `rustc-dep-of-std` which activates these
crates and any other necessary infrastructure in the crate.
A sample commit for `dlmalloc` [turns out to be quite simple][commit].
After that all `no_std` crates should largely build "as is" and still be
publishable on crates.io! Notably they should be able to continue to use
stable Rust if necessary, since the `rename-dependency` feature of Cargo
is soon stabilizing.
As a proof of concept, this commit removes the `dlmalloc`,
`libcompiler_builtins`, and `libc` submodules from this repository. Long
thorns in our side these are now gone for good and we can directly
depend on crates.io! It's hoped that in the long term we can bring in
other crates as necessary, but for now this is largely intended to
simply make it easier to manage these crates and remove submodules.
This should be a transparent non-breaking change for all users, but one
possible stickler is that this almost for sure breaks out-of-tree
`std`-building tools like `xargo` and `cargo-xbuild`. I think it should
be relatively easy to get them working, however, as all that's needed is
an entry in the `[patch]` section used to build the standard library.
Hopefully we can work with these tools to solve this problem!
[commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
2018-11-20 05:52:50 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"core",
|
std: Depend directly on crates.io crates
Ever since we added a Cargo-based build system for the compiler the
standard library has always been a little special, it's never been able
to depend on crates.io crates for runtime dependencies. This has been a
result of various limitations, namely that Cargo doesn't understand that
crates from crates.io depend on libcore, so Cargo tries to build crates
before libcore is finished.
I had an idea this afternoon, however, which lifts the strategy
from #52919 to directly depend on crates.io crates from the standard
library. After all is said and done this removes a whopping three
submodules that we need to manage!
The basic idea here is that for any crate `std` depends on it adds an
*optional* dependency on an empty crate on crates.io, in this case named
`rustc-std-workspace-core`. This crate is overridden via `[patch]` in
this repository to point to a local crate we write, and *that* has a
`path` dependency on libcore.
Note that all `no_std` crates also depend on `compiler_builtins`, but if
we're not using submodules we can publish `compiler_builtins` to
crates.io and all crates can depend on it anyway! The basic strategy
then looks like:
* The standard library (or some transitive dep) decides to depend on a
crate `foo`.
* The standard library adds
```toml
[dependencies]
foo = { version = "0.1", features = ['rustc-dep-of-std'] }
```
* The crate `foo` has an optional dependency on `rustc-std-workspace-core`
* The crate `foo` has an optional dependency on `compiler_builtins`
* The crate `foo` has a feature `rustc-dep-of-std` which activates these
crates and any other necessary infrastructure in the crate.
A sample commit for `dlmalloc` [turns out to be quite simple][commit].
After that all `no_std` crates should largely build "as is" and still be
publishable on crates.io! Notably they should be able to continue to use
stable Rust if necessary, since the `rename-dependency` feature of Cargo
is soon stabilizing.
As a proof of concept, this commit removes the `dlmalloc`,
`libcompiler_builtins`, and `libc` submodules from this repository. Long
thorns in our side these are now gone for good and we can directly
depend on crates.io! It's hoped that in the long term we can bring in
other crates as necessary, but for now this is largely intended to
simply make it easier to manage these crates and remove submodules.
This should be a transparent non-breaking change for all users, but one
possible stickler is that this almost for sure breaks out-of-tree
`std`-building tools like `xargo` and `cargo-xbuild`. I think it should
be relatively easy to get them working, however, as all that's needed is
an entry in the `[patch]` section used to build the standard library.
Hopefully we can work with these tools to solve this problem!
[commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
2018-11-20 05:52:50 +00:00
|
|
|
]
|
|
|
|
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-std-workspace-std"
|
2019-09-09 20:01:05 +00:00
|
|
|
version = "1.99.0"
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
dependencies = [
|
|
|
|
"std",
|
|
|
|
]
|
|
|
|
|
2018-07-31 21:16:55 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-workspace-hack"
|
|
|
|
version = "1.0.0"
|
|
|
|
dependencies = [
|
2020-04-01 20:39:11 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 0.6.13",
|
|
|
|
"smallvec 1.4.2",
|
2020-08-01 14:11:15 +00:00
|
|
|
"syn",
|
2020-08-17 15:21:44 +00:00
|
|
|
"url 2.1.1",
|
|
|
|
"winapi 0.3.9",
|
2018-07-31 21:16:55 +00:00
|
|
|
]
|
|
|
|
|
2017-07-08 17:46:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_apfloat"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2017-07-08 17:46:43 +00:00
|
|
|
]
|
|
|
|
|
2020-06-02 17:03:40 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_arena"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc_data_structures",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-06-02 17:03:40 +00:00
|
|
|
]
|
|
|
|
|
2020-02-29 17:16:26 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_ast"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-05-06 13:46:01 +00:00
|
|
|
"bitflags",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_lexer",
|
|
|
|
"rustc_macros",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_span",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-02-29 17:16:26 +00:00
|
|
|
]
|
|
|
|
|
2019-12-22 17:12:56 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_ast_lowering"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_arena",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_ast_pretty",
|
2019-12-22 17:12:56 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2019-12-22 17:12:56 +00:00
|
|
|
"rustc_index",
|
2019-12-24 21:42:56 +00:00
|
|
|
"rustc_session",
|
2019-12-22 17:12:56 +00:00
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2019-12-22 17:12:56 +00:00
|
|
|
]
|
|
|
|
|
2020-01-05 09:58:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_ast_passes"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-09-12 06:24:09 +00:00
|
|
|
"itertools 0.9.0",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2020-01-05 09:58:44 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-01-05 10:11:39 +00:00
|
|
|
"rustc_feature",
|
2020-01-05 09:58:44 +00:00
|
|
|
"rustc_parse",
|
|
|
|
"rustc_session",
|
|
|
|
"rustc_span",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-01-05 09:58:44 +00:00
|
|
|
]
|
|
|
|
|
2020-01-11 16:02:46 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_ast_pretty"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_span",
|
2020-01-22 14:20:27 +00:00
|
|
|
"rustc_target",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-01-11 16:02:46 +00:00
|
|
|
]
|
|
|
|
|
2020-01-11 12:15:20 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_attr"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_feature",
|
2020-08-10 19:27:48 +00:00
|
|
|
"rustc_lexer",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_macros",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_session",
|
|
|
|
"rustc_span",
|
2020-04-19 08:47:55 +00:00
|
|
|
"version_check",
|
2020-01-11 12:15:20 +00:00
|
|
|
]
|
|
|
|
|
2019-12-29 13:53:32 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_builtin_macros"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_expand",
|
|
|
|
"rustc_feature",
|
|
|
|
"rustc_parse",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_parse_format",
|
2020-01-05 09:47:20 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2019-12-29 13:53:32 +00:00
|
|
|
]
|
|
|
|
|
2018-05-08 13:10:16 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_codegen_llvm"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-10-22 15:51:35 +00:00
|
|
|
"bitflags",
|
|
|
|
"libc",
|
2020-02-11 21:37:16 +00:00
|
|
|
"measureme",
|
2019-10-22 15:51:35 +00:00
|
|
|
"rustc-demangle",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-10-22 15:51:35 +00:00
|
|
|
"rustc_codegen_ssa",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-12-06 03:04:35 +00:00
|
|
|
"rustc_feature",
|
2019-10-22 15:51:35 +00:00
|
|
|
"rustc_fs_util",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2019-10-22 15:51:35 +00:00
|
|
|
"rustc_incremental",
|
|
|
|
"rustc_index",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_llvm",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2019-12-06 03:04:35 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-10-22 15:51:35 +00:00
|
|
|
"rustc_target",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-08-20 23:16:30 +00:00
|
|
|
"snap",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2018-05-08 13:10:16 +00:00
|
|
|
]
|
|
|
|
|
2018-10-01 16:07:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_codegen_ssa"
|
|
|
|
version = "0.0.0"
|
2018-10-23 15:01:35 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
|
|
|
"cc",
|
|
|
|
"jobserver",
|
|
|
|
"libc",
|
|
|
|
"memmap",
|
|
|
|
"num_cpus",
|
2020-07-17 22:01:27 +00:00
|
|
|
"pathdiff",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_apfloat",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_fs_util",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_incremental",
|
2019-09-26 05:30:10 +00:00
|
|
|
"rustc_index",
|
2020-06-11 14:49:57 +00:00
|
|
|
"rustc_macros",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2019-11-12 13:22:16 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2020-03-12 23:07:58 +00:00
|
|
|
"rustc_symbol_mangling",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_target",
|
|
|
|
"tempfile",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2018-10-23 15:01:35 +00:00
|
|
|
]
|
2018-10-01 16:07:04 +00:00
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_data_structures"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-09-19 15:27:13 +00:00
|
|
|
"arrayvec",
|
2019-11-11 22:15:36 +00:00
|
|
|
"bitflags",
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
2020-03-26 13:10:35 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
2020-05-27 05:05:09 +00:00
|
|
|
"ena",
|
2019-08-15 00:45:09 +00:00
|
|
|
"indexmap",
|
|
|
|
"jobserver",
|
2020-04-10 20:42:19 +00:00
|
|
|
"libc",
|
2019-11-11 22:15:36 +00:00
|
|
|
"measureme",
|
2020-09-12 06:24:09 +00:00
|
|
|
"parking_lot 0.11.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc-hash",
|
2019-12-10 15:01:01 +00:00
|
|
|
"rustc-rayon",
|
|
|
|
"rustc-rayon-core",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_graphviz",
|
2019-09-25 19:09:51 +00:00
|
|
|
"rustc_index",
|
2020-06-11 14:49:57 +00:00
|
|
|
"rustc_macros",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"stable_deref_trait",
|
2020-03-14 18:13:55 +00:00
|
|
|
"stacker",
|
2020-08-09 01:05:50 +00:00
|
|
|
"tempfile",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_driver"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-04-10 20:42:19 +00:00
|
|
|
"libc",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_ast_pretty",
|
2020-01-23 10:48:48 +00:00
|
|
|
"rustc_codegen_ssa",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
2019-11-15 18:41:50 +00:00
|
|
|
"rustc_error_codes",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_errors",
|
2019-11-30 01:34:18 +00:00
|
|
|
"rustc_feature",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2020-03-23 19:59:19 +00:00
|
|
|
"rustc_hir_pretty",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_interface",
|
2019-10-09 13:53:13 +00:00
|
|
|
"rustc_lint",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_metadata",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_mir",
|
2019-10-15 20:48:13 +00:00
|
|
|
"rustc_parse",
|
2019-07-16 17:08:32 +00:00
|
|
|
"rustc_plugin_impl",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_save_analysis",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-03-11 11:49:08 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_target",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
|
|
|
"tracing-subscriber",
|
2020-08-04 11:48:05 +00:00
|
|
|
"tracing-tree",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2019-11-11 21:47:05 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_error_codes"
|
|
|
|
version = "0.0.0"
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_errors"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-05-08 20:48:26 +00:00
|
|
|
"annotate-snippets 0.8.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"atty",
|
|
|
|
"rustc_data_structures",
|
2020-06-11 14:49:57 +00:00
|
|
|
"rustc_macros",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-08-15 00:45:09 +00:00
|
|
|
"termcolor",
|
2020-01-29 00:13:48 +00:00
|
|
|
"termize",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2019-08-15 00:45:09 +00:00
|
|
|
"unicode-width",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2019-12-29 13:53:32 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_expand"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-05 10:11:39 +00:00
|
|
|
"rustc_ast_passes",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_feature",
|
|
|
|
"rustc_lexer",
|
2020-06-11 14:49:57 +00:00
|
|
|
"rustc_macros",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_parse",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-01-05 09:47:20 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2019-12-29 13:53:32 +00:00
|
|
|
]
|
|
|
|
|
2019-11-29 23:23:38 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_feature"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-11-30 01:34:18 +00:00
|
|
|
"rustc_data_structures",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-11-29 23:23:38 +00:00
|
|
|
]
|
|
|
|
|
2018-08-03 21:31:03 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_fs_util"
|
|
|
|
version = "0.0.0"
|
|
|
|
|
2020-06-02 17:03:40 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_graphviz"
|
|
|
|
version = "0.0.0"
|
|
|
|
|
2019-12-25 02:51:27 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_hir"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2019-12-25 02:51:27 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_macros",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2019-12-25 02:51:27 +00:00
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2019-12-25 02:51:27 +00:00
|
|
|
]
|
|
|
|
|
2020-03-23 19:59:19 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_hir_pretty"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc_ast",
|
|
|
|
"rustc_ast_pretty",
|
|
|
|
"rustc_hir",
|
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_incremental"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_fs_util",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_graphviz",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2020-06-11 14:49:57 +00:00
|
|
|
"rustc_macros",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2019-11-12 13:22:16 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2019-09-25 19:09:51 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_index"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"arrayvec",
|
2020-06-11 14:49:57 +00:00
|
|
|
"rustc_macros",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2019-09-25 19:09:51 +00:00
|
|
|
]
|
|
|
|
|
2020-01-06 19:13:24 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_infer"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-06 19:13:24 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_graphviz",
|
2020-01-06 19:13:24 +00:00
|
|
|
"rustc_hir",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_macros",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-03-11 11:49:08 +00:00
|
|
|
"rustc_session",
|
2020-01-06 19:13:24 +00:00
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-01-06 19:13:24 +00:00
|
|
|
]
|
|
|
|
|
2018-12-08 19:30:23 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_interface"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-04-10 20:42:19 +00:00
|
|
|
"libc",
|
2019-12-10 15:01:01 +00:00
|
|
|
"rustc-rayon",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2019-12-22 17:12:56 +00:00
|
|
|
"rustc_ast_lowering",
|
2020-01-05 09:58:44 +00:00
|
|
|
"rustc_ast_passes",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_builtin_macros",
|
2019-10-22 15:51:35 +00:00
|
|
|
"rustc_codegen_llvm",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_codegen_ssa",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_expand",
|
2019-12-25 02:51:27 +00:00
|
|
|
"rustc_hir",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_incremental",
|
|
|
|
"rustc_lint",
|
|
|
|
"rustc_metadata",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_mir",
|
2020-01-05 15:46:44 +00:00
|
|
|
"rustc_mir_build",
|
2019-10-15 20:48:13 +00:00
|
|
|
"rustc_parse",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_passes",
|
2019-07-16 17:08:32 +00:00
|
|
|
"rustc_plugin_impl",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_privacy",
|
|
|
|
"rustc_resolve",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-01-05 08:40:16 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2020-03-12 23:07:58 +00:00
|
|
|
"rustc_symbol_mangling",
|
2019-10-11 21:48:16 +00:00
|
|
|
"rustc_target",
|
2020-02-11 18:53:40 +00:00
|
|
|
"rustc_trait_selection",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_traits",
|
2020-01-13 12:40:30 +00:00
|
|
|
"rustc_ty",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_typeck",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"tempfile",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-12-08 19:30:23 +00:00
|
|
|
]
|
|
|
|
|
2019-05-06 08:53:40 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_lexer"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
Introduce expect snapshot testing library into rustc
Snapshot testing is a technique for writing maintainable unit tests.
Unlike usual `assert_eq!` tests, snapshot tests allow
to *automatically* upgrade expected values on test failure.
In a sense, snapshot tests are inline-version of our beloved
UI-tests.
Example:
![expect](https://user-images.githubusercontent.com/1711539/90888810-3bcc8180-e3b7-11ea-9626-d06e89e1a0bb.gif)
A particular library we use, `expect_test` provides an `expect!`
macro, which creates a sort of self-updating string literal (by using
`file!` macro). Self-update is triggered by setting `UPDATE_EXPECT`
environmental variable (this info is printed during the test failure).
This library was extracted from rust-analyzer, where we use it for
most of our tests.
There are some other, more popular snapshot testing libraries:
* https://github.com/mitsuhiko/insta
* https://github.com/aaronabramov/k9
The main differences of `expect` are:
* first-class snapshot objects (so, tests can be written as functions,
rather than as macros)
* focus on inline-snapshots (but file snapshots are also supported)
* restricted feature set (only `assert_eq` and `assert_debug_eq`)
* no extra runtime (ie, no `cargo insta`)
See https://github.com/rust-analyzer/rust-analyzer/pull/5101 for a
an extended comparison.
It is unclear if this testing style will stick with rustc in the long
run. At the moment, rustc is mainly tested via integrated UI tests.
But in the library-ified world, unit-tests will become somewhat more
important (that's why use use `rustc_lexer` library-ified library as
an example in this PR). Given that the cost of removal shouldn't be
too high, it probably makes sense to just see if this flies!
2020-08-21 12:03:50 +00:00
|
|
|
"expect-test",
|
2020-08-01 14:11:15 +00:00
|
|
|
"unicode-xid",
|
2019-05-06 08:53:40 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_lint"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
2020-01-09 10:18:47 +00:00
|
|
|
"rustc_errors",
|
2019-11-29 23:23:38 +00:00
|
|
|
"rustc_feature",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2019-09-26 05:38:33 +00:00
|
|
|
"rustc_index",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2019-11-12 17:09:20 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_target",
|
2020-02-11 18:53:40 +00:00
|
|
|
"rustc_trait_selection",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-01-02 12:02:22 +00:00
|
|
|
"unicode-security",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_llvm"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"build_helper",
|
|
|
|
"cc",
|
2019-12-12 15:51:19 +00:00
|
|
|
"libc",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2019-03-01 00:22:10 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_macros"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-05-05 11:26:16 +00:00
|
|
|
"synstructure",
|
2019-03-01 00:22:10 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_metadata"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-04-10 20:42:19 +00:00
|
|
|
"libc",
|
2019-08-15 00:45:09 +00:00
|
|
|
"memmap",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_expand",
|
2020-09-12 23:58:17 +00:00
|
|
|
"rustc_feature",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2020-03-23 19:59:19 +00:00
|
|
|
"rustc_hir_pretty",
|
2019-09-26 05:30:10 +00:00
|
|
|
"rustc_index",
|
2020-06-11 14:49:57 +00:00
|
|
|
"rustc_macros",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-03-11 11:49:08 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_target",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-08-20 23:16:30 +00:00
|
|
|
"snap",
|
2019-08-15 00:45:09 +00:00
|
|
|
"stable_deref_trait",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2020-03-29 13:24:45 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_middle"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags",
|
2020-03-03 16:25:03 +00:00
|
|
|
"chalk-ir",
|
2020-03-29 13:24:45 +00:00
|
|
|
"measureme",
|
|
|
|
"polonius-engine",
|
|
|
|
"rustc-rayon-core",
|
|
|
|
"rustc_apfloat",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_arena",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_ast",
|
|
|
|
"rustc_attr",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_feature",
|
|
|
|
"rustc_hir",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_macros",
|
|
|
|
"rustc_query_system",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_session",
|
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-03-29 13:24:45 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_mir"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"either",
|
2020-09-12 06:24:09 +00:00
|
|
|
"itertools 0.9.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"polonius-engine",
|
2020-08-28 01:10:57 +00:00
|
|
|
"regex",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_apfloat",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_graphviz",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2019-09-26 05:30:10 +00:00
|
|
|
"rustc_index",
|
2020-01-06 19:13:24 +00:00
|
|
|
"rustc_infer",
|
2019-07-21 11:50:39 +00:00
|
|
|
"rustc_lexer",
|
2019-11-10 18:30:19 +00:00
|
|
|
"rustc_macros",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-03-11 11:49:08 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_target",
|
2020-02-11 18:53:40 +00:00
|
|
|
"rustc_trait_selection",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2020-01-05 15:46:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_mir_build"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc_apfloat",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_arena",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2020-01-05 15:46:44 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_hir",
|
|
|
|
"rustc_index",
|
2020-01-06 19:13:24 +00:00
|
|
|
"rustc_infer",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-01-20 21:23:07 +00:00
|
|
|
"rustc_session",
|
2020-01-05 15:46:44 +00:00
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-02-11 18:53:40 +00:00
|
|
|
"rustc_trait_selection",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-01-05 15:46:44 +00:00
|
|
|
]
|
|
|
|
|
2019-10-15 20:48:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_parse"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_ast_pretty",
|
2019-10-15 20:48:13 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-11-29 23:23:38 +00:00
|
|
|
"rustc_feature",
|
2019-10-15 20:48:13 +00:00
|
|
|
"rustc_lexer",
|
2020-01-05 09:47:20 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2019-11-23 14:33:40 +00:00
|
|
|
"unicode-normalization",
|
2019-10-15 20:48:13 +00:00
|
|
|
]
|
|
|
|
|
2020-06-02 17:03:40 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_parse_format"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc_lexer",
|
|
|
|
"rustc_span",
|
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_passes"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2019-10-04 14:46:57 +00:00
|
|
|
"rustc_index",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-09-26 00:00:00 +00:00
|
|
|
"rustc_serialize",
|
2020-01-02 11:54:43 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-10-04 14:46:57 +00:00
|
|
|
"rustc_target",
|
2020-02-11 18:53:40 +00:00
|
|
|
"rustc_trait_selection",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2019-07-16 17:08:32 +00:00
|
|
|
name = "rustc_plugin_impl"
|
2016-09-02 08:55:29 +00:00
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2019-12-31 20:25:16 +00:00
|
|
|
"rustc_errors",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2020-01-09 06:52:01 +00:00
|
|
|
"rustc_lint",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_metadata",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-03-11 11:49:08 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_privacy"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
2019-12-31 20:25:16 +00:00
|
|
|
"rustc_errors",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-03-11 11:49:08 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_typeck",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2020-03-18 09:25:22 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_query_system"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-09-12 06:24:09 +00:00
|
|
|
"parking_lot 0.11.0",
|
2020-03-19 13:13:31 +00:00
|
|
|
"rustc-rayon-core",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_arena",
|
2020-03-18 09:25:22 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_index",
|
2020-06-11 14:49:57 +00:00
|
|
|
"rustc_macros",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2020-03-19 13:13:31 +00:00
|
|
|
"rustc_span",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-03-18 09:25:22 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_resolve"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_arena",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2019-12-22 17:12:56 +00:00
|
|
|
"rustc_ast_lowering",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_expand",
|
2019-11-30 01:34:18 +00:00
|
|
|
"rustc_feature",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2020-06-20 18:59:29 +00:00
|
|
|
"rustc_index",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_metadata",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2019-12-24 21:42:56 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_save_analysis"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"rls-data",
|
|
|
|
"rls-span",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 16:02:46 +00:00
|
|
|
"rustc_ast_pretty",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2020-03-24 01:44:41 +00:00
|
|
|
"rustc_hir_pretty",
|
2020-08-29 09:38:15 +00:00
|
|
|
"rustc_lexer",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-03-11 11:49:08 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde_json",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2020-06-02 17:03:40 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_serialize"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"indexmap",
|
2020-07-18 19:14:50 +00:00
|
|
|
"rustc_macros",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-06-02 17:03:40 +00:00
|
|
|
]
|
|
|
|
|
2019-11-12 13:17:33 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_session"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-06-14 00:00:00 +00:00
|
|
|
"bitflags",
|
2020-04-10 20:42:19 +00:00
|
|
|
"getopts",
|
2019-11-29 21:05:28 +00:00
|
|
|
"num_cpus",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2019-11-12 13:17:33 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-11-29 21:05:28 +00:00
|
|
|
"rustc_feature",
|
|
|
|
"rustc_fs_util",
|
2020-06-11 14:49:57 +00:00
|
|
|
"rustc_macros",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-11-29 21:05:28 +00:00
|
|
|
"rustc_target",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2019-12-29 13:53:32 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_span"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
2020-03-31 05:17:15 +00:00
|
|
|
"md-5",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_arena",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_macros",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2019-12-29 13:53:32 +00:00
|
|
|
"scoped-tls",
|
2020-03-31 05:17:15 +00:00
|
|
|
"sha-1",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2019-12-29 13:53:32 +00:00
|
|
|
"unicode-width",
|
2019-11-12 13:17:33 +00:00
|
|
|
]
|
|
|
|
|
2020-03-12 23:07:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_symbol_mangling"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"punycode",
|
|
|
|
"rustc-demangle",
|
|
|
|
"rustc_ast",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_hir",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-03-12 23:07:58 +00:00
|
|
|
"rustc_session",
|
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-03-12 23:07:58 +00:00
|
|
|
]
|
|
|
|
|
2017-12-08 19:18:21 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_target"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
|
|
|
"rustc_data_structures",
|
2019-09-26 05:38:33 +00:00
|
|
|
"rustc_index",
|
2019-11-09 21:27:52 +00:00
|
|
|
"rustc_macros",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_serialize",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2017-12-08 19:18:21 +00:00
|
|
|
]
|
|
|
|
|
2018-09-07 07:12:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_tools_util"
|
2019-06-08 20:15:22 +00:00
|
|
|
version = "0.2.0"
|
2019-01-05 14:40:10 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_tools_util"
|
2019-05-26 17:21:54 +00:00
|
|
|
version = "0.2.0"
|
2019-06-08 20:15:22 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "b725dadae9fabc488df69a287f5a99c5eaf5d10853842a8a3dfac52476f544ee"
|
2018-09-07 07:12:06 +00:00
|
|
|
|
2020-02-11 18:53:40 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_trait_selection"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc_ast",
|
|
|
|
"rustc_attr",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_hir",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_infer",
|
|
|
|
"rustc_macros",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_parse_format",
|
2020-02-11 18:53:40 +00:00
|
|
|
"rustc_session",
|
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-02-11 18:53:40 +00:00
|
|
|
]
|
|
|
|
|
2018-02-25 15:58:54 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_traits"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-08-04 22:35:37 +00:00
|
|
|
"chalk-engine",
|
2020-03-03 16:25:03 +00:00
|
|
|
"chalk-ir",
|
|
|
|
"chalk-solve",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2020-03-03 16:25:03 +00:00
|
|
|
"rustc_index",
|
2020-01-06 19:13:24 +00:00
|
|
|
"rustc_infer",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2020-02-11 18:53:40 +00:00
|
|
|
"rustc_trait_selection",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2018-02-25 15:58:54 +00:00
|
|
|
]
|
|
|
|
|
2020-01-13 12:40:30 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_ty"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc_data_structures",
|
2020-04-10 02:13:29 +00:00
|
|
|
"rustc_errors",
|
2020-01-13 12:40:30 +00:00
|
|
|
"rustc_hir",
|
2020-01-06 19:13:24 +00:00
|
|
|
"rustc_infer",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-03-11 11:49:08 +00:00
|
|
|
"rustc_session",
|
2020-01-13 12:40:30 +00:00
|
|
|
"rustc_span",
|
2020-02-12 16:24:32 +00:00
|
|
|
"rustc_target",
|
2020-02-11 18:53:40 +00:00
|
|
|
"rustc_trait_selection",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2020-01-13 12:40:30 +00:00
|
|
|
]
|
2018-02-25 15:58:54 +00:00
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_typeck"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-06-02 17:03:40 +00:00
|
|
|
"rustc_arena",
|
2020-02-29 17:16:26 +00:00
|
|
|
"rustc_ast",
|
2020-01-11 12:15:20 +00:00
|
|
|
"rustc_attr",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-01-05 01:37:57 +00:00
|
|
|
"rustc_hir",
|
2020-07-09 02:39:26 +00:00
|
|
|
"rustc_hir_pretty",
|
2019-09-26 05:38:33 +00:00
|
|
|
"rustc_index",
|
2020-01-06 19:13:24 +00:00
|
|
|
"rustc_infer",
|
2020-08-27 10:00:21 +00:00
|
|
|
"rustc_macros",
|
2020-03-29 13:24:45 +00:00
|
|
|
"rustc_middle",
|
2020-03-11 11:49:08 +00:00
|
|
|
"rustc_session",
|
2019-12-29 13:53:32 +00:00
|
|
|
"rustc_span",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc_target",
|
2020-02-11 18:53:40 +00:00
|
|
|
"rustc_trait_selection",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2018-05-11 12:11:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_version"
|
2018-12-08 11:06:54 +00:00
|
|
|
version = "0.2.3"
|
2018-05-11 12:11:06 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a"
|
2018-05-11 12:11:06 +00:00
|
|
|
dependencies = [
|
2020-05-26 00:56:32 +00:00
|
|
|
"semver 0.9.0",
|
2018-05-11 12:11:06 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustdoc"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-08-27 10:50:28 +00:00
|
|
|
"expect-test",
|
2020-09-12 06:24:09 +00:00
|
|
|
"itertools 0.9.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"minifier",
|
2020-09-14 00:15:01 +00:00
|
|
|
"pulldown-cmark 0.8.0",
|
2019-12-10 15:01:01 +00:00
|
|
|
"rustc-rayon",
|
2019-06-29 17:30:45 +00:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-08-17 22:54:29 +00:00
|
|
|
"smallvec 1.4.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"tempfile",
|
2017-07-23 02:01:58 +00:00
|
|
|
]
|
|
|
|
|
2018-02-05 22:43:53 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustdoc-themes"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2017-07-23 02:01:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustdoc-tool"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustdoc",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2020-01-14 17:47:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustfix"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.5.1"
|
2020-01-14 17:47:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "f2c50b74badcddeb8f7652fa8323ce440b95286f8e4b64ebfd871c609672704e"
|
2020-01-14 17:47:04 +00:00
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"log",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
]
|
|
|
|
|
2019-06-18 12:15:19 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustfmt-config_proc_macro"
|
2019-09-08 08:28:11 +00:00
|
|
|
version = "0.2.0"
|
2019-06-18 12:15:19 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
2020-08-01 14:11:15 +00:00
|
|
|
"syn",
|
2019-06-18 12:15:19 +00:00
|
|
|
]
|
|
|
|
|
2019-07-30 11:00:27 +00:00
|
|
|
[[package]]
|
|
|
|
name = "rustfmt-nightly"
|
2020-09-05 19:03:27 +00:00
|
|
|
version = "1.4.21"
|
2019-07-30 11:00:27 +00:00
|
|
|
dependencies = [
|
2020-05-08 20:48:26 +00:00
|
|
|
"annotate-snippets 0.6.1",
|
2020-06-15 09:43:39 +00:00
|
|
|
"anyhow",
|
2019-08-15 00:45:09 +00:00
|
|
|
"bytecount",
|
2020-08-17 15:21:44 +00:00
|
|
|
"cargo_metadata 0.8.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"derive-new",
|
|
|
|
"diff",
|
|
|
|
"dirs",
|
2019-09-24 18:06:56 +00:00
|
|
|
"env_logger 0.6.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"getopts",
|
|
|
|
"ignore",
|
2020-08-17 15:21:44 +00:00
|
|
|
"itertools 0.8.2",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"regex",
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_ast_pretty",
|
2020-05-21 13:39:52 +00:00
|
|
|
"rustc-ap-rustc_attr",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_errors",
|
2020-03-31 12:31:52 +00:00
|
|
|
"rustc-ap-rustc_expand",
|
2020-02-12 14:47:31 +00:00
|
|
|
"rustc-ap-rustc_parse",
|
|
|
|
"rustc-ap-rustc_session",
|
|
|
|
"rustc-ap-rustc_span",
|
2019-08-15 00:45:09 +00:00
|
|
|
"rustc-workspace-hack",
|
|
|
|
"rustfmt-config_proc_macro",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2019-11-12 18:14:48 +00:00
|
|
|
"structopt",
|
2020-08-17 15:21:44 +00:00
|
|
|
"term 0.6.1",
|
2020-06-15 09:43:39 +00:00
|
|
|
"thiserror",
|
2019-08-20 17:46:35 +00:00
|
|
|
"toml",
|
2019-08-15 00:45:09 +00:00
|
|
|
"unicode-segmentation",
|
|
|
|
"unicode-width",
|
|
|
|
"unicode_categories",
|
2019-07-30 11:00:27 +00:00
|
|
|
]
|
|
|
|
|
2018-08-21 17:23:47 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ryu"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.5"
|
2018-08-21 17:23:47 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
|
2018-08-21 17:23:47 +00:00
|
|
|
|
2018-01-08 21:56:22 +00:00
|
|
|
[[package]]
|
|
|
|
name = "same-file"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.6"
|
2018-01-08 21:56:22 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
2018-01-08 21:56:22 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"winapi-util",
|
2018-01-08 21:56:22 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "schannel"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.19"
|
2018-01-08 21:56:22 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75"
|
2018-01-08 21:56:22 +00:00
|
|
|
dependencies = [
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-01-08 21:56:22 +00:00
|
|
|
]
|
|
|
|
|
2019-02-26 10:15:52 +00:00
|
|
|
[[package]]
|
|
|
|
name = "scoped-tls"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2"
|
2019-02-26 10:15:52 +00:00
|
|
|
|
2019-07-25 13:57:25 +00:00
|
|
|
[[package]]
|
|
|
|
name = "scopeguard"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.1.0"
|
2019-07-25 13:57:25 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
|
2019-07-25 13:57:25 +00:00
|
|
|
|
2018-01-08 21:56:22 +00:00
|
|
|
[[package]]
|
|
|
|
name = "semver"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
|
2018-01-08 21:56:22 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"semver-parser",
|
|
|
|
"serde",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
2020-05-26 00:56:32 +00:00
|
|
|
[[package]]
|
|
|
|
name = "semver"
|
|
|
|
version = "0.10.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "394cec28fa623e00903caf7ba4fa6fb9a0e260280bb8cdbbba029611108a0190"
|
|
|
|
dependencies = [
|
|
|
|
"semver-parser",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "semver-parser"
|
|
|
|
version = "0.7.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
|
2017-04-29 23:11:58 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.115"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "e54c9a88f2da7238af84b5101443f0c0d0a3bbdc455e34a5c9497b1903ed55d5"
|
2018-12-17 18:23:04 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde_derive",
|
2018-12-17 18:23:04 +00:00
|
|
|
]
|
2017-04-29 23:11:58 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_derive"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.115"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "609feed1d0a73cc36a0182a840a9b37b4a82f0b1150369f0536a9e3f2a31dc48"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
2017-02-20 00:20:57 +00:00
|
|
|
|
2019-08-20 07:32:53 +00:00
|
|
|
[[package]]
|
|
|
|
name = "serde_ignored"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.2"
|
2019-08-20 07:32:53 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "1c2c7d39d14f2f2ea82239de71594782f186fd03501ac81f0ce08e674819ff2f"
|
2019-08-20 07:32:53 +00:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2017-02-20 00:20:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "serde_json"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.57"
|
2017-02-20 00:20:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "164eacbdb13512ec2745fb09d51fd5b22b0d65ed294a1dcf7285a360c80a675c"
|
2017-02-20 00:20:57 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"itoa",
|
|
|
|
"ryu",
|
|
|
|
"serde",
|
2017-02-20 00:20:57 +00:00
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "serde_repr"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.6"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "2dc6b7951b17b051f3210b063f12cc17320e2fe30ae05b0fe2a3abb068551c76"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-09-08 08:28:11 +00:00
|
|
|
]
|
|
|
|
|
2019-01-19 02:39:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "sha-1"
|
2020-03-31 05:17:15 +00:00
|
|
|
version = "0.8.2"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 05:17:15 +00:00
|
|
|
checksum = "f7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163df"
|
2019-01-19 02:39:37 +00:00
|
|
|
dependencies = [
|
2020-10-01 15:15:12 +00:00
|
|
|
"block-buffer 0.7.3",
|
|
|
|
"digest 0.8.1",
|
2019-08-15 00:45:09 +00:00
|
|
|
"fake-simd",
|
2020-10-01 15:15:12 +00:00
|
|
|
"opaque-debug 0.2.3",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sha2"
|
|
|
|
version = "0.9.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2933378ddfeda7ea26f48c555bdad8bb446bf8a3d17832dc83e380d444cfb8c1"
|
|
|
|
dependencies = [
|
|
|
|
"block-buffer 0.9.0",
|
|
|
|
"cfg-if",
|
|
|
|
"cpuid-bool",
|
|
|
|
"digest 0.9.0",
|
|
|
|
"opaque-debug 0.3.0",
|
2019-01-19 02:39:37 +00:00
|
|
|
]
|
|
|
|
|
2020-07-24 18:42:00 +00:00
|
|
|
[[package]]
|
|
|
|
name = "sharded-slab"
|
|
|
|
version = "0.0.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "06d5a3f5166fb5b42a5439f2eee8b9de149e235961e3eb21c5808fc3ea17ff3e"
|
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "shell-escape"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.5"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "45bb67a18fa91266cc7807181f62f9178a6873bfad7dc788c42e6430db40184f"
|
2017-04-29 23:11:58 +00:00
|
|
|
|
2018-01-25 17:32:25 +00:00
|
|
|
[[package]]
|
|
|
|
name = "shlex"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2"
|
2018-01-25 17:32:25 +00:00
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
2020-08-17 15:21:44 +00:00
|
|
|
name = "signal-hook-registry"
|
|
|
|
version = "1.2.1"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "a3e12110bc539e657a646068aaf5eb5b63af9d0c1f7b29c97113fad80e15f035"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"arc-swap",
|
|
|
|
"libc",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "siphasher"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.3.3"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "fa8f3741c7372e75519bd9346068370c9cdaabcc1f9599cbcf2a2719352286b7"
|
2018-04-03 14:32:04 +00:00
|
|
|
|
2019-05-23 20:27:49 +00:00
|
|
|
[[package]]
|
|
|
|
name = "sized-chunks"
|
2020-05-18 22:41:57 +00:00
|
|
|
version = "0.6.2"
|
2019-05-23 20:27:49 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-18 22:41:57 +00:00
|
|
|
checksum = "1ec31ceca5644fa6d444cc77548b88b67f46db6f7c71683b0f9336e671830d2f"
|
2019-05-23 20:27:49 +00:00
|
|
|
dependencies = [
|
2019-11-25 16:14:07 +00:00
|
|
|
"bitmaps",
|
2019-08-15 00:45:09 +00:00
|
|
|
"typenum",
|
2019-05-23 20:27:49 +00:00
|
|
|
]
|
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "slab"
|
|
|
|
version = "0.4.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
|
2019-01-21 15:32:43 +00:00
|
|
|
|
2017-12-03 12:49:01 +00:00
|
|
|
[[package]]
|
|
|
|
name = "smallvec"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.6.13"
|
2017-12-03 12:49:01 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "f7b0758c52e15a8b5e3691eae6cc559f08eee9406e548a4477ba4e67770a82b6"
|
|
|
|
dependencies = [
|
|
|
|
"maybe-uninit",
|
|
|
|
]
|
2017-12-03 12:49:01 +00:00
|
|
|
|
2019-11-04 14:59:09 +00:00
|
|
|
[[package]]
|
|
|
|
name = "smallvec"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.4.2"
|
2019-11-04 14:59:09 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252"
|
2019-11-04 14:59:09 +00:00
|
|
|
|
2020-08-20 23:16:30 +00:00
|
|
|
[[package]]
|
|
|
|
name = "snap"
|
|
|
|
version = "1.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "da73c8f77aebc0e40c300b93f0a5f1bece7a248a36eee287d4e095f35c7b7d6e"
|
|
|
|
|
2017-06-26 16:26:15 +00:00
|
|
|
[[package]]
|
|
|
|
name = "socket2"
|
2020-04-13 23:37:22 +00:00
|
|
|
version = "0.3.12"
|
2017-06-26 16:26:15 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-04-13 23:37:22 +00:00
|
|
|
checksum = "03088793f677dce356f3ccc2edb1b314ad191ab702a5de3faf49304f7e104918"
|
2017-06-26 16:26:15 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2017-06-26 16:26:15 +00:00
|
|
|
]
|
|
|
|
|
2017-04-26 21:22:45 +00:00
|
|
|
[[package]]
|
|
|
|
name = "stable_deref_trait"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.2.0"
|
2017-04-26 21:22:45 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
2017-04-26 21:22:45 +00:00
|
|
|
|
2018-11-02 15:14:24 +00:00
|
|
|
[[package]]
|
|
|
|
name = "stacker"
|
2020-09-20 17:07:52 +00:00
|
|
|
version = "0.1.12"
|
2018-11-02 15:14:24 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-20 17:07:52 +00:00
|
|
|
checksum = "21ccb4c06ec57bc82d0f610f1a2963d7648700e43a6f513e564b9c89f7991786"
|
2018-11-02 15:14:24 +00:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
|
|
|
"psm",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-11-02 15:14:24 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "std"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
"addr2line",
|
2019-08-15 00:45:09 +00:00
|
|
|
"alloc",
|
|
|
|
"cfg-if",
|
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
|
|
|
"dlmalloc",
|
|
|
|
"fortanix-sgx-abi",
|
2020-05-05 12:05:06 +00:00
|
|
|
"hashbrown",
|
2019-10-20 07:55:10 +00:00
|
|
|
"hermit-abi",
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
"miniz_oxide",
|
|
|
|
"object",
|
2019-08-15 00:45:09 +00:00
|
|
|
"panic_abort",
|
|
|
|
"panic_unwind",
|
|
|
|
"profiler_builtins",
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand",
|
std: Switch from libbacktrace to gimli
This commit is a proof-of-concept for switching the standard library's
backtrace symbolication mechanism on most platforms from libbacktrace to
gimli. The standard library's support for `RUST_BACKTRACE=1` requires
in-process parsing of object files and DWARF debug information to
interpret it and print the filename/line number of stack frames as part
of a backtrace.
Historically this support in the standard library has come from a
library called "libbacktrace". The libbacktrace library seems to have
been extracted from gcc at some point and is written in C. We've had a
lot of issues with libbacktrace over time, unfortunately, though. The
library does not appear to be actively maintained since we've had
patches sit for months-to-years without comments. We have discovered a
good number of soundness issues with the library itself, both when
parsing valid DWARF as well as invalid DWARF. This is enough of an issue
that the libs team has previously decided that we cannot feed untrusted
inputs to libbacktrace. This also doesn't take into account the
portability of libbacktrace which has been difficult to manage and
maintain over time. While possible there are lots of exceptions and it's
the main C dependency of the standard library right now.
For years it's been the desire to switch over to a Rust-based solution
for symbolicating backtraces. It's been assumed that we'll be using the
Gimli family of crates for this purpose, which are targeted at safely
and efficiently parsing DWARF debug information. I've been working
recently to shore up the Gimli support in the `backtrace` crate. As of a
few weeks ago the `backtrace` crate, by default, uses Gimli when loaded
from crates.io. This transition has gone well enough that I figured it
was time to start talking seriously about this change to the standard
library.
This commit is a preview of what's probably the best way to integrate
the `backtrace` crate into the standard library with the Gimli feature
turned on. While today it's used as a crates.io dependency, this commit
switches the `backtrace` crate to a submodule of this repository which
will need to be updated manually. This is not done lightly, but is
thought to be the best solution. The primary reason for this is that the
`backtrace` crate needs to do some pretty nontrivial filesystem
interactions to locate debug information. Working without `std::fs` is
not an option, and while it might be possible to do some sort of
trait-based solution when prototyped it was found to be too unergonomic.
Using a submodule allows the `backtrace` crate to build as a submodule
of the `std` crate itself, enabling it to use `std::fs` and such.
Otherwise this adds new dependencies to the standard library. This step
requires extra attention because this means that these crates are now
going to be included with all Rust programs by default. It's important
to note, however, that we're already shipping libbacktrace with all Rust
programs by default and it has a bunch of C code implementing all of
this internally anyway, so we're basically already switching
already-shipping functionality to Rust from C.
* `object` - this crate is used to parse object file headers and
contents. Very low-level support is used from this crate and almost
all of it is disabled. Largely we're just using struct definitions as
well as convenience methods internally to read bytes and such.
* `addr2line` - this is the main meat of the implementation for
symbolication. This crate depends on `gimli` for DWARF parsing and
then provides interfaces needed by the `backtrace` crate to turn an
address into a filename / line number. This crate is actually pretty
small (fits in a single file almost!) and mirrors most of what
`dwarf.c` does for libbacktrace.
* `miniz_oxide` - the libbacktrace crate transparently handles
compressed debug information which is compressed with zlib. This crate
is used to decompress compressed debug sections.
* `gimli` - not actually used directly, but a dependency of `addr2line`.
* `adler32`- not used directly either, but a dependency of
`miniz_oxide`.
The goal of this change is to improve the safety of backtrace
symbolication in the standard library, especially in the face of
possibly malformed DWARF debug information. Even to this day we're still
seeing segfaults in libbacktrace which could possibly become security
vulnerabilities. This change should almost entirely eliminate this
possibility whilc also paving the way forward to adding more features
like split debug information.
Some references for those interested are:
* Original addition of libbacktrace - #12602
* OOM with libbacktrace - #24231
* Backtrace failure due to use of uninitialized value - #28447
* Possibility to feed untrusted data to libbacktrace - #21889
* Soundness fix for libbacktrace - #33729
* Crash in libbacktrace - #39468
* Support for macOS, never merged - ianlancetaylor/libbacktrace#2
* Performance issues with libbacktrace - #29293, #37477
* Update procedure is quite complicated due to how many patches we
need to carry - #50955
* Libbacktrace doesn't work on MinGW with dynamic libs - #71060
* Segfault in libbacktrace on macOS - #71397
Switching to Rust will not make us immune to all of these issues. The
crashes are expected to go away, but correctness and performance may
still have bugs arise. The gimli and `backtrace` crates, however, are
actively maintained unlike libbacktrace, so this should enable us to at
least efficiently apply fixes as situations come up.
2020-05-13 21:22:37 +00:00
|
|
|
"rustc-demangle",
|
2019-08-15 00:45:09 +00:00
|
|
|
"unwind",
|
2020-01-08 15:33:57 +00:00
|
|
|
"wasi",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "string_cache"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.8.0"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "2940c75beb4e3bf3a494cef919a747a2cb81e52571e212bfbd185074add7208a"
|
2018-04-03 14:32:04 +00:00
|
|
|
dependencies = [
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"new_debug_unreachable",
|
|
|
|
"phf_shared",
|
|
|
|
"precomputed-hash",
|
|
|
|
"serde",
|
2018-04-03 14:32:04 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "string_cache_codegen"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.5.1"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "f24c8e5e19d22a726626f1a5e16fe15b132dcf21d10177fa5a45ce7962996b97"
|
2018-04-03 14:32:04 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"phf_generator",
|
|
|
|
"phf_shared",
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2018-04-03 14:32:04 +00:00
|
|
|
]
|
|
|
|
|
2019-05-23 20:27:49 +00:00
|
|
|
[[package]]
|
|
|
|
name = "strip-ansi-escapes"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "9d63676e2abafa709460982ddc02a3bb586b6d15a49b75c212e06edd3933acee"
|
2019-05-23 20:27:49 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"vte",
|
2019-05-23 20:27:49 +00:00
|
|
|
]
|
|
|
|
|
2017-02-07 23:13:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "strsim"
|
2019-09-08 08:28:11 +00:00
|
|
|
version = "0.8.0"
|
2017-02-07 23:13:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-08 08:28:11 +00:00
|
|
|
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
|
2017-02-07 23:13:57 +00:00
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "structopt"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.16"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "de5472fb24d7e80ae84a7801b7978f95a19ec32cb1876faea59ab711eb901976"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
|
|
|
"clap",
|
2020-08-17 15:21:44 +00:00
|
|
|
"lazy_static",
|
2019-11-12 18:14:48 +00:00
|
|
|
"structopt-derive",
|
2019-09-08 08:28:11 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "structopt-derive"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.9"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "1e0eb37335aeeebe51be42e2dc07f031163fbabfa6ac67d7ea68b5c2f68d5f99"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
|
|
|
"heck",
|
|
|
|
"proc-macro-error",
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-06-18 12:15:19 +00:00
|
|
|
]
|
|
|
|
|
2018-04-21 21:06:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "strum"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.18.0"
|
2018-04-21 21:06:13 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "57bd81eb48f4c437cadc685403cad539345bf703d78e63707418431cecd4522b"
|
2018-04-21 21:06:13 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "strum_macros"
|
2020-08-01 14:11:15 +00:00
|
|
|
version = "0.18.0"
|
2018-04-21 21:06:13 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 14:11:15 +00:00
|
|
|
checksum = "87c85aa3f8ea653bfd3ddf25f7ee357ee4d204731f6aa9ad04002306f6e2774c"
|
2018-04-21 21:06:13 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"heck",
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2018-04-02 15:43:55 +00:00
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "syn"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.38"
|
2019-09-08 08:28:11 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "e69abc24912995b3038597a7a593be5053eb0fb44f3cc5beec0deb421790c1f4"
|
2019-09-08 08:28:11 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"unicode-xid",
|
2019-09-08 08:28:11 +00:00
|
|
|
]
|
|
|
|
|
2019-10-04 12:43:23 +00:00
|
|
|
[[package]]
|
|
|
|
name = "synstructure"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.12.4"
|
2019-10-04 12:43:23 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701"
|
2019-10-04 12:43:23 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
|
|
|
"unicode-xid",
|
2019-10-04 12:43:23 +00:00
|
|
|
]
|
|
|
|
|
2017-05-08 22:01:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tar"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.29"
|
2017-05-08 22:01:13 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "c8a4c1d0bee3230179544336c15eefb563cf0302955d962e456542323e8c2e8a"
|
2017-05-08 22:01:13 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"filetime",
|
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
|
|
|
"xattr",
|
2017-05-08 22:01:13 +00:00
|
|
|
]
|
|
|
|
|
2018-03-29 07:34:55 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tempfile"
|
2019-09-11 17:03:28 +00:00
|
|
|
version = "3.1.0"
|
2018-03-29 07:34:55 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-11 17:03:28 +00:00
|
|
|
checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9"
|
2018-03-29 07:34:55 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cfg-if",
|
|
|
|
"libc",
|
2020-08-01 14:11:15 +00:00
|
|
|
"rand",
|
2019-08-15 00:45:09 +00:00
|
|
|
"redox_syscall",
|
|
|
|
"remove_dir_all",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-03-29 07:34:55 +00:00
|
|
|
]
|
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tendril"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.1"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "707feda9f2582d5d680d733e38755547a3e8fb471e7ba11452ecfd9ce93a5d3b"
|
2018-04-03 14:32:04 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"futf",
|
|
|
|
"mac",
|
|
|
|
"utf-8",
|
2018-04-03 14:32:04 +00:00
|
|
|
]
|
|
|
|
|
2019-04-07 05:48:59 +00:00
|
|
|
[[package]]
|
|
|
|
name = "term"
|
|
|
|
version = "0.0.0"
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
dependencies = [
|
|
|
|
"core",
|
|
|
|
"std",
|
|
|
|
]
|
2019-04-07 05:48:59 +00:00
|
|
|
|
2019-07-30 11:00:27 +00:00
|
|
|
[[package]]
|
|
|
|
name = "term"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.6.1"
|
2019-07-30 11:00:27 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "c0863a3345e70f61d613eab32ee046ccd1bcc5f9105fe402c61fcd0c13eeb8b5"
|
2019-07-30 11:00:27 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"dirs",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-07-30 11:00:27 +00:00
|
|
|
]
|
|
|
|
|
2018-07-26 00:25:12 +00:00
|
|
|
[[package]]
|
|
|
|
name = "termcolor"
|
2020-07-29 18:02:05 +00:00
|
|
|
version = "1.1.0"
|
2018-07-26 00:25:12 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-07-29 18:02:05 +00:00
|
|
|
checksum = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f"
|
2018-07-26 00:25:12 +00:00
|
|
|
dependencies = [
|
2020-07-29 18:02:05 +00:00
|
|
|
"winapi-util",
|
2018-07-26 00:25:12 +00:00
|
|
|
]
|
|
|
|
|
2020-01-29 00:13:48 +00:00
|
|
|
[[package]]
|
|
|
|
name = "termize"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1706be6b564323ce7092f5f7e6b118a14c8ef7ed0e69c8c5329c914a9f101295"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2020-01-29 00:13:48 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "test"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-05-22 02:01:19 +00:00
|
|
|
"cfg-if",
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
"core",
|
2019-08-15 00:45:09 +00:00
|
|
|
"getopts",
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
"libc",
|
|
|
|
"panic_abort",
|
|
|
|
"panic_unwind",
|
2019-08-15 00:45:09 +00:00
|
|
|
"proc_macro",
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
"std",
|
2019-04-07 05:48:59 +00:00
|
|
|
"term 0.0.0",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2019-11-23 16:27:36 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tester"
|
|
|
|
version = "0.7.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ee72ec31009a42b53de9a6b7d8f462b493ab3b1e4767bda1fcdbb52127f13b6c"
|
|
|
|
dependencies = [
|
|
|
|
"getopts",
|
|
|
|
"libc",
|
2020-08-17 15:21:44 +00:00
|
|
|
"term 0.6.1",
|
2019-11-23 16:27:36 +00:00
|
|
|
]
|
|
|
|
|
2017-06-27 17:33:32 +00:00
|
|
|
[[package]]
|
|
|
|
name = "textwrap"
|
2019-09-08 08:28:11 +00:00
|
|
|
version = "0.11.0"
|
2017-06-27 17:33:32 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-08 08:28:11 +00:00
|
|
|
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
|
2017-06-27 17:33:32 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"unicode-width",
|
2017-06-27 17:33:32 +00:00
|
|
|
]
|
|
|
|
|
2019-11-26 11:06:30 +00:00
|
|
|
[[package]]
|
|
|
|
name = "thiserror"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.20"
|
2019-11-26 11:06:30 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "7dfdd070ccd8ccb78f4ad66bf1982dc37f620ef696c6b5028fe2ed83dd3d0d08"
|
2019-11-26 11:06:30 +00:00
|
|
|
dependencies = [
|
|
|
|
"thiserror-impl",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "thiserror-impl"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "1.0.20"
|
2019-11-26 11:06:30 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "bd80fc12f73063ac132ac92aceea36734f04a1d93c1240c6944e23a3b8841793"
|
2019-11-26 11:06:30 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-11-26 11:06:30 +00:00
|
|
|
]
|
|
|
|
|
2020-02-12 14:47:31 +00:00
|
|
|
[[package]]
|
|
|
|
name = "thread_local"
|
|
|
|
version = "1.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14"
|
|
|
|
dependencies = [
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2020-02-12 14:47:31 +00:00
|
|
|
]
|
|
|
|
|
2016-09-02 08:55:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tidy"
|
|
|
|
version = "0.1.0"
|
2018-02-23 01:52:56 +00:00
|
|
|
dependencies = [
|
2020-08-21 08:24:58 +00:00
|
|
|
"cargo_metadata 0.11.1",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"regex",
|
|
|
|
"walkdir",
|
2018-02-23 01:52:56 +00:00
|
|
|
]
|
2016-09-02 08:55:29 +00:00
|
|
|
|
2020-08-11 23:49:39 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tier-check"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2018-01-25 04:01:42 +00:00
|
|
|
[[package]]
|
|
|
|
name = "time"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.43"
|
2018-01-25 04:01:42 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
|
2018-01-25 04:01:42 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-01-25 04:01:42 +00:00
|
|
|
]
|
|
|
|
|
2020-08-17 15:21:44 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tinyvec"
|
2020-08-17 23:07:09 +00:00
|
|
|
version = "0.3.4"
|
2020-08-17 15:21:44 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 23:07:09 +00:00
|
|
|
checksum = "238ce071d267c5710f9d31451efec16c5ee22de34df17cc05e56cbc92e967117"
|
2020-08-17 15:21:44 +00:00
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tokio"
|
2019-12-04 17:40:16 +00:00
|
|
|
version = "0.1.22"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-12-04 17:40:16 +00:00
|
|
|
checksum = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"mio",
|
|
|
|
"num_cpus",
|
|
|
|
"tokio-codec",
|
|
|
|
"tokio-current-thread",
|
|
|
|
"tokio-executor",
|
|
|
|
"tokio-fs",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
2019-12-04 17:40:16 +00:00
|
|
|
"tokio-sync",
|
2019-08-15 00:45:09 +00:00
|
|
|
"tokio-tcp",
|
|
|
|
"tokio-threadpool",
|
|
|
|
"tokio-timer",
|
|
|
|
"tokio-udp",
|
|
|
|
"tokio-uds",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-codec"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.2"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"tokio-io",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-current-thread"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.7"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"futures",
|
|
|
|
"tokio-executor",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-executor"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.10"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"futures",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-fs"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.7"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "297a1206e0ca6302a0eed35b700d292b275256f596e2f3fea7729d5e629b6ff4"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"futures",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-threadpool",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-io"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.13"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"log",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-named-pipes"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9d282d483052288b2308ba5ee795f5673b159c9bdf63c385a05609da782a5eae"
|
|
|
|
dependencies = [
|
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"mio",
|
|
|
|
"mio-named-pipes",
|
|
|
|
"tokio",
|
|
|
|
]
|
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-process"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.5"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "382d90f43fa31caebe5d3bc6cfd854963394fff3b8cb59d5146607aaae7e7e43"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-queue 0.1.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"futures",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2019-12-04 17:40:16 +00:00
|
|
|
"log",
|
2019-08-15 00:45:09 +00:00
|
|
|
"mio",
|
|
|
|
"mio-named-pipes",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
|
|
|
"tokio-signal",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-reactor"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.12"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"futures",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"mio",
|
|
|
|
"num_cpus",
|
2020-02-12 14:47:31 +00:00
|
|
|
"parking_lot 0.9.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"slab",
|
|
|
|
"tokio-executor",
|
|
|
|
"tokio-io",
|
2019-12-04 17:40:16 +00:00
|
|
|
"tokio-sync",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2019-09-08 08:28:11 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-service"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "24da22d077e0f15f55162bdbdc661228c1581892f52074fb242678d015b45162"
|
|
|
|
dependencies = [
|
|
|
|
"futures",
|
|
|
|
]
|
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-signal"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.9"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "d0c34c6e548f101053321cba3da7cbb87a610b85555884c41b07da2eb91aff12"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"futures",
|
|
|
|
"libc",
|
|
|
|
"mio",
|
|
|
|
"mio-uds",
|
2020-08-17 15:21:44 +00:00
|
|
|
"signal-hook-registry",
|
2019-08-15 00:45:09 +00:00
|
|
|
"tokio-executor",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2019-12-04 17:40:16 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-sync"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.8"
|
2019-12-04 17:40:16 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee"
|
2019-12-04 17:40:16 +00:00
|
|
|
dependencies = [
|
|
|
|
"fnv",
|
|
|
|
"futures",
|
|
|
|
]
|
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-tcp"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.4"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"iovec",
|
|
|
|
"mio",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-threadpool"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.18"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-12-04 17:40:16 +00:00
|
|
|
"crossbeam-deque",
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-queue 0.2.3",
|
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"futures",
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-08-15 00:45:09 +00:00
|
|
|
"log",
|
|
|
|
"num_cpus",
|
2019-12-04 17:40:16 +00:00
|
|
|
"slab",
|
2019-08-15 00:45:09 +00:00
|
|
|
"tokio-executor",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-timer"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.13"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 00:45:09 +00:00
|
|
|
"futures",
|
|
|
|
"slab",
|
|
|
|
"tokio-executor",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-udp"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.6"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"log",
|
|
|
|
"mio",
|
|
|
|
"tokio-codec",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-uds"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.7"
|
2019-01-21 15:32:43 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "ab57a4ac4111c8c9dbcf70779f6fc8bc35ae4b2454809febac840ad19bd7e4e0"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"iovec",
|
|
|
|
"libc",
|
|
|
|
"log",
|
|
|
|
"mio",
|
|
|
|
"mio-uds",
|
|
|
|
"tokio-codec",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2019-03-29 03:13:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "toml"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.5.6"
|
2019-03-29 03:13:13 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "ffc92d160b1eef40665be3a05630d003936a3bc7da7421277846c2613e92c71a"
|
2019-03-29 03:13:13 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
2019-03-29 03:13:13 +00:00
|
|
|
]
|
|
|
|
|
2020-05-27 05:05:09 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tracing"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.19"
|
2020-05-27 05:05:09 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "6d79ca061b032d6ce30c660fded31189ca0b9922bf483cd70759f13a2d86786c"
|
2020-05-27 05:05:09 +00:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if",
|
|
|
|
"tracing-attributes",
|
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-attributes"
|
2020-09-01 18:38:56 +00:00
|
|
|
version = "0.1.11"
|
2020-05-27 05:05:09 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-01 18:38:56 +00:00
|
|
|
checksum = "80e0ccfc3378da0cce270c946b676a376943f5cd16aeba64568e7939806f4ada"
|
2020-05-27 05:05:09 +00:00
|
|
|
dependencies = [
|
2020-08-01 14:11:15 +00:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-05-27 05:05:09 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-core"
|
2020-09-01 18:38:56 +00:00
|
|
|
version = "0.1.15"
|
2020-05-27 05:05:09 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-01 18:38:56 +00:00
|
|
|
checksum = "4f0e00789804e99b20f12bc7003ca416309d28a6f495d6af58d1e2c2842461b5"
|
2020-05-27 05:05:09 +00:00
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
|
|
|
]
|
|
|
|
|
2020-08-04 22:35:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tracing-log"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5e0f8c7178e13481ff6765bd169b33e8d554c5d2bbede5e32c356194be02b9b9"
|
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
|
|
|
"log",
|
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-serde"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b6ccba2f8f16e0ed268fc765d9b7ff22e965e7185d32f8f1ec8294fe17d86e79"
|
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
2020-07-24 18:42:00 +00:00
|
|
|
[[package]]
|
|
|
|
name = "tracing-subscriber"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.11"
|
2020-07-24 18:42:00 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "abd165311cc4d7a555ad11cc77a37756df836182db0d81aac908c8184c584f40"
|
2020-07-24 18:42:00 +00:00
|
|
|
dependencies = [
|
|
|
|
"ansi_term 0.12.1",
|
2020-08-04 22:35:37 +00:00
|
|
|
"chrono",
|
2020-07-24 18:42:00 +00:00
|
|
|
"lazy_static",
|
|
|
|
"matchers",
|
2020-08-17 15:21:44 +00:00
|
|
|
"parking_lot 0.11.0",
|
2020-07-24 18:42:00 +00:00
|
|
|
"regex",
|
2020-08-04 22:35:37 +00:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-07-24 18:42:00 +00:00
|
|
|
"sharded-slab",
|
2020-08-17 15:21:44 +00:00
|
|
|
"smallvec 1.4.2",
|
|
|
|
"thread_local",
|
2020-07-24 18:42:00 +00:00
|
|
|
"tracing-core",
|
2020-08-04 22:35:37 +00:00
|
|
|
"tracing-log",
|
|
|
|
"tracing-serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-tree"
|
2020-08-04 11:48:05 +00:00
|
|
|
version = "0.1.6"
|
2020-08-04 22:35:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-04 11:48:05 +00:00
|
|
|
checksum = "43aac8afb493b08e1e1904956f7407c1e671b9c83b26a17e1bd83d6a3520e350"
|
2020-08-04 22:35:37 +00:00
|
|
|
dependencies = [
|
|
|
|
"ansi_term 0.12.1",
|
|
|
|
"atty",
|
|
|
|
"chrono",
|
|
|
|
"termcolor",
|
|
|
|
"tracing",
|
|
|
|
"tracing-subscriber",
|
2020-07-24 18:42:00 +00:00
|
|
|
]
|
|
|
|
|
2018-12-03 01:33:20 +00:00
|
|
|
[[package]]
|
|
|
|
name = "typenum"
|
2020-05-18 22:41:57 +00:00
|
|
|
version = "1.12.0"
|
2018-12-03 01:33:20 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-18 22:41:57 +00:00
|
|
|
checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33"
|
2018-12-03 01:33:20 +00:00
|
|
|
|
2020-01-13 21:40:19 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ucd-parse"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.8"
|
2020-01-13 21:40:19 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "5269f8d35df6b8b60758343a6d742ecf09e4bca13faee32af5503aebd1e11b7c"
|
2020-01-13 21:40:19 +00:00
|
|
|
dependencies = [
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2020-01-13 21:40:19 +00:00
|
|
|
"regex",
|
|
|
|
]
|
|
|
|
|
2019-01-19 02:39:37 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ucd-trie"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.3"
|
2019-01-19 02:39:37 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c"
|
2019-01-19 02:39:37 +00:00
|
|
|
|
2019-04-20 17:03:59 +00:00
|
|
|
[[package]]
|
|
|
|
name = "unicase"
|
2020-02-13 17:39:40 +00:00
|
|
|
version = "2.6.0"
|
2019-04-20 17:03:59 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-02-13 17:39:40 +00:00
|
|
|
checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6"
|
2019-04-20 17:03:59 +00:00
|
|
|
dependencies = [
|
2020-02-13 17:39:40 +00:00
|
|
|
"version_check",
|
2019-04-20 17:03:59 +00:00
|
|
|
]
|
|
|
|
|
2020-01-13 21:40:19 +00:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-bdd"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"ucd-parse",
|
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-bidi"
|
2017-06-27 17:33:32 +00:00
|
|
|
version = "0.3.4"
|
2017-02-20 00:20:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5"
|
2017-02-20 00:20:57 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"matches",
|
2016-09-02 08:55:29 +00:00
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-normalization"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.13"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "6fb19cf769fa8c6a80a162df694621ebeb4dafb606470b2b2fce0be40a98a977"
|
2019-11-23 14:33:40 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"tinyvec",
|
2019-11-23 14:33:40 +00:00
|
|
|
]
|
2017-04-29 23:11:58 +00:00
|
|
|
|
2020-01-02 12:02:22 +00:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-script"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.5.2"
|
2020-01-02 12:02:22 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "79bf4d5fc96546fdb73f9827097810bbda93b11a6770ff3a54e1f445d4135787"
|
2020-01-02 12:02:22 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "unicode-security"
|
2020-06-23 11:45:13 +00:00
|
|
|
version = "0.0.5"
|
2020-01-02 12:02:22 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-06-23 11:45:13 +00:00
|
|
|
checksum = "5d87c28edc5b263377e448d6cdcb935c06b95413d8013ba6fae470558ccab18f"
|
2020-01-02 12:02:22 +00:00
|
|
|
dependencies = [
|
2020-04-25 01:38:31 +00:00
|
|
|
"unicode-normalization",
|
2020-01-02 12:02:22 +00:00
|
|
|
"unicode-script",
|
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-segmentation"
|
2019-11-12 18:14:48 +00:00
|
|
|
version = "1.6.0"
|
2017-02-07 23:13:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-11-12 18:14:48 +00:00
|
|
|
checksum = "e83e153d1053cbb5a118eeff7fd5be06ed99153f00dbcd8ae310c5fb2b22edc0"
|
2017-02-07 23:13:57 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "unicode-width"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.8"
|
2017-02-07 23:13:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3"
|
bootstrap: Merge the libtest build step with libstd
Since its inception rustbuild has always worked in three stages: one for
libstd, one for libtest, and one for rustc. These three stages were
architected around crates.io dependencies, where rustc wants to depend
on crates.io crates but said crates don't explicitly depend on libstd,
requiring a sysroot assembly step in the middle. This same logic was
applied for libtest where libtest wants to depend on crates.io crates
(`getopts`) but `getopts` didn't say that it depended on std, so it
needed `std` built ahead of time.
Lots of time has passed since the inception of rustbuild, however,
and we've since gotten to the point where even `std` itself is depending
on crates.io crates (albeit with some wonky configuration). This
commit applies the same logic to the two dependencies that the `test`
crate pulls in from crates.io, `getopts` and `unicode-width`. Over the
many years since rustbuild's inception `unicode-width` was the only
dependency picked up by the `test` crate, so the extra configuration
necessary to get crates building in this crate graph is unlikely to be
too much of a burden on developers.
After this patch it means that there are now only two build phasese of
rustbuild, one for libstd and one for rustc. The libtest/libproc_macro
build phase is all lumped into one now with `std`.
This was originally motivated by rust-lang/cargo#7216 where Cargo was
having to deal with synthesizing dependency edges but this commit makes
them explicit in this repository.
2019-08-16 15:29:08 +00:00
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
"rustc-std-workspace-std",
|
|
|
|
]
|
2017-02-07 23:13:57 +00:00
|
|
|
|
2019-07-21 11:50:39 +00:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-xid"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.1"
|
2019-07-21 11:50:39 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
|
2019-07-21 11:50:39 +00:00
|
|
|
|
2019-02-18 09:32:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "unicode_categories"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e"
|
2019-02-18 09:32:58 +00:00
|
|
|
|
2017-06-12 19:35:47 +00:00
|
|
|
[[package]]
|
|
|
|
name = "unstable-book-gen"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"num-traits",
|
|
|
|
"tidy",
|
2017-06-12 19:35:47 +00:00
|
|
|
]
|
|
|
|
|
2017-09-25 04:13:29 +00:00
|
|
|
[[package]]
|
|
|
|
name = "unwind"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"cc",
|
|
|
|
"cfg-if",
|
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
|
|
|
"libc",
|
2017-09-25 04:13:29 +00:00
|
|
|
]
|
|
|
|
|
2017-04-29 23:11:58 +00:00
|
|
|
[[package]]
|
|
|
|
name = "url"
|
2018-12-08 11:06:54 +00:00
|
|
|
version = "1.7.2"
|
2017-04-29 23:11:58 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a"
|
2017-04-29 23:11:58 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"idna 0.1.5",
|
|
|
|
"matches",
|
|
|
|
"percent-encoding 1.0.1",
|
2017-04-29 23:11:58 +00:00
|
|
|
]
|
|
|
|
|
2019-08-01 00:44:39 +00:00
|
|
|
[[package]]
|
|
|
|
name = "url"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "2.1.1"
|
2019-08-01 00:44:39 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "829d4a8476c35c9bf0bbce5a3b23f4106f79728039b726d292bb93bc106787cb"
|
2019-08-01 00:44:39 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"idna 0.2.0",
|
|
|
|
"matches",
|
2019-11-12 18:14:48 +00:00
|
|
|
"percent-encoding 2.1.0",
|
2019-08-15 00:45:09 +00:00
|
|
|
"serde",
|
2019-08-01 00:44:39 +00:00
|
|
|
]
|
|
|
|
|
2018-04-03 14:32:04 +00:00
|
|
|
[[package]]
|
|
|
|
name = "utf-8"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.7.5"
|
2018-04-03 14:32:04 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "05e42f7c18b8f902290b009cde6d651262f956c98bc51bca4cd1d511c9cd85c7"
|
2018-04-03 14:32:04 +00:00
|
|
|
|
2019-05-23 20:27:49 +00:00
|
|
|
[[package]]
|
|
|
|
name = "utf8parse"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "8772a4ccbb4e89959023bc5b7cb8623a795caa7092d99f3aa9501b9484d4557d"
|
2019-05-23 20:27:49 +00:00
|
|
|
|
2017-06-15 02:33:06 +00:00
|
|
|
[[package]]
|
|
|
|
name = "vcpkg"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.2.10"
|
2017-06-15 02:33:06 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "6454029bf181f092ad1b853286f23e2c507d8e8194d01d92da4a55c274a5508c"
|
2017-06-15 02:33:06 +00:00
|
|
|
|
2017-02-07 23:13:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "vec_map"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.8.2"
|
2017-02-07 23:13:57 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
|
2017-02-07 23:13:57 +00:00
|
|
|
|
2018-09-17 07:20:03 +00:00
|
|
|
[[package]]
|
|
|
|
name = "vergen"
|
2020-06-01 18:17:20 +00:00
|
|
|
version = "3.1.0"
|
2018-09-17 07:20:03 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-06-01 18:17:20 +00:00
|
|
|
checksum = "4ce50d8996df1f85af15f2cd8d33daae6e479575123ef4314a51a70a230739cb"
|
2018-09-17 07:20:03 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"bitflags",
|
|
|
|
"chrono",
|
2018-09-17 07:20:03 +00:00
|
|
|
]
|
|
|
|
|
2019-11-25 16:14:07 +00:00
|
|
|
[[package]]
|
|
|
|
name = "version_check"
|
2020-08-18 00:09:36 +00:00
|
|
|
version = "0.9.1"
|
2019-11-25 16:14:07 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-18 00:09:36 +00:00
|
|
|
checksum = "078775d0255232fb988e6fccf26ddc9d1ac274299aaedcedce21c6f72cc533ce"
|
2019-11-25 16:14:07 +00:00
|
|
|
|
2019-05-23 20:27:49 +00:00
|
|
|
[[package]]
|
|
|
|
name = "vte"
|
|
|
|
version = "0.3.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "4f42f536e22f7fcbb407639765c8fd78707a33109301f834a594758bedd6e8cf"
|
2019-05-23 20:27:49 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"utf8parse",
|
2019-05-23 20:27:49 +00:00
|
|
|
]
|
|
|
|
|
2018-01-08 21:56:22 +00:00
|
|
|
[[package]]
|
|
|
|
name = "walkdir"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "2.3.1"
|
2018-01-08 21:56:22 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "777182bc735b6424e1a57516d35ed72cb8019d85c8c9bf536dccb3445c1a2f7d"
|
2018-01-08 21:56:22 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"same-file",
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2019-08-15 00:45:09 +00:00
|
|
|
"winapi-util",
|
2018-01-08 21:56:22 +00:00
|
|
|
]
|
|
|
|
|
2019-11-25 17:27:25 +00:00
|
|
|
[[package]]
|
|
|
|
name = "wasi"
|
|
|
|
version = "0.9.0+wasi-snapshot-preview1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
|
2019-08-29 17:13:15 +00:00
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
]
|
|
|
|
|
2017-02-07 23:13:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "winapi"
|
|
|
|
version = "0.2.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
|
2017-02-07 23:13:57 +00:00
|
|
|
|
2018-01-08 21:56:22 +00:00
|
|
|
[[package]]
|
|
|
|
name = "winapi"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.3.9"
|
2018-01-08 21:56:22 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
2018-01-08 21:56:22 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"winapi-i686-pc-windows-gnu",
|
|
|
|
"winapi-x86_64-pc-windows-gnu",
|
2018-01-08 21:56:22 +00:00
|
|
|
]
|
|
|
|
|
2017-02-07 23:13:57 +00:00
|
|
|
[[package]]
|
|
|
|
name = "winapi-build"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
|
2017-02-07 23:13:57 +00:00
|
|
|
|
2018-01-08 21:56:22 +00:00
|
|
|
[[package]]
|
|
|
|
name = "winapi-i686-pc-windows-gnu"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
2018-01-08 21:56:22 +00:00
|
|
|
|
2018-08-21 17:23:47 +00:00
|
|
|
[[package]]
|
|
|
|
name = "winapi-util"
|
2020-07-29 18:02:05 +00:00
|
|
|
version = "0.1.5"
|
2018-08-21 17:23:47 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-07-29 18:02:05 +00:00
|
|
|
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
2018-08-21 17:23:47 +00:00
|
|
|
dependencies = [
|
2020-08-17 15:21:44 +00:00
|
|
|
"winapi 0.3.9",
|
2018-08-21 17:23:47 +00:00
|
|
|
]
|
|
|
|
|
2018-01-08 21:56:22 +00:00
|
|
|
[[package]]
|
|
|
|
name = "winapi-x86_64-pc-windows-gnu"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
2018-01-08 21:56:22 +00:00
|
|
|
|
2019-01-21 15:32:43 +00:00
|
|
|
[[package]]
|
|
|
|
name = "ws2_32-sys"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"
|
2019-01-21 15:32:43 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"winapi 0.2.8",
|
|
|
|
"winapi-build",
|
2019-01-21 15:32:43 +00:00
|
|
|
]
|
|
|
|
|
2017-05-08 22:01:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "xattr"
|
2018-07-17 16:04:22 +00:00
|
|
|
version = "0.2.2"
|
2017-05-08 22:01:13 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "244c3741f4240ef46274860397c7c74e50eb23624996930e484c16679633a54c"
|
2017-05-08 22:01:13 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"libc",
|
2017-05-08 22:01:13 +00:00
|
|
|
]
|
|
|
|
|
2020-08-01 14:11:15 +00:00
|
|
|
[[package]]
|
|
|
|
name = "xml5ever"
|
|
|
|
version = "0.16.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0b1b52e6e8614d4a58b8e70cf51ec0cc21b256ad8206708bcff8139b5bbd6a59"
|
|
|
|
dependencies = [
|
|
|
|
"log",
|
|
|
|
"mac",
|
|
|
|
"markup5ever",
|
|
|
|
"time",
|
|
|
|
]
|
|
|
|
|
2017-05-08 22:01:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "xz2"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.1.6"
|
2017-05-08 22:01:13 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "c179869f34fc7c01830d3ce7ea2086bc3a07e0d35289b667d0a8bf910258926c"
|
2017-05-08 22:01:13 +00:00
|
|
|
dependencies = [
|
2019-08-15 00:45:09 +00:00
|
|
|
"lzma-sys",
|
2017-05-08 22:01:13 +00:00
|
|
|
]
|
|
|
|
|
2019-11-26 11:06:30 +00:00
|
|
|
[[package]]
|
|
|
|
name = "yaml-merge-keys"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.1"
|
2019-11-26 11:06:30 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "fd236a7dc9bb598f349fe4a8754f49181fee50284daa15cd1ba652d722280004"
|
2019-11-26 11:06:30 +00:00
|
|
|
dependencies = [
|
2020-05-26 04:00:42 +00:00
|
|
|
"lazy_static",
|
2019-11-26 11:06:30 +00:00
|
|
|
"thiserror",
|
2020-08-17 15:21:44 +00:00
|
|
|
"yaml-rust 0.4.4",
|
2019-11-26 11:06:30 +00:00
|
|
|
]
|
|
|
|
|
2017-05-08 22:01:13 +00:00
|
|
|
[[package]]
|
|
|
|
name = "yaml-rust"
|
|
|
|
version = "0.3.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 00:45:09 +00:00
|
|
|
checksum = "e66366e18dc58b46801afbf2ca7661a9f59cc8c5962c29892b6039b4f86fa992"
|
2019-11-26 11:06:30 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "yaml-rust"
|
2020-08-17 15:21:44 +00:00
|
|
|
version = "0.4.4"
|
2019-11-26 11:06:30 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 15:21:44 +00:00
|
|
|
checksum = "39f0c922f1a334134dc2f7a8b67dc5d25f0735263feec974345ff706bcf20b0d"
|
2019-11-26 11:06:30 +00:00
|
|
|
dependencies = [
|
|
|
|
"linked-hash-map",
|
|
|
|
]
|