2019-02-04 17:31:48 +01:00
|
|
|
# This file is automatically @generated by Cargo.
|
|
|
|
# It is not intended for manual editing.
|
2018-12-08 12:06:54 +01: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 23:22:37 +02:00
|
|
|
name = "addr2line"
|
2020-11-20 18:12:14 +01:00
|
|
|
version = "0.14.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 23:22:37 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-11-20 18:12:14 +01:00
|
|
|
checksum = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423"
|
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 23:22:37 +02:00
|
|
|
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 12:06:54 +01:00
|
|
|
|
2019-05-16 07:27:39 +02:00
|
|
|
[[package]]
|
|
|
|
name = "aho-corasick"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.7.13"
|
2019-05-16 07:27:39 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86"
|
2019-05-16 07:27:39 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"memchr",
|
2019-05-16 07:27:39 +02:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "alloc"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand",
|
|
|
|
"rand_xorshift",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ammonia"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "3.1.0"
|
2019-06-19 05:36:47 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "89eac85170f4b3fb3dc5e442c1cfb036cb8eecf9dbbd431a161ffad15d90ea3b"
|
2019-06-19 05:36:47 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"html5ever",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"maplit",
|
2020-08-01 16:11:15 +02:00
|
|
|
"markup5ever_rcdom",
|
2019-08-15 02:45:09 +02:00
|
|
|
"matches",
|
|
|
|
"tendril",
|
2020-08-17 17:21:44 +02:00
|
|
|
"url 2.1.1",
|
2019-06-19 05:36:47 +02:00
|
|
|
]
|
|
|
|
|
2019-07-25 21:03:53 +02:00
|
|
|
[[package]]
|
|
|
|
name = "annotate-snippets"
|
|
|
|
version = "0.6.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "c7021ce4924a3f25f802b2cccd1af585e39ea1a363a1aa2e72afe54b67a3a7a7"
|
2019-07-30 13:00:27 +02:00
|
|
|
dependencies = [
|
2020-07-24 20:42:00 +02:00
|
|
|
"ansi_term 0.11.0",
|
2019-07-30 13:00:27 +02:00
|
|
|
]
|
2019-07-25 21:03:53 +02:00
|
|
|
|
2020-05-08 22:48:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "annotate-snippets"
|
|
|
|
version = "0.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d78ea013094e5ea606b1c05fe35f1dd7ea1eb1ea259908d040b25bd5ec677ee5"
|
|
|
|
|
2017-02-08 00:13:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "ansi_term"
|
2018-03-16 11:37:14 +01:00
|
|
|
version = "0.11.0"
|
2017-02-08 00:13:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
|
2018-03-16 11:37:14 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-03-16 11:37:14 +01:00
|
|
|
]
|
2017-02-08 00:13:57 +01:00
|
|
|
|
2020-07-24 20:42:00 +02: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 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2020-07-24 20:42:00 +02:00
|
|
|
]
|
|
|
|
|
2020-01-14 18:47:04 +01:00
|
|
|
[[package]]
|
|
|
|
name = "anyhow"
|
2020-11-05 01:15:18 +01:00
|
|
|
version = "1.0.34"
|
2020-01-14 18:47:04 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-11-05 01:15:18 +01:00
|
|
|
checksum = "bf8dcb5b4bbaa28653b647d8c77bd4ed40183b48882e130c1f1ffb73de069fd7"
|
2020-01-14 18:47:04 +01:00
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "arc-swap"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.7"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "4d25d88fd6b8041580a654f9d0c581a047baee2b3efee13275f2fc392fc75034"
|
2019-01-21 16:32:43 +01:00
|
|
|
|
2019-02-18 10:32:58 +01:00
|
|
|
[[package]]
|
2020-08-17 17:21:44 +02:00
|
|
|
name = "arrayref"
|
|
|
|
version = "0.3.6"
|
2019-02-18 10:32:58 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544"
|
2018-02-26 04:15:45 +01:00
|
|
|
|
2020-07-14 02:31:54 +02:00
|
|
|
[[package]]
|
|
|
|
name = "arrayvec"
|
|
|
|
version = "0.5.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cff77d8686867eceff3105329d4698d96c2391c176d5d03adc90c7389162b5b8"
|
|
|
|
|
2017-06-15 04:33:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "atty"
|
2020-05-26 06:35:21 +02:00
|
|
|
version = "0.2.14"
|
2017-06-15 04:33:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 06:35:21 +02:00
|
|
|
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
2017-06-15 04:33:06 +02:00
|
|
|
dependencies = [
|
2020-05-26 06:35:21 +02:00
|
|
|
"hermit-abi",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2017-06-15 04:33:06 +02:00
|
|
|
]
|
|
|
|
|
2020-03-26 14:10:35 +01:00
|
|
|
[[package]]
|
|
|
|
name = "autocfg"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d"
|
|
|
|
|
2017-05-09 00:01:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "backtrace"
|
2020-11-20 18:12:14 +01:00
|
|
|
version = "0.3.55"
|
2017-05-09 00:01:13 +02: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 23:22:37 +02:00
|
|
|
"addr2line",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 1.0.0",
|
2019-08-15 02:45:09 +02: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 23:22:37 +02:00
|
|
|
"miniz_oxide",
|
2020-11-20 18:12:14 +01:00
|
|
|
"object",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc-demangle",
|
2017-05-09 00:01:13 +02:00
|
|
|
]
|
|
|
|
|
2020-08-17 17:21:44 +02:00
|
|
|
[[package]]
|
|
|
|
name = "base64"
|
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7"
|
|
|
|
|
2017-09-08 21:08:01 +02:00
|
|
|
[[package]]
|
|
|
|
name = "bitflags"
|
2019-10-14 01:37:55 +02:00
|
|
|
version = "1.2.1"
|
2017-09-08 21:08:01 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-10-14 01:37:55 +02:00
|
|
|
checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
|
2017-09-08 21:08:01 +02:00
|
|
|
|
2019-11-25 17:14:07 +01:00
|
|
|
[[package]]
|
|
|
|
name = "bitmaps"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "2.1.0"
|
2019-11-25 17:14:07 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2"
|
2019-11-25 17:14:07 +01:00
|
|
|
dependencies = [
|
|
|
|
"typenum",
|
|
|
|
]
|
|
|
|
|
2019-02-18 10:32:58 +01:00
|
|
|
[[package]]
|
2020-08-17 17:21:44 +02:00
|
|
|
name = "blake2b_simd"
|
|
|
|
version = "0.5.10"
|
2019-02-18 10:32:58 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "d8fb2d74254a3a0b5cac33ac9f8ed0e44aa50378d9dbb2e5d83bd21ed1dc2c8a"
|
2019-02-18 10:32:58 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"arrayref",
|
|
|
|
"arrayvec",
|
2019-08-15 02:45:09 +02:00
|
|
|
"constant_time_eq",
|
2019-02-18 10:32:58 +01:00
|
|
|
]
|
|
|
|
|
2019-01-19 03:39:37 +01:00
|
|
|
[[package]]
|
|
|
|
name = "block-buffer"
|
2020-03-31 07:17:15 +02:00
|
|
|
version = "0.7.3"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 07:17:15 +02:00
|
|
|
checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b"
|
|
|
|
dependencies = [
|
|
|
|
"block-padding",
|
|
|
|
"byte-tools",
|
|
|
|
"byteorder",
|
2020-10-01 17:15:12 +02: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 07:17:15 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "block-padding"
|
|
|
|
version = "0.1.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5"
|
2019-01-19 03:39:37 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"byte-tools",
|
2019-01-19 03:39:37 +01:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "bootstrap"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"build_helper",
|
|
|
|
"cc",
|
|
|
|
"cmake",
|
|
|
|
"filetime",
|
|
|
|
"getopts",
|
2019-12-18 16:52:10 +01:00
|
|
|
"ignore",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2020-09-12 06:42:52 +02:00
|
|
|
"merge",
|
2019-08-15 02:45:09 +02:00
|
|
|
"num_cpus",
|
2020-05-22 04:48:44 +02:00
|
|
|
"opener",
|
2019-08-15 02:45:09 +02:00
|
|
|
"pretty_assertions",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"time",
|
2019-08-20 19:46:35 +02:00
|
|
|
"toml",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2017-01-24 23:37:04 +01:00
|
|
|
]
|
|
|
|
|
2019-05-16 07:27:39 +02:00
|
|
|
[[package]]
|
|
|
|
name = "bstr"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.2.13"
|
2019-05-16 07:27:39 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "31accafdb70df7871592c058eca3985b71104e15ac32f64706022c58867da931"
|
2019-05-16 07:27:39 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"memchr",
|
2019-05-16 07:27:39 +02:00
|
|
|
]
|
|
|
|
|
2017-01-24 23:37:04 +01:00
|
|
|
[[package]]
|
|
|
|
name = "build-manifest"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2020-09-18 14:40:01 +02:00
|
|
|
"anyhow",
|
2020-09-24 14:13:40 +02:00
|
|
|
"flate2",
|
2020-10-01 17:15:12 +02:00
|
|
|
"hex 0.4.2",
|
2020-10-12 17:47:37 +02:00
|
|
|
"num_cpus",
|
2020-10-01 17:15:12 +02:00
|
|
|
"rayon",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
2019-11-03 11:47:07 +01:00
|
|
|
"serde_json",
|
2020-10-01 17:15:12 +02:00
|
|
|
"sha2",
|
2020-09-24 14:13:40 +02:00
|
|
|
"tar",
|
2019-08-20 19:46:35 +02:00
|
|
|
"toml",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "build_helper"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2019-01-19 03:39:37 +01:00
|
|
|
[[package]]
|
|
|
|
name = "byte-tools"
|
2020-03-31 07:17:15 +02:00
|
|
|
version = "0.3.1"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 07:17:15 +02:00
|
|
|
checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7"
|
2019-01-19 03:39:37 +01:00
|
|
|
|
2018-10-08 19:39:09 +02:00
|
|
|
[[package]]
|
|
|
|
name = "bytecount"
|
2019-09-08 10:28:11 +02:00
|
|
|
version = "0.6.0"
|
2018-10-08 19:39:09 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-08 10:28:11 +02:00
|
|
|
checksum = "b0017894339f586ccb943b01b9555de56770c11cda818e7e3d8bd93f4ed7f46e"
|
2018-10-08 19:39:09 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"packed_simd",
|
2018-10-08 19:39:09 +02:00
|
|
|
]
|
|
|
|
|
2017-09-18 16:18:23 +02:00
|
|
|
[[package]]
|
|
|
|
name = "byteorder"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.3.4"
|
2017-09-18 16:18:23 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
|
2017-09-18 16:18:23 +02:00
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "bytes"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.12"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"byteorder",
|
|
|
|
"iovec",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2018-09-20 23:37:53 +02:00
|
|
|
[[package]]
|
|
|
|
name = "bytesize"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.1"
|
2018-09-20 23:37:53 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "81a18687293a1546b67c246452202bbbf143d239cb43494cc163da14979082da"
|
2018-09-20 23:37:53 +02:00
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cargo"
|
2021-01-06 04:36:00 +01:00
|
|
|
version = "0.52.0"
|
2017-07-19 03:32:12 +02:00
|
|
|
dependencies = [
|
2020-01-14 18:47:04 +01:00
|
|
|
"anyhow",
|
2019-08-15 02:45:09 +02:00
|
|
|
"atty",
|
|
|
|
"bytesize",
|
2019-09-24 20:06:56 +02:00
|
|
|
"cargo-platform",
|
2019-08-15 02:45:09 +02:00
|
|
|
"cargo-test-macro",
|
2019-09-16 20:45:40 +02:00
|
|
|
"cargo-test-support",
|
2019-08-15 02:45:09 +02:00
|
|
|
"clap",
|
2020-06-24 00:00:48 +02:00
|
|
|
"core-foundation",
|
2019-08-15 02:45:09 +02:00
|
|
|
"crates-io",
|
2020-10-15 00:16:47 +02:00
|
|
|
"crossbeam-utils 0.8.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"crypto-hash",
|
|
|
|
"curl",
|
|
|
|
"curl-sys",
|
2020-10-21 01:36:46 +02:00
|
|
|
"env_logger 0.8.1",
|
2019-08-15 02:45:09 +02:00
|
|
|
"filetime",
|
|
|
|
"flate2",
|
|
|
|
"fwdansi",
|
|
|
|
"git2",
|
|
|
|
"git2-curl",
|
|
|
|
"glob",
|
2020-08-17 17:21:44 +02:00
|
|
|
"hex 0.4.2",
|
2019-09-08 10:28:11 +02:00
|
|
|
"home",
|
2020-08-17 17:21:44 +02:00
|
|
|
"humantime 2.0.1",
|
2019-08-15 02:45:09 +02:00
|
|
|
"ignore",
|
|
|
|
"im-rc",
|
|
|
|
"jobserver",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"lazycell",
|
|
|
|
"libc",
|
|
|
|
"libgit2-sys",
|
|
|
|
"log",
|
|
|
|
"memchr",
|
2020-11-28 00:56:12 +01:00
|
|
|
"miow 0.3.6",
|
2019-08-15 02:45:09 +02:00
|
|
|
"num_cpus",
|
|
|
|
"opener",
|
|
|
|
"openssl",
|
2019-11-12 19:14:48 +01:00
|
|
|
"percent-encoding 2.1.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"pretty_env_logger",
|
|
|
|
"rustc-workspace-hack",
|
2020-04-15 18:32:41 +02:00
|
|
|
"rustfix",
|
2019-08-15 02:45:09 +02:00
|
|
|
"same-file",
|
2020-05-26 02:56:32 +02:00
|
|
|
"semver 0.10.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
2019-09-08 10:28:11 +02:00
|
|
|
"serde_ignored",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde_json",
|
|
|
|
"shell-escape",
|
|
|
|
"strip-ansi-escapes",
|
|
|
|
"tar",
|
|
|
|
"tempfile",
|
|
|
|
"termcolor",
|
2019-08-20 19:46:35 +02:00
|
|
|
"toml",
|
2019-08-15 02:45:09 +02:00
|
|
|
"unicode-width",
|
2020-08-01 16:11:15 +02:00
|
|
|
"unicode-xid",
|
2020-08-17 17:21:44 +02:00
|
|
|
"url 2.1.1",
|
2019-08-15 02:45:09 +02:00
|
|
|
"walkdir",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
2020-12-16 18:03:33 +01:00
|
|
|
[[package]]
|
|
|
|
name = "cargo-credential"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "cargo-credential-1password"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"cargo-credential",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "cargo-credential-macos-keychain"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"cargo-credential",
|
|
|
|
"security-framework",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "cargo-credential-wincred"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"cargo-credential",
|
|
|
|
"winapi 0.3.9",
|
|
|
|
]
|
|
|
|
|
2020-06-01 20:17:20 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cargo-miri"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"directories",
|
|
|
|
"rustc-workspace-hack",
|
|
|
|
"rustc_version",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"vergen",
|
|
|
|
]
|
|
|
|
|
2019-09-24 20:06:56 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cargo-platform"
|
2019-12-10 20:54:10 +01:00
|
|
|
version = "0.1.1"
|
2019-09-24 20:06:56 +02:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2019-06-12 16:37:30 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cargo-test-macro"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2019-09-16 20:45:40 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cargo-test-support"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"cargo",
|
|
|
|
"cargo-test-macro",
|
|
|
|
"filetime",
|
|
|
|
"flate2",
|
|
|
|
"git2",
|
|
|
|
"glob",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-09-16 20:45:40 +02:00
|
|
|
"remove_dir_all",
|
|
|
|
"serde_json",
|
|
|
|
"tar",
|
2020-08-17 17:21:44 +02:00
|
|
|
"url 2.1.1",
|
2019-09-16 20:45:40 +02:00
|
|
|
]
|
|
|
|
|
2019-06-04 01:00:38 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cargo_metadata"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.8.2"
|
2019-06-04 01:00:38 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "700b3731fd7d357223d0000f4dbf1808401b694609035c3c411fbc0cd375c426"
|
2019-06-04 01:00:38 +02:00
|
|
|
dependencies = [
|
2020-05-26 02:56:32 +02:00
|
|
|
"semver 0.9.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
2019-06-04 01:00:38 +02:00
|
|
|
]
|
|
|
|
|
2020-08-21 10:24:58 +02: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",
|
|
|
|
]
|
|
|
|
|
2020-10-23 23:47:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cargo_metadata"
|
|
|
|
version = "0.12.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d5a5f7b42f606b7f23674f6f4d877628350682bc40687d3fae65679a58d55345"
|
|
|
|
dependencies = [
|
|
|
|
"semver 0.11.0",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
]
|
|
|
|
|
2017-02-15 23:55:26 +01:00
|
|
|
[[package]]
|
|
|
|
name = "cargotest2"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2017-09-22 03:58:35 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cc"
|
2020-09-16 19:09:25 +02:00
|
|
|
version = "1.0.60"
|
2017-09-22 03:58:35 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-16 19:09:25 +02:00
|
|
|
checksum = "ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c"
|
2019-11-09 20:59:53 +01:00
|
|
|
dependencies = [
|
|
|
|
"jobserver",
|
|
|
|
]
|
2017-09-22 03:58:35 +02:00
|
|
|
|
2017-05-09 00:01:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cfg-if"
|
2020-01-08 16:33:57 +01:00
|
|
|
version = "0.1.10"
|
2017-05-09 00:01:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-08 16:33:57 +01:00
|
|
|
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
|
2019-05-15 16:30:15 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-core",
|
2019-05-15 16:30:15 +02:00
|
|
|
]
|
2017-05-09 00:01:13 +02:00
|
|
|
|
2020-10-11 19:51:07 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cfg-if"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
|
|
|
2020-03-03 17:25:03 +01:00
|
|
|
[[package]]
|
|
|
|
name = "chalk-derive"
|
2020-10-29 23:23:58 +01:00
|
|
|
version = "0.36.0"
|
2020-03-03 17:25:03 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-29 23:23:58 +01:00
|
|
|
checksum = "9f88ce4deae1dace71e49b7611cfae2d5489de3530d6daba5758043c47ac3a10"
|
2020-03-03 17:25:03 +01:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-05-05 13:26:16 +02:00
|
|
|
"synstructure",
|
2020-03-03 17:25:03 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "chalk-engine"
|
2020-10-29 23:23:58 +01:00
|
|
|
version = "0.36.0"
|
2020-03-03 17:25:03 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-29 23:23:58 +01:00
|
|
|
checksum = "0e34c9b1b10616782143d7f49490f91ae94afaf2202de3ab0b2835e78b4f0ccc"
|
2020-03-03 17:25:03 +01:00
|
|
|
dependencies = [
|
2020-05-27 02:19:19 +02:00
|
|
|
"chalk-derive",
|
|
|
|
"chalk-ir",
|
2020-08-05 00:35:37 +02:00
|
|
|
"chalk-solve",
|
2020-03-03 17:25:03 +01:00
|
|
|
"rustc-hash",
|
2020-05-27 07:05:09 +02:00
|
|
|
"tracing",
|
2020-03-03 17:25:03 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "chalk-ir"
|
2020-10-29 23:23:58 +01:00
|
|
|
version = "0.36.0"
|
2020-03-03 17:25:03 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-29 23:23:58 +01:00
|
|
|
checksum = "63362c629c2014ab639b04029070763fb8224df136d1363d30e9ece4c8877da3"
|
2020-03-03 17:25:03 +01:00
|
|
|
dependencies = [
|
|
|
|
"chalk-derive",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2020-03-03 17:25:03 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "chalk-solve"
|
2020-10-29 23:23:58 +01:00
|
|
|
version = "0.36.0"
|
2020-03-03 17:25:03 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-29 23:23:58 +01:00
|
|
|
checksum = "cac338a67af52a7f50bb2f8232e730a3518ce432dbe303246acfe525ddd838c7"
|
2020-03-03 17:25:03 +01:00
|
|
|
dependencies = [
|
|
|
|
"chalk-derive",
|
|
|
|
"chalk-ir",
|
2020-05-27 07:05:09 +02:00
|
|
|
"ena",
|
2020-03-03 17:25:03 +01:00
|
|
|
"itertools 0.9.0",
|
|
|
|
"petgraph",
|
|
|
|
"rustc-hash",
|
2020-05-27 07:05:09 +02:00
|
|
|
"tracing",
|
2020-08-05 00:35:37 +02:00
|
|
|
"tracing-subscriber",
|
|
|
|
"tracing-tree",
|
2020-03-03 17:25:03 +01:00
|
|
|
]
|
|
|
|
|
2018-01-25 05:01:42 +01:00
|
|
|
[[package]]
|
|
|
|
name = "chrono"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.15"
|
2018-01-25 05:01:42 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "942f72db697d8767c22d46a598e01f2d3b475501ea43d0db4f16d90259182d0b"
|
2018-01-25 05:01:42 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"num-integer",
|
|
|
|
"num-traits",
|
|
|
|
"time",
|
2018-01-25 05:01:42 +01:00
|
|
|
]
|
|
|
|
|
2017-02-08 00:13:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "clap"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "2.33.3"
|
2017-02-08 00:13:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002"
|
2017-02-08 00:13:57 +01:00
|
|
|
dependencies = [
|
2020-07-24 20:42:00 +02:00
|
|
|
"ansi_term 0.11.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"atty",
|
|
|
|
"bitflags",
|
|
|
|
"strsim",
|
|
|
|
"textwrap",
|
|
|
|
"unicode-width",
|
|
|
|
"vec_map",
|
2019-11-26 12:06:30 +01:00
|
|
|
"yaml-rust 0.3.5",
|
2017-02-08 00:13:57 +01:00
|
|
|
]
|
|
|
|
|
2017-12-06 09:25:29 +01:00
|
|
|
[[package]]
|
|
|
|
name = "clippy"
|
2021-01-02 16:47:58 +01:00
|
|
|
version = "0.1.51"
|
2017-12-06 09:25:29 +01:00
|
|
|
dependencies = [
|
2020-10-23 23:47:58 +02:00
|
|
|
"cargo_metadata 0.12.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"clippy-mini-macro-test",
|
|
|
|
"clippy_lints",
|
2020-04-15 18:32:41 +02:00
|
|
|
"compiletest_rs",
|
2019-08-15 02:45:09 +02:00
|
|
|
"derive-new",
|
|
|
|
"rustc-workspace-hack",
|
2019-05-26 19:21:54 +02:00
|
|
|
"rustc_tools_util 0.2.0",
|
2020-10-23 23:47:58 +02:00
|
|
|
"semver 0.11.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
2019-12-02 23:09:48 +01:00
|
|
|
"tempfile",
|
2019-11-28 18:40:05 +01:00
|
|
|
"tester",
|
2017-12-06 09:25:29 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "clippy-mini-macro-test"
|
2018-01-30 15:12:12 +01:00
|
|
|
version = "0.2.0"
|
2017-12-06 09:25:29 +01:00
|
|
|
|
2018-05-19 13:18:02 +02:00
|
|
|
[[package]]
|
|
|
|
name = "clippy_lints"
|
2021-01-02 16:47:58 +01:00
|
|
|
version = "0.1.51"
|
2018-05-11 14:11:06 +02:00
|
|
|
dependencies = [
|
2020-10-23 23:47:58 +02:00
|
|
|
"cargo_metadata 0.12.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"if_chain",
|
2020-03-12 21:47:47 +01:00
|
|
|
"itertools 0.9.0",
|
2020-09-24 14:51:13 +02:00
|
|
|
"pulldown-cmark 0.8.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"quine-mc_cluskey",
|
2020-08-01 16:11:15 +02:00
|
|
|
"quote",
|
2019-08-15 02:45:09 +02:00
|
|
|
"regex-syntax",
|
2020-12-06 15:07:59 +01:00
|
|
|
"rustc-semver",
|
2020-10-23 23:47:58 +02:00
|
|
|
"semver 0.11.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-08-01 16:11:15 +02:00
|
|
|
"syn",
|
2019-08-20 19:46:35 +02:00
|
|
|
"toml",
|
2019-08-15 02:45:09 +02:00
|
|
|
"unicode-normalization",
|
2020-08-17 17:21:44 +02:00
|
|
|
"url 2.1.1",
|
2018-05-11 14:11:06 +02:00
|
|
|
]
|
|
|
|
|
2018-07-26 23:58:55 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cloudabi"
|
|
|
|
version = "0.0.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
|
2018-07-26 23:58:55 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
2018-07-26 23:58:55 +02:00
|
|
|
]
|
|
|
|
|
2020-08-17 17:21:44 +02: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 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cmake"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.44"
|
2016-09-02 10:55:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "0e56268c17a6248366d66d4a47a3381369d068cce8409bb1716ed77ea32163bb"
|
2016-09-02 10:55:29 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2018-04-26 00:11:28 +02:00
|
|
|
[[package]]
|
|
|
|
name = "colored"
|
2020-09-17 20:04:20 +02:00
|
|
|
version = "2.0.0"
|
2018-04-26 00:11:28 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-17 20:04:20 +02:00
|
|
|
checksum = "b3616f750b84d8f0de8a58bda93e08e2a81ad3f523089b05f1dffecab48c6cbd"
|
2018-04-26 00:11:28 +02:00
|
|
|
dependencies = [
|
2020-05-26 06:00:42 +02:00
|
|
|
"atty",
|
|
|
|
"lazy_static",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-04-26 00:11:28 +02:00
|
|
|
]
|
|
|
|
|
2017-12-06 09:25:29 +01:00
|
|
|
[[package]]
|
|
|
|
name = "commoncrypto"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "d056a8586ba25a1e4d61cb090900e495952c7886786fc55f909ab2f819b69007"
|
2017-12-06 09:25:29 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"commoncrypto-sys",
|
2017-12-06 09:25:29 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "commoncrypto-sys"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "1fed34f46747aa73dfaa578069fd8279d2818ade2b55f38f22a9401c7f4083e2"
|
2017-12-06 09:25:29 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2017-06-17 21:01:18 +02:00
|
|
|
]
|
|
|
|
|
2016-10-07 08:30:38 +02:00
|
|
|
[[package]]
|
|
|
|
name = "compiler_builtins"
|
2020-12-09 20:48:08 +01:00
|
|
|
version = "0.1.39"
|
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 06:52:50 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-09 20:48:08 +01:00
|
|
|
checksum = "3748f82c7d366a0b4950257d19db685d4958d2fa27c6d164a3f069fec42b748b"
|
2016-10-07 08:30:38 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
|
|
|
"rustc-std-workspace-core",
|
2016-10-07 08:30:38 +02:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "compiletest"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"diff",
|
|
|
|
"getopts",
|
2020-07-28 15:22:21 +02:00
|
|
|
"glob",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2020-11-28 00:56:12 +01:00
|
|
|
"miow 0.3.6",
|
2019-08-15 02:45:09 +02:00
|
|
|
"regex",
|
2020-04-15 18:32:41 +02:00
|
|
|
"rustfix",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-10-20 02:00:00 +02:00
|
|
|
"tracing-subscriber",
|
2019-08-15 02:45:09 +02:00
|
|
|
"walkdir",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2020-04-15 20:54:39 +02: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-11-28 00:56:12 +01:00
|
|
|
"miow 0.3.6",
|
2020-04-15 20:54:39 +02:00
|
|
|
"regex",
|
2020-04-15 18:32:41 +02:00
|
|
|
"rustfix",
|
2020-04-15 20:54:39 +02:00
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
|
|
|
"tempfile",
|
|
|
|
"tester",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2020-04-15 20:54:39 +02:00
|
|
|
]
|
|
|
|
|
2020-10-15 00:16:47 +02:00
|
|
|
[[package]]
|
|
|
|
name = "const_fn"
|
|
|
|
version = "0.4.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ce90df4c658c62f12d78f7508cf92f9173e5184a539c10bfe54a3107b3ffd0f2"
|
|
|
|
|
2019-02-18 10:32:58 +01:00
|
|
|
[[package]]
|
|
|
|
name = "constant_time_eq"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.5"
|
2019-02-18 10:32:58 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc"
|
2019-02-18 10:32:58 +01:00
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "core"
|
|
|
|
version = "0.0.0"
|
2018-02-26 18:07:16 +01:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand",
|
2018-02-26 18:07:16 +01:00
|
|
|
]
|
2016-09-02 10:55:29 +02:00
|
|
|
|
2019-11-25 17:14:07 +01:00
|
|
|
[[package]]
|
|
|
|
name = "core-foundation"
|
2020-06-30 19:39:05 +02:00
|
|
|
version = "0.9.0"
|
2019-11-25 17:14:07 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-06-30 19:39:05 +02:00
|
|
|
checksum = "3b5ed8e7e76c45974e15e41bfa8d5b0483cd90191639e01d8f5f1e606299d3fb"
|
2019-11-25 17:14:07 +01:00
|
|
|
dependencies = [
|
2020-06-24 00:00:48 +02:00
|
|
|
"core-foundation-sys",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2017-08-24 07:52:28 +02:00
|
|
|
]
|
|
|
|
|
2019-11-25 17:14:07 +01:00
|
|
|
[[package]]
|
|
|
|
name = "core-foundation-sys"
|
2020-06-30 19:39:05 +02:00
|
|
|
version = "0.8.0"
|
2019-11-25 17:14:07 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-06-30 19:39:05 +02:00
|
|
|
checksum = "9a21fa21941700a3cd8fcb4091f361a6a712fac632f85d9f487cc892045d55c6"
|
2019-11-25 17:14:07 +01:00
|
|
|
|
2020-11-03 06:32:48 +01:00
|
|
|
[[package]]
|
|
|
|
name = "coverage_test_macros"
|
|
|
|
version = "0.0.0"
|
|
|
|
|
2020-10-01 17:15:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "cpuid-bool"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634"
|
|
|
|
|
2017-07-19 03:32:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crates-io"
|
2020-04-21 23:11:30 +02:00
|
|
|
version = "0.31.1"
|
2017-07-19 03:32:12 +02:00
|
|
|
dependencies = [
|
2020-01-14 18:47:04 +01:00
|
|
|
"anyhow",
|
2019-08-15 02:45:09 +02:00
|
|
|
"curl",
|
2019-11-12 19:14:48 +01:00
|
|
|
"percent-encoding 2.1.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-08-17 17:21:44 +02:00
|
|
|
"url 2.1.1",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
2018-12-08 12:06:54 +01: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 23:22:37 +02:00
|
|
|
version = "1.2.0"
|
2018-12-08 12:06:54 +01: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 23:22:37 +02:00
|
|
|
checksum = "ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"
|
2018-12-08 12:06:54 +01:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2018-12-08 12:06:54 +01:00
|
|
|
]
|
2017-09-02 05:46:51 +02:00
|
|
|
|
2020-02-10 20:47:38 +01:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-channel"
|
2020-10-11 16:19:35 +02:00
|
|
|
version = "0.4.4"
|
2020-02-10 20:47:38 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-11 16:19:35 +02:00
|
|
|
checksum = "b153fe7cbef478c567df0f972e02e6d736db11affe43dfc9c56a9374d1adfb87"
|
2020-02-10 20:47:38 +01:00
|
|
|
dependencies = [
|
2020-03-26 14:10:35 +01:00
|
|
|
"crossbeam-utils 0.7.2",
|
2020-10-11 16:19:35 +02:00
|
|
|
"maybe-uninit",
|
2020-02-10 20:47:38 +01:00
|
|
|
]
|
|
|
|
|
2019-09-10 19:13:07 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-deque"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.7.3"
|
2019-09-10 19:13:07 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285"
|
2019-09-10 19:13:07 +02:00
|
|
|
dependencies = [
|
2019-12-10 16:01:01 +01:00
|
|
|
"crossbeam-epoch",
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-utils 0.7.2",
|
|
|
|
"maybe-uninit",
|
2019-09-10 19:13:07 +02:00
|
|
|
]
|
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-epoch"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.8.2"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"autocfg",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-utils 0.7.2",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2020-08-17 17:21:44 +02:00
|
|
|
"maybe-uninit",
|
2019-12-10 16:01:01 +01:00
|
|
|
"memoffset",
|
2019-12-04 18:40:16 +01:00
|
|
|
"scopeguard",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2019-04-07 14:59:33 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-queue"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "7c979cd6cfe72335896575c6b5688da489e420d36a27a0b9eb0c73db574b4a4b"
|
2019-04-07 14:59:33 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02: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 = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-utils 0.7.2",
|
|
|
|
"maybe-uninit",
|
2019-04-07 14:59:33 +02:00
|
|
|
]
|
|
|
|
|
2018-11-16 12:08:23 +01:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-utils"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.6.6"
|
2018-11-16 12:08:23 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6"
|
2018-11-16 12:08:23 +01:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2018-11-16 12:08:23 +01:00
|
|
|
]
|
|
|
|
|
2019-11-12 18:57:41 +01:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-utils"
|
2020-03-26 14:10:35 +01:00
|
|
|
version = "0.7.2"
|
2019-11-12 18:57:41 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-26 14:10:35 +01:00
|
|
|
checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
|
2019-11-12 18:57:41 +01:00
|
|
|
dependencies = [
|
2020-03-16 19:37:15 +01:00
|
|
|
"autocfg",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-11-12 18:57:41 +01:00
|
|
|
]
|
|
|
|
|
2020-10-15 00:16:47 +02:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-utils"
|
|
|
|
version = "0.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ec91540d98355f690a86367e566ecad2e9e579f230230eb7c21398372be73ea5"
|
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"const_fn",
|
|
|
|
"lazy_static",
|
|
|
|
]
|
|
|
|
|
2017-12-06 09:25:29 +01:00
|
|
|
[[package]]
|
|
|
|
name = "crypto-hash"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.3.4"
|
2017-12-06 09:25:29 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "8a77162240fd97248d19a564a565eb563a3f592b386e4136fb300909e67dddca"
|
2017-12-06 09:25:29 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"commoncrypto",
|
2019-09-16 20:45:40 +02:00
|
|
|
"hex 0.3.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"openssl",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2017-12-06 09:25:29 +01:00
|
|
|
]
|
|
|
|
|
2020-03-26 14:10:35 +01:00
|
|
|
[[package]]
|
|
|
|
name = "ctor"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.15"
|
2020-03-26 14:10:35 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "39858aa5bac06462d4dd4b9164848eb81ffc4aa5c479746393598fd193afa227"
|
2020-03-26 14:10:35 +01:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-03-26 14:10:35 +01:00
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "curl"
|
2020-12-23 04:42:03 +01:00
|
|
|
version = "0.4.34"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-23 04:42:03 +01:00
|
|
|
checksum = "e268162af1a5fe89917ae25ba3b0a77c8da752bdc58e7dbb4f15b91fbd33756e"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"curl-sys",
|
|
|
|
"libc",
|
|
|
|
"openssl-probe",
|
|
|
|
"openssl-sys",
|
|
|
|
"schannel",
|
|
|
|
"socket2",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "curl-sys"
|
2020-12-23 04:42:03 +01:00
|
|
|
version = "0.4.39+curl-7.74.0"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-23 04:42:03 +01:00
|
|
|
checksum = "07a8ce861e7b68a0b394e814d7ee9f1b2750ff8bd10372c6ad3bacc10e86f874"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"libnghttp2-sys",
|
|
|
|
"libz-sys",
|
|
|
|
"openssl-sys",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2017-05-09 00:01:13 +02:00
|
|
|
]
|
|
|
|
|
2018-05-29 13:52:51 +02:00
|
|
|
[[package]]
|
|
|
|
name = "datafrog"
|
2019-01-02 20:45:22 +01:00
|
|
|
version = "2.0.1"
|
2018-05-29 13:52:51 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "a0afaad2b26fa326569eb264b1363e8ae3357618c43982b3f285f0774ce76b69"
|
2018-05-29 13:52:51 +02:00
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "derive-new"
|
2020-05-05 13:30:49 +02:00
|
|
|
version = "0.5.8"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-05 13:30:49 +02:00
|
|
|
checksum = "71f31892cd5c62e414316f2963c5689242c43d8e7bbcaaeca97e5e28c95d91d9"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
2018-07-26 23:58:55 +02:00
|
|
|
[[package]]
|
|
|
|
name = "derive_more"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.99.9"
|
2018-07-26 23:58:55 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "298998b1cf6b5b2c8a7b023dfd45821825ce3ba8a8af55c921a0e734e4653f76"
|
2018-07-26 23:58:55 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2018-07-26 23:58:55 +02:00
|
|
|
]
|
|
|
|
|
2017-04-27 21:41:18 +02:00
|
|
|
[[package]]
|
|
|
|
name = "diff"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.12"
|
2017-04-27 21:41:18 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499"
|
2017-04-27 21:41:18 +02: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 15:03:06 +01:00
|
|
|
[[package]]
|
|
|
|
name = "difference"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02: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 15:03:06 +01:00
|
|
|
|
2019-01-19 03:39:37 +01:00
|
|
|
[[package]]
|
|
|
|
name = "digest"
|
2020-03-31 07:17:15 +02:00
|
|
|
version = "0.8.1"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 07:17:15 +02:00
|
|
|
checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5"
|
2019-01-19 03:39:37 +01:00
|
|
|
dependencies = [
|
2020-10-01 17:15:12 +02: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 03:39:37 +01:00
|
|
|
]
|
|
|
|
|
2018-11-28 21:22:45 +01:00
|
|
|
[[package]]
|
|
|
|
name = "directories"
|
2020-09-17 20:04:20 +02:00
|
|
|
version = "3.0.1"
|
2018-11-28 21:22:45 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-17 20:04:20 +02:00
|
|
|
checksum = "f8fed639d60b58d0f53498ab13d26f621fd77569cc6edb031f4cc36a2ad9da0f"
|
2018-11-28 21:22:45 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"dirs-sys",
|
2018-11-28 21:22:45 +01:00
|
|
|
]
|
|
|
|
|
2019-02-18 10:32:58 +01:00
|
|
|
[[package]]
|
|
|
|
name = "dirs"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "2.0.2"
|
2019-02-18 10:32:58 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "13aea89a5c93364a98e9b37b2fa237effbb694d5cfe01c5b70941f7eb087d5e3"
|
2019-02-18 10:32:58 +01:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"dirs-sys",
|
2019-02-18 10:32:58 +01:00
|
|
|
]
|
|
|
|
|
2019-06-13 09:58:32 +02:00
|
|
|
[[package]]
|
|
|
|
name = "dirs-sys"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.3.5"
|
2019-06-13 09:58:32 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "8e93d7f5705de3e49895a2b5e0b8855a1c27f080192ae9c32a6432d50741a57a"
|
2019-06-13 09:58:32 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
|
|
|
"redox_users",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-06-13 09:58:32 +02:00
|
|
|
]
|
|
|
|
|
2017-12-06 09:25:29 +01:00
|
|
|
[[package]]
|
|
|
|
name = "dlmalloc"
|
2020-11-09 18:20:49 +01:00
|
|
|
version = "0.2.1"
|
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 06:52:50 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-11-09 18:20:49 +01:00
|
|
|
checksum = "332570860c2edf2d57914987bf9e24835425f75825086b6ba7d1e6a3e4f1f254"
|
2017-12-06 09:25:29 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"compiler_builtins",
|
|
|
|
"libc",
|
|
|
|
"rustc-std-workspace-core",
|
2017-12-06 09:25:29 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "either"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.6.0"
|
2017-12-06 09:25:29 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "cd56b59865bce947ac5958779cfa508f6c3b9497cc762b7e24a12d11ccde2c4f"
|
2017-12-06 09:25:29 +01:00
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "elasticlunr-rs"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "2.3.9"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "35622eb004c8f0c5e7e2032815f3314a93df0db30a1ce5c94e62c1ecc81e22b9"
|
2018-04-03 16:32:04 +02:00
|
|
|
dependencies = [
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"regex",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
|
|
|
"strum",
|
|
|
|
"strum_macros",
|
2018-04-03 16:32:04 +02:00
|
|
|
]
|
|
|
|
|
2020-02-25 09:47:07 +01:00
|
|
|
[[package]]
|
|
|
|
name = "ena"
|
|
|
|
version = "0.14.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d7402b94a93c24e742487327a7cd839dc9d36fec9de9fb25b09f2dae459f36c3"
|
2019-03-19 22:30:07 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
2019-03-19 22:30:07 +01:00
|
|
|
]
|
|
|
|
|
2018-01-25 05:01:42 +01:00
|
|
|
[[package]]
|
|
|
|
name = "env_logger"
|
2019-08-29 13:22:21 +02:00
|
|
|
version = "0.6.2"
|
2018-11-16 12:08:23 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-29 13:22:21 +02:00
|
|
|
checksum = "aafcde04e90a5226a6443b7aabdb016ba2f8307c847d524724bd9b346dd1a2d3"
|
2018-11-16 12:08:23 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"atty",
|
2020-01-21 18:55:43 +01:00
|
|
|
"humantime 1.3.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"regex",
|
|
|
|
"termcolor",
|
2018-11-16 12:08:23 +01:00
|
|
|
]
|
|
|
|
|
2019-09-24 20:06:56 +02:00
|
|
|
[[package]]
|
|
|
|
name = "env_logger"
|
2019-10-30 21:03:19 +01:00
|
|
|
version = "0.7.1"
|
2019-09-24 20:06:56 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-10-30 21:03:19 +01:00
|
|
|
checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
|
2019-09-24 20:06:56 +02:00
|
|
|
dependencies = [
|
|
|
|
"atty",
|
2020-01-21 18:55:43 +01:00
|
|
|
"humantime 1.3.0",
|
2019-09-24 20:06:56 +02:00
|
|
|
"log",
|
|
|
|
"regex",
|
2020-10-21 01:36:46 +02:00
|
|
|
"termcolor",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "env_logger"
|
|
|
|
version = "0.8.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "54532e3223c5af90a6a757c90b5c5521564b07e5e7a958681bcd2afad421cdcd"
|
|
|
|
dependencies = [
|
|
|
|
"atty",
|
|
|
|
"humantime 2.0.1",
|
|
|
|
"log",
|
|
|
|
"regex",
|
2019-09-24 20:06:56 +02:00
|
|
|
"termcolor",
|
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "error_index_generator"
|
|
|
|
version = "0.0.0"
|
2017-07-23 04:01:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustdoc",
|
2019-08-20 00:04:25 +02:00
|
|
|
"walkdir",
|
2017-07-23 04:01:58 +02:00
|
|
|
]
|
2016-09-02 10:55:29 +02:00
|
|
|
|
2019-11-26 12:06:30 +01:00
|
|
|
[[package]]
|
|
|
|
name = "expand-yaml-anchors"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"yaml-merge-keys",
|
2020-08-17 17:21:44 +02:00
|
|
|
"yaml-rust 0.4.4",
|
2019-11-26 12:06:30 +01: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 14:03:50 +02:00
|
|
|
[[package]]
|
|
|
|
name = "expect-test"
|
2020-08-31 21:04:09 +02: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 14:03:50 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-31 21:04:09 +02: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 14:03:50 +02:00
|
|
|
dependencies = [
|
|
|
|
"difference",
|
|
|
|
"once_cell",
|
|
|
|
]
|
|
|
|
|
2017-12-10 18:42:49 +01:00
|
|
|
[[package]]
|
|
|
|
name = "failure"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.8"
|
2017-12-10 18:42:49 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86"
|
2017-12-10 18:42:49 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"backtrace",
|
|
|
|
"failure_derive",
|
2017-12-10 18:42:49 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "failure_derive"
|
2020-05-05 13:26:16 +02:00
|
|
|
version = "0.1.8"
|
2017-12-10 18:42:49 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-05 13:26:16 +02:00
|
|
|
checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4"
|
2017-12-10 18:42:49 +01:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-05-05 13:26:16 +02:00
|
|
|
"synstructure",
|
2017-12-10 18:42:49 +01:00
|
|
|
]
|
|
|
|
|
2019-01-19 03:39:37 +01:00
|
|
|
[[package]]
|
|
|
|
name = "fake-simd"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed"
|
2019-01-19 03:39:37 +01:00
|
|
|
|
2018-04-18 17:43:59 +02:00
|
|
|
[[package]]
|
|
|
|
name = "filetime"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.2.12"
|
2018-04-18 17:43:59 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "3ed85775dcc68644b5c950ac06a2b23768d3bc9390464151aaf27136998dcf9e"
|
2018-04-18 17:43:59 +02:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-04-18 17:43:59 +02:00
|
|
|
]
|
|
|
|
|
2020-03-03 17:25:03 +01:00
|
|
|
[[package]]
|
|
|
|
name = "fixedbitset"
|
2020-05-27 02:19:19 +02:00
|
|
|
version = "0.2.0"
|
2020-03-03 17:25:03 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-27 02:19:19 +02:00
|
|
|
checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d"
|
2020-03-03 17:25:03 +01:00
|
|
|
|
2017-12-31 15:34:29 +01: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 23:22:37 +02:00
|
|
|
version = "1.0.16"
|
2017-12-31 15:34:29 +01: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 23:22:37 +02:00
|
|
|
checksum = "68c90b0fc46cf89d227cc78b40e494ff81287a92dd07631e5af0d06fe3cf885e"
|
2017-12-31 15:34:29 +01:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"crc32fast",
|
|
|
|
"libc",
|
|
|
|
"libz-sys",
|
2019-11-12 19:14:48 +01:00
|
|
|
"miniz_oxide",
|
2017-12-31 15:34:29 +01:00
|
|
|
]
|
|
|
|
|
2017-07-18 23:26:55 +02:00
|
|
|
[[package]]
|
|
|
|
name = "fnv"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.7"
|
2017-07-18 23:26:55 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
2017-07-18 23:26:55 +02:00
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "foreign-types"
|
2017-12-06 09:25:29 +01:00
|
|
|
version = "0.3.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
|
2017-12-06 09:25:29 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"foreign-types-shared",
|
2017-12-06 09:25:29 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "foreign-types-shared"
|
|
|
|
version = "0.1.1"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2018-08-28 06:33:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "fortanix-sgx-abi"
|
2020-08-17 17:21:44 +02: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 06:52:50 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "c56c422ef86062869b2d57ae87270608dc5929969dd130a6e248979cf4fb6ca6"
|
2018-08-28 06:33:26 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-core",
|
2018-08-28 06:33:26 +02:00
|
|
|
]
|
|
|
|
|
2018-10-21 04:15:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "fs_extra"
|
|
|
|
version = "1.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "5f2a4a2034423744d2cc7ca2068453168dcdb82c438419e639a26bd87839c674"
|
2018-10-21 04:15:06 +02:00
|
|
|
|
2018-07-06 02:34:00 +02:00
|
|
|
[[package]]
|
|
|
|
name = "fst"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.3.5"
|
2018-07-06 02:34:00 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "927fb434ff9f0115b215dc0efd2e4fbdd7448522a92a1aa37c77d6a2f8f1ebd6"
|
2018-07-06 02:34:00 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"byteorder",
|
2018-07-06 02:34:00 +02:00
|
|
|
]
|
|
|
|
|
2017-12-06 09:25:29 +01:00
|
|
|
[[package]]
|
|
|
|
name = "fuchsia-zircon"
|
2018-01-08 22:56:22 +01:00
|
|
|
version = "0.3.3"
|
2017-12-06 09:25:29 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
|
2017-12-06 09:25:29 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
|
|
|
"fuchsia-zircon-sys",
|
2017-12-06 09:25:29 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "fuchsia-zircon-sys"
|
2018-01-08 22:56:22 +01:00
|
|
|
version = "0.3.3"
|
2017-12-06 09:25:29 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
|
2017-12-06 09:25:29 +01:00
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "futf"
|
2018-07-02 18:33:16 +02:00
|
|
|
version = "0.1.4"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "7c9c1ce3fa9336301af935ab852c437817d14cd33690446569392e65170aac3b"
|
2018-04-03 16:32:04 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"mac",
|
|
|
|
"new_debug_unreachable",
|
2018-04-03 16:32:04 +02:00
|
|
|
]
|
|
|
|
|
2017-07-19 03:32:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "futures"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.29"
|
2016-09-02 10:55:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "1b980f2816d6ee8673b6517b52cb0e808a180efc92e5c19d02cdda79066703ef"
|
2016-09-02 10:55:29 +02:00
|
|
|
|
2018-08-14 23:27:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "fwdansi"
|
2020-07-29 20:02:05 +02:00
|
|
|
version = "1.1.0"
|
2018-08-14 23:27:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-07-29 20:02:05 +02:00
|
|
|
checksum = "08c1f5787fe85505d1f7777268db5103d80a7a374d2316a7ce262e57baf8f208"
|
2018-08-14 23:27:26 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"memchr",
|
|
|
|
"termcolor",
|
2018-08-14 23:27:26 +02:00
|
|
|
]
|
|
|
|
|
2019-01-19 03:39:37 +01:00
|
|
|
[[package]]
|
|
|
|
name = "generic-array"
|
2020-03-31 07:17:15 +02:00
|
|
|
version = "0.12.3"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 07:17:15 +02:00
|
|
|
checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec"
|
2019-01-19 03:39:37 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"typenum",
|
2019-01-19 03:39:37 +01:00
|
|
|
]
|
|
|
|
|
2020-10-01 17:15:12 +02: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 10:55:29 +02: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 17:29:08 +02:00
|
|
|
version = "0.2.21"
|
2016-09-02 10:55:29 +02: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 17:29:08 +02:00
|
|
|
checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5"
|
2019-04-30 21:37:36 +02: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 17:29:08 +02:00
|
|
|
"rustc-std-workspace-core",
|
|
|
|
"rustc-std-workspace-std",
|
2019-08-15 02:45:09 +02:00
|
|
|
"unicode-width",
|
2019-04-30 21:37:36 +02:00
|
|
|
]
|
2016-09-02 10:55:29 +02:00
|
|
|
|
2019-08-01 17:02:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "getrandom"
|
2020-01-08 16:33:57 +01:00
|
|
|
version = "0.1.14"
|
2019-08-01 17:02:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-08 16:33:57 +01:00
|
|
|
checksum = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb"
|
2019-08-01 17:02:26 +02:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2020-01-08 16:33:57 +01:00
|
|
|
"wasi",
|
2019-08-01 17:02:26 +02:00
|
|
|
]
|
|
|
|
|
2020-09-17 20:04:20 +02:00
|
|
|
[[package]]
|
|
|
|
name = "getrandom"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ee8025cf36f917e6a52cce185b7c7177689b838b7ec138364e50cc2277a56cf4"
|
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-09-17 20:04:20 +02:00
|
|
|
"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 23:22:37 +02:00
|
|
|
[[package]]
|
|
|
|
name = "gimli"
|
2020-11-20 18:12:14 +01:00
|
|
|
version = "0.23.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 23:22:37 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-11-20 18:12:14 +01:00
|
|
|
checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce"
|
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 23:22:37 +02:00
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "git2"
|
2020-12-23 04:42:03 +01:00
|
|
|
version = "0.13.14"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-23 04:42:03 +01:00
|
|
|
checksum = "186dd99cc77576e58344ad614fa9bb27bad9d048f85de3ca850c1f4e8b048260"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
|
|
|
"libc",
|
|
|
|
"libgit2-sys",
|
|
|
|
"log",
|
|
|
|
"openssl-probe",
|
|
|
|
"openssl-sys",
|
2020-08-17 17:21:44 +02:00
|
|
|
"url 2.1.1",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "git2-curl"
|
2020-12-23 04:42:03 +01:00
|
|
|
version = "0.14.1"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-23 04:42:03 +01:00
|
|
|
checksum = "883539cb0ea94bab3f8371a98cd8e937bbe9ee7c044499184aa4c17deb643a50"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"curl",
|
|
|
|
"git2",
|
|
|
|
"log",
|
2020-08-17 17:21:44 +02:00
|
|
|
"url 2.1.1",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "glob"
|
2019-03-12 21:34:47 +01:00
|
|
|
version = "0.3.0"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2017-07-18 23:26:55 +02:00
|
|
|
[[package]]
|
|
|
|
name = "globset"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.5"
|
2017-07-18 23:26:55 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "7ad1da430bd7281dde2576f44c84cc3f0f7b475e7202cd503042dff01a8c8120"
|
2017-07-18 23:26:55 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"aho-corasick",
|
|
|
|
"bstr",
|
|
|
|
"fnv",
|
|
|
|
"log",
|
|
|
|
"regex",
|
2017-07-18 23:26:55 +02:00
|
|
|
]
|
|
|
|
|
2020-10-26 14:34:29 +01:00
|
|
|
[[package]]
|
|
|
|
name = "gsgdt"
|
2020-10-27 15:44:38 +01:00
|
|
|
version = "0.1.2"
|
2020-10-26 14:34:29 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-27 15:44:38 +01:00
|
|
|
checksum = "a0d876ce7262df96262a2a19531da6ff9a86048224d49580a585fc5c04617825"
|
2020-10-26 14:34:29 +01:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2017-02-08 00:13:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "handlebars"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "3.4.0"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "5deefd4816fb852b1ff3cb48f6c41da67be2d0e1d20b26a7a3b076da11f064b1"
|
2019-01-19 03:39:37 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"pest",
|
|
|
|
"pest_derive",
|
2020-08-17 17:21:44 +02:00
|
|
|
"quick-error 2.0.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2019-01-19 03:39:37 +01:00
|
|
|
]
|
|
|
|
|
2019-09-21 12:56:05 +02:00
|
|
|
[[package]]
|
|
|
|
name = "hashbrown"
|
2020-09-03 22:32:53 +02:00
|
|
|
version = "0.9.0"
|
2019-09-21 12:56:05 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-03 22:32:53 +02:00
|
|
|
checksum = "00d63df3d41950fb462ed38308eea019113ad1508da725bbedcd0fa5a85ef5f7"
|
2019-09-21 12:56:05 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
2019-07-08 23:52:07 +02:00
|
|
|
]
|
|
|
|
|
2018-12-08 15:11:47 +01:00
|
|
|
[[package]]
|
|
|
|
name = "heck"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.3.1"
|
2018-12-08 15:11:47 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205"
|
2018-12-08 15:11:47 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"unicode-segmentation",
|
2018-12-08 15:11:47 +01:00
|
|
|
]
|
|
|
|
|
2019-10-20 09:55:10 +02:00
|
|
|
[[package]]
|
|
|
|
name = "hermit-abi"
|
2020-10-06 11:42:57 +02:00
|
|
|
version = "0.1.17"
|
2019-10-20 09:55:10 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-06 11:42:57 +02:00
|
|
|
checksum = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8"
|
2019-10-20 09:55:10 +02:00
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"libc",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
]
|
|
|
|
|
2018-01-08 22:56:22 +01:00
|
|
|
[[package]]
|
|
|
|
name = "hex"
|
2018-07-02 18:33:16 +02:00
|
|
|
version = "0.3.2"
|
2018-01-08 22:56:22 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "805026a5d0141ffc30abb3be3173848ad46a1b1664fe632428479619a3644d77"
|
2018-01-08 22:56:22 +01:00
|
|
|
|
2019-09-16 20:45:40 +02:00
|
|
|
[[package]]
|
|
|
|
name = "hex"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.2"
|
2019-09-16 20:45:40 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35"
|
2019-09-16 20:45:40 +02:00
|
|
|
|
2019-08-20 09:32:53 +02:00
|
|
|
[[package]]
|
|
|
|
name = "home"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.5.3"
|
2019-08-20 09:32:53 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "2456aef2e6b6a9784192ae780c0f15bc57df0e918585282325e8c8ac27737654"
|
2019-08-20 09:32:53 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-08-20 09:32:53 +02:00
|
|
|
]
|
|
|
|
|
2019-06-19 05:36:47 +02:00
|
|
|
[[package]]
|
|
|
|
name = "html5ever"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.25.1"
|
2019-06-19 05:36:47 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "aafcf38a1a36118242d29b92e1b08ef84e67e4a5ed06e0a80be20e6a32bfed6b"
|
2019-06-19 05:36:47 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"mac",
|
|
|
|
"markup5ever",
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-06-19 05:36:47 +02:00
|
|
|
]
|
|
|
|
|
2018-03-01 20:08:48 +01:00
|
|
|
[[package]]
|
|
|
|
name = "humantime"
|
2019-09-24 20:06:56 +02:00
|
|
|
version = "1.3.0"
|
2018-03-01 20:08:48 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-24 20:06:56 +02:00
|
|
|
checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f"
|
2018-03-01 20:08:48 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"quick-error 1.2.3",
|
2018-03-01 20:08:48 +01:00
|
|
|
]
|
|
|
|
|
2020-01-21 18:55:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "humantime"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "2.0.1"
|
2020-01-21 18:55:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a"
|
2020-01-21 18:55:43 +01:00
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "idna"
|
2018-07-17 18:04:22 +02:00
|
|
|
version = "0.1.5"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"matches",
|
|
|
|
"unicode-bidi",
|
|
|
|
"unicode-normalization",
|
2017-02-15 23:55:26 +01:00
|
|
|
]
|
|
|
|
|
2019-08-01 02:44:39 +02:00
|
|
|
[[package]]
|
|
|
|
name = "idna"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9"
|
2019-08-01 02:44:39 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"matches",
|
|
|
|
"unicode-bidi",
|
|
|
|
"unicode-normalization",
|
2019-08-01 02:44:39 +02:00
|
|
|
]
|
|
|
|
|
2017-12-06 09:25:29 +01:00
|
|
|
[[package]]
|
|
|
|
name = "if_chain"
|
2019-05-26 19:21:54 +02:00
|
|
|
version = "1.0.0"
|
2017-12-06 09:25:29 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "c3360c7b59e5ffa2653671fb74b4741a5d343c03f331c0a4aeda42b5c2b0ec7d"
|
2017-12-06 09:25:29 +01:00
|
|
|
|
2017-07-18 23:26:55 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ignore"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.16"
|
2017-07-18 23:26:55 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "22dcbf2a4a289528dbef21686354904e1c694ac642610a9bff9e7df730d9ec72"
|
2017-07-18 23:26:55 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"globset",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"memchr",
|
|
|
|
"regex",
|
|
|
|
"same-file",
|
2020-05-26 06:04:59 +02:00
|
|
|
"thread_local",
|
2019-08-15 02:45:09 +02:00
|
|
|
"walkdir",
|
|
|
|
"winapi-util",
|
2017-07-18 23:26:55 +02:00
|
|
|
]
|
|
|
|
|
2018-12-03 02:33:20 +01:00
|
|
|
[[package]]
|
|
|
|
name = "im-rc"
|
2020-05-19 00:41:57 +02:00
|
|
|
version = "15.0.0"
|
2018-12-03 02:33:20 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-19 00:41:57 +02:00
|
|
|
checksum = "3ca8957e71f04a205cb162508f9326aea04676c8dfd0711220190d6b83664f3f"
|
2018-12-03 02:33:20 +01:00
|
|
|
dependencies = [
|
2019-11-25 17:14:07 +01:00
|
|
|
"bitmaps",
|
2020-08-17 17:21:44 +02:00
|
|
|
"rand_core",
|
2019-11-25 17:14:07 +01:00
|
|
|
"rand_xoshiro",
|
2019-08-15 02:45:09 +02:00
|
|
|
"sized-chunks",
|
|
|
|
"typenum",
|
2020-02-13 18:39:40 +01:00
|
|
|
"version_check",
|
2018-12-03 02:33:20 +01:00
|
|
|
]
|
|
|
|
|
2019-05-14 18:42:57 +02:00
|
|
|
[[package]]
|
|
|
|
name = "indexmap"
|
2020-09-03 22:32:53 +02:00
|
|
|
version = "1.6.0"
|
2019-05-14 18:42:57 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-03 22:32:53 +02:00
|
|
|
checksum = "55e2e4c765aa53a0424761bf9f41aa7a6ac1efa87238f59560640e27fca028f2"
|
2020-08-08 02:03:47 +02:00
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
"hashbrown",
|
|
|
|
]
|
2019-05-14 18:42:57 +02:00
|
|
|
|
2017-05-09 00:01:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "installer"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-05-25 02:08:45 +02:00
|
|
|
"anyhow",
|
2019-08-15 02:45:09 +02:00
|
|
|
"clap",
|
|
|
|
"flate2",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"num_cpus",
|
|
|
|
"rayon",
|
|
|
|
"remove_dir_all",
|
|
|
|
"tar",
|
|
|
|
"walkdir",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-08-15 02:45:09 +02:00
|
|
|
"xz2",
|
2017-05-09 00:01:13 +02:00
|
|
|
]
|
|
|
|
|
2020-08-17 17:21:44 +02:00
|
|
|
[[package]]
|
|
|
|
name = "instant"
|
|
|
|
version = "0.1.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5b141fdc7836c525d4d594027d318c84161ca17aaf8113ab1f81ab93ae897485"
|
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "iovec"
|
2020-01-14 20:52:46 +01:00
|
|
|
version = "0.1.4"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-14 20:52:46 +01:00
|
|
|
checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "itertools"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.8.2"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "f56a2d0bc861f9165be4eb3442afd3c236d8a98afd426f65d92324ae1091a484"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"either",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2020-03-12 21:47:47 +01:00
|
|
|
[[package]]
|
|
|
|
name = "itertools"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b"
|
|
|
|
dependencies = [
|
|
|
|
"either",
|
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
2017-06-05 18:36:48 +02:00
|
|
|
name = "itoa"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.6"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6"
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2018-10-21 04:15:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "jemalloc-sys"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.3.2"
|
2018-10-21 04:15:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "0d3b9f3f5c9b31aa0f5ed3260385ac205db665baa41d49bb8338008ae94ede45"
|
2018-10-21 04:15:06 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
|
|
|
"fs_extra",
|
|
|
|
"libc",
|
2018-10-21 04:15:06 +02:00
|
|
|
]
|
|
|
|
|
2017-02-20 01:20:57 +01:00
|
|
|
[[package]]
|
2017-06-05 18:36:48 +02:00
|
|
|
name = "jobserver"
|
2020-01-30 08:47:01 +01:00
|
|
|
version = "0.1.21"
|
2017-02-20 01:20:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-30 08:47:01 +01:00
|
|
|
checksum = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2"
|
2017-06-05 18:36:48 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2017-06-05 18:36:48 +02:00
|
|
|
]
|
2017-02-20 01:20:57 +01:00
|
|
|
|
2018-08-25 18:17:55 +02:00
|
|
|
[[package]]
|
|
|
|
name = "json"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.11.15"
|
2018-08-25 18:17:55 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "92c245af8786f6ac35f95ca14feca9119e71339aaab41e878e7cdd655c97e9e5"
|
2018-08-25 18:17:55 +02:00
|
|
|
|
2019-09-08 10:28:11 +02:00
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-client-transports"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "14.2.1"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "2773fa94a2a1fd51efb89a8f45b8861023dbb415d18d3c9235ae9388d780f9ec"
|
2019-09-08 10:28:11 +02: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 03:32:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-core"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "14.2.0"
|
2017-07-19 03:32:12 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "a0747307121ffb9703afd93afbd0fb4f854c38fb873f2c8b90e0e902f27c7b62"
|
2017-07-19 03:32:12 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"futures",
|
|
|
|
"log",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
2017-07-19 03:32:12 +02:00
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02:00
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-core-client"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "14.2.0"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "34221123bc79b66279a3fde2d3363553835b43092d629b34f2e760c44dc94713"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
|
|
|
"jsonrpc-client-transports",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-derive"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "14.2.1"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "0fadf6945e227246825a583514534d864554e9f23d80b3c77d034b10983db5ef"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
|
|
|
"proc-macro-crate",
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-09-08 10:28:11 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-ipc-server"
|
2020-02-12 15:47:31 +01:00
|
|
|
version = "14.0.3"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-02-12 15:47:31 +01:00
|
|
|
checksum = "b579cd0840d7db3ebaadf52f6f31ec601a260e78d610e44f68634f919e34497a"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
|
|
|
"jsonrpc-core",
|
|
|
|
"jsonrpc-server-utils",
|
|
|
|
"log",
|
|
|
|
"parity-tokio-ipc",
|
2020-02-12 15:47:31 +01:00
|
|
|
"parking_lot 0.9.0",
|
2019-09-08 10:28:11 +02:00
|
|
|
"tokio-service",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-pubsub"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "14.2.0"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "2d44f5602a11d657946aac09357956d2841299ed422035edf140c552cb057986"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
|
|
|
"jsonrpc-core",
|
|
|
|
"log",
|
2020-04-10 18:31:31 +02:00
|
|
|
"parking_lot 0.10.2",
|
2020-08-17 17:21:44 +02:00
|
|
|
"rand",
|
2019-09-08 10:28:11 +02:00
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc-server-utils"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "14.2.0"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "56cbfb462e7f902e21121d9f0d1c2b77b2c5b642e1a4e8f4ebfa2e15b94402bb"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
|
|
|
"bytes",
|
|
|
|
"globset",
|
|
|
|
"jsonrpc-core",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-09-08 10:28:11 +02:00
|
|
|
"log",
|
|
|
|
"tokio",
|
|
|
|
"tokio-codec",
|
2019-11-12 19:14:48 +01:00
|
|
|
"unicase",
|
2019-09-08 10:28:11 +02:00
|
|
|
]
|
|
|
|
|
2017-02-08 00:13:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "kernel32-sys"
|
|
|
|
version = "0.2.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
|
2017-02-08 00:13:57 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"winapi 0.2.8",
|
|
|
|
"winapi-build",
|
2017-02-08 00:13:57 +01:00
|
|
|
]
|
|
|
|
|
2017-12-10 18:42:49 +01:00
|
|
|
[[package]]
|
|
|
|
name = "lazy_static"
|
2020-01-08 16:33:57 +01:00
|
|
|
version = "1.4.0"
|
2017-12-10 18:42:49 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-08 16:33:57 +01:00
|
|
|
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
2017-12-10 18:42:49 +01:00
|
|
|
|
2018-02-26 18:07:16 +01:00
|
|
|
[[package]]
|
|
|
|
name = "lazycell"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.3.0"
|
2018-02-26 18:07:16 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
2018-02-26 18:07:16 +01:00
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "libc"
|
2020-10-01 06:30:07 +02:00
|
|
|
version = "0.2.79"
|
2016-09-02 10:55:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-01 06:30:07 +02:00
|
|
|
checksum = "2448f6066e80e3bfc792e9c98bf705b4b0fc6e8ef5b43e5889aff0eaa9c58743"
|
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 06:52:50 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02: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 06:52:50 +01:00
|
|
|
]
|
2016-09-02 10:55:29 +02:00
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "libgit2-sys"
|
2020-12-23 04:42:03 +01:00
|
|
|
version = "0.12.16+1.1.0"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-23 04:42:03 +01:00
|
|
|
checksum = "9f91b2f931ee975a98155195be8cd82d02e8e029d7d793d2bac1b8181ac97020"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"libssh2-sys",
|
|
|
|
"libz-sys",
|
|
|
|
"openssl-sys",
|
|
|
|
"pkg-config",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
2018-09-20 23:37:53 +02:00
|
|
|
[[package]]
|
|
|
|
name = "libnghttp2-sys"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.4+1.41.0"
|
2018-09-20 23:37:53 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "03624ec6df166e79e139a2310ca213283d6b3c30810c54844f307086d4488df1"
|
2018-09-20 23:37:53 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
|
|
|
"libc",
|
2018-09-20 23:37:53 +02:00
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "libssh2-sys"
|
2020-10-15 00:16:47 +02:00
|
|
|
version = "0.2.19"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-15 00:16:47 +02:00
|
|
|
checksum = "ca46220853ba1c512fc82826d0834d87b06bcd3c2a42241b7de72f3d2fe17056"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"libz-sys",
|
|
|
|
"openssl-sys",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "libz-sys"
|
2020-09-18 02:14:09 +02:00
|
|
|
version = "1.1.2"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-18 02:14:09 +02:00
|
|
|
checksum = "602113192b08db8f38796c4e85c39e960c145965140e918018bcde1952429655"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "linkchecker"
|
|
|
|
version = "0.1.0"
|
2020-10-15 15:25:30 +02:00
|
|
|
dependencies = [
|
|
|
|
"once_cell",
|
|
|
|
"regex",
|
|
|
|
]
|
2016-09-02 10:55:29 +02:00
|
|
|
|
2019-11-26 12:06:30 +01:00
|
|
|
[[package]]
|
|
|
|
name = "linked-hash-map"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.5.3"
|
2019-11-26 12:06:30 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "8dd5a6d5999d9907cda8ed67bbd137d3af8085216c2ac62de5be860bd41f304a"
|
2019-11-26 12:06:30 +01:00
|
|
|
|
2020-09-09 00:09:57 +02:00
|
|
|
[[package]]
|
|
|
|
name = "lint-docs"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"serde_json",
|
|
|
|
"tempfile",
|
|
|
|
"walkdir",
|
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02:00
|
|
|
[[package]]
|
|
|
|
name = "lock_api"
|
2020-04-10 18:31:31 +02:00
|
|
|
version = "0.3.4"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-04-10 18:31:31 +02:00
|
|
|
checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
2019-12-04 18:40:16 +01:00
|
|
|
"scopeguard",
|
2019-09-08 10:28:11 +02:00
|
|
|
]
|
|
|
|
|
2020-08-17 17:21:44 +02: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 11:24:38 +01:00
|
|
|
[[package]]
|
|
|
|
name = "log"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.11"
|
2016-09-02 10:55:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b"
|
2017-12-29 11:24:38 +01:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2017-12-29 11:24:38 +01:00
|
|
|
]
|
2016-09-02 10:55:29 +02:00
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "lsp-codec"
|
2019-03-04 22:18:44 +01:00
|
|
|
version = "0.1.2"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "169d737ad89cf8ddd82d1804d9122f54568c49377665157277cc90d747b1d31a"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bytes",
|
|
|
|
"serde_json",
|
|
|
|
"tokio-codec",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "lsp-types"
|
2019-09-08 10:28:11 +02:00
|
|
|
version = "0.60.0"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-08 10:28:11 +02:00
|
|
|
checksum = "fe3edefcd66dde1f7f1df706f46520a3c93adc5ca4bc5747da6621195e894efd"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2019-09-08 10:28:11 +02:00
|
|
|
"serde_repr",
|
2020-08-17 17:21:44 +02:00
|
|
|
"url 2.1.1",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2017-05-09 00:01:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "lzma-sys"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.16"
|
2017-05-09 00:01:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "f24f76ec44a8ac23a31915d6e326bca17ce88da03096f1ff194925dc714dac99"
|
2017-05-09 00:01:13 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"pkg-config",
|
2017-05-09 00:01:13 +02:00
|
|
|
]
|
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "mac"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
2018-04-03 16:32:04 +02:00
|
|
|
|
2018-08-15 15:07:07 +02:00
|
|
|
[[package]]
|
|
|
|
name = "macro-utils"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.3"
|
2018-08-15 15:07:07 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "0e72f7deb758fea9ea7d290aebfa788763d0bffae12caa6406a25baaf8fa68a8"
|
2018-08-15 15:07:07 +02:00
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "maplit"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.2"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
|
2018-04-03 16:32:04 +02:00
|
|
|
|
2019-06-19 05:36:47 +02:00
|
|
|
[[package]]
|
|
|
|
name = "markup5ever"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.10.0"
|
2019-06-19 05:36:47 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "aae38d669396ca9b707bfc3db254bc382ddb94f57cc5c235f34623a669a01dab"
|
2019-06-19 05:36:47 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"phf",
|
|
|
|
"phf_codegen",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
|
|
|
"string_cache",
|
|
|
|
"string_cache_codegen",
|
|
|
|
"tendril",
|
2019-06-19 05:36:47 +02:00
|
|
|
]
|
|
|
|
|
2020-08-01 16:11:15 +02: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 20:42:00 +02: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-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "matches"
|
2018-08-21 19:23:47 +02:00
|
|
|
version = "0.1.8"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2020-08-17 17:21:44 +02:00
|
|
|
[[package]]
|
|
|
|
name = "maybe-uninit"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
|
|
|
|
|
2020-10-13 17:41:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "md-5"
|
|
|
|
version = "0.9.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7b5a279bb9607f9f53c22d496eade00d138d1bdcccd07d74650387cf94942a15"
|
|
|
|
dependencies = [
|
|
|
|
"block-buffer 0.9.0",
|
|
|
|
"digest 0.9.0",
|
|
|
|
"opaque-debug 0.3.0",
|
|
|
|
]
|
|
|
|
|
2017-02-08 00:13:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "mdbook"
|
2021-01-04 16:18:37 +01:00
|
|
|
version = "0.4.5"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-04 16:18:37 +01:00
|
|
|
checksum = "21251d3eb9ca5e8ac5b73384ddaa483a9bbc7d7dcd656b1fa8f266634810334a"
|
2019-08-15 02:45:09 +02:00
|
|
|
dependencies = [
|
|
|
|
"ammonia",
|
2020-06-24 00:23:46 +02:00
|
|
|
"anyhow",
|
2019-08-15 02:45:09 +02:00
|
|
|
"chrono",
|
|
|
|
"clap",
|
|
|
|
"elasticlunr-rs",
|
2020-06-24 00:23:46 +02:00
|
|
|
"env_logger 0.7.1",
|
2019-08-15 02:45:09 +02:00
|
|
|
"handlebars",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"memchr",
|
|
|
|
"open",
|
2020-09-14 02:15:01 +02:00
|
|
|
"pulldown-cmark 0.7.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"regex",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
"serde_json",
|
|
|
|
"shlex",
|
|
|
|
"tempfile",
|
2019-08-20 19:46:35 +02:00
|
|
|
"toml",
|
2019-01-19 03:39:37 +01:00
|
|
|
]
|
|
|
|
|
2020-10-01 14:34:48 +02:00
|
|
|
[[package]]
|
|
|
|
name = "measureme"
|
|
|
|
version = "9.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "22bf8d885d073610aee20e7fa205c4341ed32a761dbde96da5fd96301a8d3e82"
|
|
|
|
dependencies = [
|
|
|
|
"parking_lot 0.11.0",
|
|
|
|
"rustc-hash",
|
|
|
|
"smallvec 1.4.2",
|
|
|
|
]
|
|
|
|
|
2017-12-06 09:25:29 +01:00
|
|
|
[[package]]
|
|
|
|
name = "memchr"
|
2020-05-26 06:04:59 +02:00
|
|
|
version = "2.3.3"
|
2017-12-06 09:25:29 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 06:04:59 +02:00
|
|
|
checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
|
2017-02-08 00:13:57 +01:00
|
|
|
|
2018-08-31 15:18:08 +02:00
|
|
|
[[package]]
|
|
|
|
name = "memmap"
|
2019-12-03 10:33:24 +01:00
|
|
|
version = "0.7.0"
|
2018-08-31 15:18:08 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-12-03 10:33:24 +01:00
|
|
|
checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b"
|
2018-08-31 15:18:08 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-08-31 15:18:08 +02:00
|
|
|
]
|
|
|
|
|
2019-07-25 15:57:25 +02:00
|
|
|
[[package]]
|
|
|
|
name = "memoffset"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.5.5"
|
2019-07-25 15:57:25 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "c198b026e1bbf08a937e94c6c60f9ec4a2267f5b0d2eec9c1b21b061ce2be55f"
|
2019-07-25 15:57:25 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"autocfg",
|
2019-07-25 15:57:25 +02:00
|
|
|
]
|
|
|
|
|
2020-09-12 06:42:52 +02: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-11 00:02:05 +02:00
|
|
|
[[package]]
|
|
|
|
name = "minifier"
|
2019-07-28 20:24:52 +02:00
|
|
|
version = "0.0.33"
|
2018-05-11 00:02:05 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "70bf0db2475f5e627787da77ca52fe33c294063f49f4134b8bc662eedb5e7332"
|
2018-05-11 00:02:05 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"macro-utils",
|
2018-05-11 00:02:05 +02:00
|
|
|
]
|
|
|
|
|
2018-12-08 12:06:54 +01: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 23:22:37 +02:00
|
|
|
version = "0.4.0"
|
2018-12-08 12:06:54 +01: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 23:22:37 +02:00
|
|
|
checksum = "be0f75932c1f6cfae3c04000e40114adf955636e19040f9c0a2c380702aa1c7f"
|
2018-12-08 12:06:54 +01: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 23:22:37 +02:00
|
|
|
"adler",
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
2018-12-08 12:06:54 +01:00
|
|
|
]
|
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "mio"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.6.22"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"fuchsia-zircon",
|
|
|
|
"fuchsia-zircon-sys",
|
|
|
|
"iovec",
|
|
|
|
"kernel32-sys",
|
|
|
|
"libc",
|
|
|
|
"log",
|
2020-11-28 00:56:12 +01:00
|
|
|
"miow 0.2.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"net2",
|
|
|
|
"slab",
|
|
|
|
"winapi 0.2.8",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "mio-named-pipes"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.7"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"mio",
|
2020-11-28 00:56:12 +01:00
|
|
|
"miow 0.3.6",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "mio-uds"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.6.8"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"iovec",
|
|
|
|
"libc",
|
|
|
|
"mio",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "miow"
|
2020-11-28 00:56:12 +01:00
|
|
|
version = "0.2.2"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-11-28 00:56:12 +01:00
|
|
|
checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"kernel32-sys",
|
|
|
|
"net2",
|
|
|
|
"winapi 0.2.8",
|
|
|
|
"ws2_32-sys",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2018-03-07 08:39:55 +01:00
|
|
|
[[package]]
|
|
|
|
name = "miow"
|
2020-11-28 00:56:12 +01:00
|
|
|
version = "0.3.6"
|
2018-03-07 08:39:55 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-11-28 00:56:12 +01:00
|
|
|
checksum = "5a33c1b55807fbed163481b5ba66db4b2fa6cde694a5027be10fb724206c5897"
|
2018-03-07 08:39:55 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"socket2",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-03-07 08:39:55 +01:00
|
|
|
]
|
|
|
|
|
2017-12-15 20:41:58 +01:00
|
|
|
[[package]]
|
|
|
|
name = "miri"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"colored",
|
2020-04-15 18:32:41 +02:00
|
|
|
"compiletest_rs",
|
2019-10-30 21:03:19 +01:00
|
|
|
"env_logger 0.7.1",
|
2020-09-17 20:04:20 +02:00
|
|
|
"getrandom 0.2.0",
|
2020-08-17 17:21:44 +02:00
|
|
|
"hex 0.4.2",
|
2020-06-01 20:17:20 +02:00
|
|
|
"libc",
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc-workspace-hack",
|
|
|
|
"rustc_version",
|
|
|
|
"shell-escape",
|
2020-11-30 16:37:40 +01:00
|
|
|
"smallvec 1.4.2",
|
2017-12-15 20:41:58 +01:00
|
|
|
]
|
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "net2"
|
2020-11-28 00:56:12 +01:00
|
|
|
version = "0.2.36"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-11-28 00:56:12 +01:00
|
|
|
checksum = "d7cf75f38f16cb05ea017784dc6dbfd354f76c223dba37701734c4f5a9337d02"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2018-07-02 18:33:16 +02:00
|
|
|
[[package]]
|
|
|
|
name = "new_debug_unreachable"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.4"
|
2018-02-26 04:15:45 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54"
|
2018-02-26 04:15:45 +01:00
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
2018-07-15 00:01:24 +02:00
|
|
|
name = "num-integer"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.43"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "8d59457e662d541ba17869cf51cf177c0b5f0cbf476c66bdc90bf1edac4f875b"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"autocfg",
|
2019-08-15 02:45:09 +02:00
|
|
|
"num-traits",
|
2017-05-09 00:01:13 +02:00
|
|
|
]
|
|
|
|
|
2017-02-20 01:20:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "num-traits"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.2.12"
|
2017-02-20 01:20:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "ac267bcc07f48ee5f8935ab0d24f316fb722d7a1292e2913f0cc196b29ffd611"
|
|
|
|
dependencies = [
|
|
|
|
"autocfg",
|
|
|
|
]
|
2017-02-20 01:20:57 +01:00
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "num_cpus"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.13.0"
|
2016-09-02 10:55:29 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3"
|
2016-09-02 10:55:29 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"hermit-abi",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2016-09-02 10:55:29 +02: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 23:22:37 +02:00
|
|
|
[[package]]
|
|
|
|
name = "object"
|
2020-11-20 18:12:14 +01:00
|
|
|
version = "0.22.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 23:22:37 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-11-20 18:12:14 +01:00
|
|
|
checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397"
|
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 23:22:37 +02:00
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
]
|
|
|
|
|
2019-09-10 03:01:41 +02:00
|
|
|
[[package]]
|
|
|
|
name = "once_cell"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.4.1"
|
2019-09-10 03:01:41 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad"
|
2019-09-10 03:01:41 +02:00
|
|
|
|
2020-03-31 07:17:15 +02:00
|
|
|
[[package]]
|
|
|
|
name = "opaque-debug"
|
|
|
|
version = "0.2.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c"
|
|
|
|
|
2020-10-01 17:15:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "opaque-debug"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
|
|
|
|
|
2017-02-20 01:20:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "open"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.4.0"
|
2017-02-20 01:20:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "7c283bf0114efea9e42f1a60edea9859e8c47528eae09d01df4b29c1e489cc48"
|
|
|
|
dependencies = [
|
|
|
|
"winapi 0.3.9",
|
|
|
|
]
|
2017-02-20 01:20:57 +01:00
|
|
|
|
2018-08-21 19:23:47 +02:00
|
|
|
[[package]]
|
|
|
|
name = "opener"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.1"
|
2018-08-21 19:23:47 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "13117407ca9d0caf3a0e74f97b490a7e64c0ae3aa90a8b7085544d0c37b6f3ae"
|
2018-08-21 19:23:47 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-08-21 19:23:47 +02:00
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "openssl"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.10.30"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "8d575eff3665419f9b83678ff2815858ad9d11567e082f5ac1814baba4e2bcb4"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"foreign-types",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
|
|
|
"openssl-sys",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "openssl-probe"
|
2017-12-10 18:42:49 +01:00
|
|
|
version = "0.1.2"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de"
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2018-08-14 23:27:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "openssl-src"
|
2020-10-12 19:56:07 +02:00
|
|
|
version = "111.12.0+1.1.1h"
|
2018-08-14 23:27:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-12 19:56:07 +02:00
|
|
|
checksum = "858a4132194f8570a7ee9eb8629e85b23cbc4565f2d4a162e87556e5956abf61"
|
2018-08-14 23:27:26 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
2018-08-14 23:27:26 +02:00
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "openssl-sys"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.9.58"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "a842db4709b604f0fe5d1170ae3565899be2ad3d9cbc72dedc789ac0511f78de"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2020-03-16 19:37:15 +01:00
|
|
|
"autocfg",
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"openssl-src",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
2018-07-06 02:34:00 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ordslice"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "dd20eec3dbe4376829cb7d80ae6ac45e0a766831dca50202ff2d40db46a8a024"
|
2018-07-06 02:34:00 +02:00
|
|
|
|
2020-03-26 14:10:35 +01: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 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2020-03-26 14:10:35 +01:00
|
|
|
]
|
|
|
|
|
2018-12-01 11:36:32 +01:00
|
|
|
[[package]]
|
|
|
|
name = "packed_simd"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.3.3"
|
2018-12-01 11:36:32 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "a85ea9fc0d4ac0deb6fe7911d38786b32fc11119afd9e9d38b84ff691ce64220"
|
2018-12-01 11:36:32 +01:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2018-12-01 11:36:32 +01:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "panic_abort"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
|
|
|
"libc",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "panic_unwind"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"alloc",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
|
|
|
"libc",
|
|
|
|
"unwind",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02: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-11-28 00:56:12 +01:00
|
|
|
"miow 0.3.6",
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand",
|
2019-09-08 10:28:11 +02:00
|
|
|
"tokio",
|
|
|
|
"tokio-named-pipes",
|
|
|
|
"tokio-uds",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-09-08 10:28:11 +02: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 17:21:44 +02:00
|
|
|
"lock_api 0.3.4",
|
2020-02-12 15:47:31 +01:00
|
|
|
"parking_lot_core 0.6.2",
|
2019-09-08 10:28:11 +02:00
|
|
|
"rustc_version",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2020-02-12 15:47:31 +01:00
|
|
|
[[package]]
|
|
|
|
name = "parking_lot"
|
2020-04-10 18:31:31 +02:00
|
|
|
version = "0.10.2"
|
2020-02-12 15:47:31 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-04-10 18:31:31 +02:00
|
|
|
checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e"
|
2020-02-12 15:47:31 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02: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 15:47:31 +01:00
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02:00
|
|
|
[[package]]
|
|
|
|
name = "parking_lot_core"
|
|
|
|
version = "0.6.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b"
|
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-08-17 17:21:44 +02:00
|
|
|
"cloudabi 0.0.3",
|
2019-09-08 10:28:11 +02:00
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
|
|
|
"rustc_version",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 0.6.13",
|
|
|
|
"winapi 0.3.9",
|
2019-09-08 10:28:11 +02:00
|
|
|
]
|
|
|
|
|
2020-02-12 15:47:31 +01:00
|
|
|
[[package]]
|
|
|
|
name = "parking_lot_core"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.7.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3"
|
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-08-17 17:21:44 +02:00
|
|
|
"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 15:47:31 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "c361aa727dd08437f2f1447be8b59a33b0edd15e0fcee698f935613d9efbca9b"
|
2020-02-12 15:47:31 +01:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-08-17 17:21:44 +02:00
|
|
|
"cloudabi 0.1.0",
|
|
|
|
"instant",
|
2020-02-12 15:47:31 +01:00
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
|
|
|
"winapi 0.3.9",
|
2020-02-12 15:47:31 +01:00
|
|
|
]
|
|
|
|
|
2020-07-18 00:01:27 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pathdiff"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "877630b3de15c0b64cc52f659345724fbf6bdad9bd9566699fc53688f3c34a34"
|
|
|
|
|
2017-06-15 04:33:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "percent-encoding"
|
2017-12-06 09:25:29 +01:00
|
|
|
version = "1.0.1"
|
2017-06-15 04:33:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
|
2017-06-15 04:33:06 +02:00
|
|
|
|
2019-08-01 02:44:39 +02:00
|
|
|
[[package]]
|
|
|
|
name = "percent-encoding"
|
2019-11-12 19:14:48 +01:00
|
|
|
version = "2.1.0"
|
2019-08-01 02:44:39 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-11-12 19:14:48 +01:00
|
|
|
checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
|
2019-08-01 02:44:39 +02:00
|
|
|
|
2019-01-19 03:39:37 +01:00
|
|
|
[[package]]
|
|
|
|
name = "pest"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "2.1.3"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53"
|
2019-01-19 03:39:37 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"ucd-trie",
|
2019-01-19 03:39:37 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pest_derive"
|
|
|
|
version = "2.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0"
|
2019-01-19 03:39:37 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"pest",
|
|
|
|
"pest_generator",
|
2019-01-19 03:39:37 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pest_generator"
|
2020-05-05 13:26:29 +02:00
|
|
|
version = "2.1.3"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-05 13:26:29 +02:00
|
|
|
checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55"
|
2019-01-19 03:39:37 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"pest",
|
|
|
|
"pest_meta",
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-01-19 03:39:37 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pest_meta"
|
2020-03-31 07:17:15 +02:00
|
|
|
version = "2.1.3"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 07:17:15 +02:00
|
|
|
checksum = "54be6e404f5317079812fc8f9f5279de376d8856929e21c184ecf6bbd692a11d"
|
2019-01-19 03:39:37 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"maplit",
|
|
|
|
"pest",
|
2020-10-13 17:41:06 +02:00
|
|
|
"sha-1 0.8.2",
|
2019-01-19 03:39:37 +01:00
|
|
|
]
|
|
|
|
|
2020-03-03 17:25:03 +01:00
|
|
|
[[package]]
|
|
|
|
name = "petgraph"
|
2020-05-27 02:19:19 +02:00
|
|
|
version = "0.5.1"
|
2020-03-03 17:25:03 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-27 02:19:19 +02:00
|
|
|
checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7"
|
2020-03-03 17:25:03 +01:00
|
|
|
dependencies = [
|
|
|
|
"fixedbitset",
|
2020-05-27 02:19:19 +02:00
|
|
|
"indexmap",
|
2020-03-03 17:25:03 +01:00
|
|
|
]
|
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "phf"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.8.0"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12"
|
2018-04-03 16:32:04 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"phf_shared",
|
2018-04-03 16:32:04 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "phf_codegen"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.8.0"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815"
|
2018-04-03 16:32:04 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"phf_generator",
|
|
|
|
"phf_shared",
|
2018-04-03 16:32:04 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "phf_generator"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.8.0"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526"
|
2018-04-03 16:32:04 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"phf_shared",
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand",
|
2018-04-03 16:32:04 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "phf_shared"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.8.0"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7"
|
2018-04-03 16:32:04 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"siphasher",
|
2018-04-03 16:32:04 +02:00
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pkg-config"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.3.18"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "d36492546b6af1463394d46f0c834346f31548646f6ba10849802c9c9a27ac33"
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2018-05-24 23:52:01 +02:00
|
|
|
[[package]]
|
|
|
|
name = "polonius-engine"
|
2020-03-30 01:11:44 +02:00
|
|
|
version = "0.12.1"
|
2018-05-24 23:52:01 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-30 01:11:44 +02:00
|
|
|
checksum = "ef2558a4b464e185b36ee08a2937ebb62ea5464c38856cfb1465c97cb38db52d"
|
2018-05-29 13:52:51 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"datafrog",
|
|
|
|
"log",
|
|
|
|
"rustc-hash",
|
2018-05-29 13:52:51 +02:00
|
|
|
]
|
2018-05-24 23:52:01 +02:00
|
|
|
|
2019-08-01 17:02:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ppv-lite86"
|
2020-05-26 06:35:21 +02:00
|
|
|
version = "0.2.8"
|
2019-08-01 17:02:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 06:35:21 +02:00
|
|
|
checksum = "237a5ed80e274dbc66f86bd59c1e25edc039660be53194b5fe0a482e0f2612ea"
|
2019-08-01 17:02:26 +02:00
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "precomputed-hash"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
|
2018-04-03 16:32:04 +02: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 15:03:06 +01:00
|
|
|
[[package]]
|
|
|
|
name = "pretty_assertions"
|
2020-03-26 14:10:35 +01: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 15:03:06 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-26 14:10:35 +01: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 15:03:06 +01:00
|
|
|
dependencies = [
|
2020-07-24 20:42:00 +02:00
|
|
|
"ansi_term 0.11.0",
|
2020-03-26 14:10:35 +01:00
|
|
|
"ctor",
|
2019-08-15 02:45:09 +02:00
|
|
|
"difference",
|
2020-03-26 14:10:35 +01: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 15:03:06 +01:00
|
|
|
]
|
|
|
|
|
2018-12-03 02:33:20 +01:00
|
|
|
[[package]]
|
|
|
|
name = "pretty_env_logger"
|
2020-02-10 20:47:38 +01:00
|
|
|
version = "0.4.0"
|
2018-12-03 02:33:20 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-02-10 20:47:38 +01:00
|
|
|
checksum = "926d36b9553851b8b0005f1275891b392ee4d2d833852c417ed025477350fb9d"
|
2018-12-03 02:33:20 +01:00
|
|
|
dependencies = [
|
2020-02-10 20:47:38 +01:00
|
|
|
"env_logger 0.7.1",
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
2018-12-03 02:33:20 +01:00
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02:00
|
|
|
[[package]]
|
|
|
|
name = "proc-macro-crate"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.5"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
|
|
|
"toml",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "proc-macro-error"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.4"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"proc-macro-error-attr",
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-08-17 17:21:44 +02: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 17:43:55 +02:00
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02:00
|
|
|
[[package]]
|
|
|
|
name = "proc-macro2"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.19"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "04f5f085b5d71e2188cb8271e5da0161ad52c3f227a661a3c135fdf28e258b12"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"unicode-xid",
|
2019-09-08 10:28:11 +02:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02: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 17:29:08 +02:00
|
|
|
dependencies = [
|
|
|
|
"std",
|
|
|
|
]
|
2016-09-02 10:55:29 +02:00
|
|
|
|
2017-02-13 10:57:50 +01:00
|
|
|
[[package]]
|
|
|
|
name = "profiler_builtins"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
2017-06-04 16:54:39 +02:00
|
|
|
]
|
|
|
|
|
2018-11-02 16:14:24 +01:00
|
|
|
[[package]]
|
|
|
|
name = "psm"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.11"
|
2018-11-02 16:14:24 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "96e0536f6528466dbbbbe6b986c34175a8d0ff25b794c4bacda22e068cd2f2c5"
|
2018-11-02 16:14:24 +01:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
]
|
|
|
|
|
2019-09-19 10:32:31 +02:00
|
|
|
[[package]]
|
|
|
|
name = "pulldown-cmark"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.7.2"
|
2019-09-19 10:32:31 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "ca36dea94d187597e104a5c8e4b07576a8a45aa5db48a65e12940d3eb7461f55"
|
2019-09-19 10:32:31 +02:00
|
|
|
dependencies = [
|
|
|
|
"bitflags",
|
2020-06-24 00:23:46 +02:00
|
|
|
"getopts",
|
2019-09-19 10:32:31 +02:00
|
|
|
"memchr",
|
2019-11-12 19:14:48 +01:00
|
|
|
"unicase",
|
2019-04-20 19:03:59 +02:00
|
|
|
]
|
|
|
|
|
2020-09-14 02:15:01 +02: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 06:24:32 +01:00
|
|
|
[[package]]
|
|
|
|
name = "punycode"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.1"
|
2019-01-29 06:24:32 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "e9e1dcb320d6839f6edb64f7a4a59d39b30480d4d1765b56873f7c858538a5fe"
|
2019-01-29 06:24:32 +01:00
|
|
|
|
2017-02-08 00:13:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "quick-error"
|
2020-05-05 14:05:06 +02:00
|
|
|
version = "1.2.3"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-05 14:05:06 +02:00
|
|
|
checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2020-08-17 17:21:44 +02:00
|
|
|
[[package]]
|
|
|
|
name = "quick-error"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3ac73b1112776fc109b2e61909bc46c7e1bf0d7f690ffb1676553acce16d5cda"
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
2017-12-06 09:25:29 +01:00
|
|
|
name = "quine-mc_cluskey"
|
|
|
|
version = "0.2.4"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "07589615d719a60c8dd8a4622e7946465dfef20d1a428f969e3443e7386d5f45"
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2019-09-08 10:28:11 +02:00
|
|
|
[[package]]
|
|
|
|
name = "quote"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.7"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
2018-04-02 17:43:55 +02:00
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "racer"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "2.1.42"
|
2017-02-08 00:13:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "d4463624cd50208e86382c13a84561fcd1d3e9d8ff4d97e8ef0c5e304df8d2b9"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
|
|
|
"clap",
|
|
|
|
"derive_more",
|
2020-02-12 15:47:31 +01:00
|
|
|
"env_logger 0.7.1",
|
2020-08-17 17:21:44 +02:00
|
|
|
"humantime 2.0.1",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"rls-span",
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 15:47:31 +01: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-30 01:11:58 +02:00
|
|
|
]
|
2017-02-08 00:13:57 +01:00
|
|
|
|
2019-08-01 17:02:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rand"
|
2020-01-08 16:33:57 +01:00
|
|
|
version = "0.7.3"
|
2019-08-01 17:02:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-01-08 16:33:57 +01:00
|
|
|
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
|
2019-08-01 17:02:26 +02:00
|
|
|
dependencies = [
|
2020-09-17 20:04:20 +02:00
|
|
|
"getrandom 0.1.14",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand_chacha",
|
2020-08-17 17:21:44 +02:00
|
|
|
"rand_core",
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand_hc",
|
|
|
|
"rand_pcg",
|
2018-12-08 12:06:54 +01:00
|
|
|
]
|
|
|
|
|
2019-08-01 17:02:26 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rand_chacha"
|
2020-05-26 06:35:21 +02:00
|
|
|
version = "0.2.2"
|
2019-08-01 17:02:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 06:35:21 +02:00
|
|
|
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
|
2019-08-01 17:02:26 +02:00
|
|
|
dependencies = [
|
2020-05-26 06:35:21 +02:00
|
|
|
"ppv-lite86",
|
2020-08-17 17:21:44 +02:00
|
|
|
"rand_core",
|
2019-08-01 17:02:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_core"
|
2019-11-25 17:14:07 +01:00
|
|
|
version = "0.5.1"
|
2019-08-01 17:02:26 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-11-25 17:14:07 +01:00
|
|
|
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
|
2019-08-01 17:02:26 +02:00
|
|
|
dependencies = [
|
2020-09-17 20:04:20 +02:00
|
|
|
"getrandom 0.1.14",
|
2019-08-01 17:02:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_hc"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
|
2019-08-01 17:02:26 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"rand_core",
|
2019-06-10 20:22:31 +02:00
|
|
|
]
|
|
|
|
|
2018-12-08 12:06:54 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rand_pcg"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.2.1"
|
2018-12-08 12:06:54 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429"
|
2018-12-08 12:06:54 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"rand_core",
|
2018-12-08 12:06:54 +01:00
|
|
|
]
|
2018-07-26 23:58:55 +02:00
|
|
|
|
2019-04-19 09:37:33 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rand_xorshift"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "77d416b86801d23dde1aa643023b775c3a462efc0ed96443add11546cdf1dca8"
|
2019-04-19 09:37:33 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"rand_core",
|
2019-11-25 17:14:07 +01: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 17:21:44 +02:00
|
|
|
"rand_core",
|
2019-04-19 09:37:33 +02:00
|
|
|
]
|
|
|
|
|
2018-02-26 04:15:45 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rayon"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.3.1"
|
2018-02-26 04:15:45 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "62f02856753d04e03e26929f820d0a0a337ebe71f849801eea335d464b349080"
|
2018-02-26 04:15:45 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"autocfg",
|
2019-12-04 18:40:16 +01:00
|
|
|
"crossbeam-deque",
|
2019-08-15 02:45:09 +02:00
|
|
|
"either",
|
|
|
|
"rayon-core",
|
2017-12-06 09:25:29 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rayon-core"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.7.1"
|
2017-12-06 09:25:29 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "e92e15d89083484e11353891f1af602cc661426deb9564c298b270c726973280"
|
2017-12-06 09:25:29 +01:00
|
|
|
dependencies = [
|
2019-12-04 18:40:16 +01:00
|
|
|
"crossbeam-deque",
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-queue 0.2.3",
|
|
|
|
"crossbeam-utils 0.7.2",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"num_cpus",
|
2019-06-10 20:22:31 +02:00
|
|
|
]
|
|
|
|
|
2017-09-22 03:58:35 +02:00
|
|
|
[[package]]
|
|
|
|
name = "redox_syscall"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.57"
|
2017-12-06 09:25:29 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
|
2017-12-06 09:25:29 +01:00
|
|
|
|
2019-02-18 10:32:58 +01:00
|
|
|
[[package]]
|
|
|
|
name = "redox_users"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.3.4"
|
2019-02-18 10:32:58 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "09b23093265f8d200fa7b4c2c76297f47e681c655f6f1285a8780d6a022f7431"
|
2019-02-18 10:32:58 +01:00
|
|
|
dependencies = [
|
2020-09-17 20:04:20 +02:00
|
|
|
"getrandom 0.1.14",
|
2019-08-15 02:45:09 +02:00
|
|
|
"redox_syscall",
|
2020-08-17 17:21:44 +02:00
|
|
|
"rust-argon2",
|
2019-02-18 10:32:58 +01:00
|
|
|
]
|
|
|
|
|
2018-05-11 14:11:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "regex"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.3.9"
|
2018-05-11 14:11:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "9c3780fcf44b193bc4d09f36d2a3c87b251da4a046c87795a0d35f4f927ad8e6"
|
2018-05-11 14:11:06 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"aho-corasick",
|
|
|
|
"memchr",
|
|
|
|
"regex-syntax",
|
2020-05-26 06:04:59 +02:00
|
|
|
"thread_local",
|
2018-05-11 14:11:06 +02:00
|
|
|
]
|
|
|
|
|
2020-07-24 20:42:00 +02: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 14:11:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "regex-syntax"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.6.18"
|
2018-05-11 14:11:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "26412eb97c6b088a6997e05f69403a802a92d520de2f8e63c2b65f9e0f47c4e8"
|
2018-05-11 14:11:06 +02: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 17:52:19 +02:00
|
|
|
[[package]]
|
|
|
|
name = "remote-test-client"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "remote-test-server"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2018-02-26 18:07:16 +01:00
|
|
|
[[package]]
|
|
|
|
name = "remove_dir_all"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.5.3"
|
2018-02-26 18:07:16 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
|
2018-02-26 18:07:16 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-02-26 18:07:16 +01:00
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rls"
|
2019-12-10 16:01:01 +01:00
|
|
|
version = "1.41.0"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2020-01-14 18:47:04 +01:00
|
|
|
"anyhow",
|
2019-08-15 02:45:09 +02:00
|
|
|
"cargo",
|
2020-08-17 17:21:44 +02:00
|
|
|
"cargo_metadata 0.8.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"clippy_lints",
|
2020-02-12 15:47:31 +01:00
|
|
|
"crossbeam-channel",
|
2019-08-15 02:45:09 +02:00
|
|
|
"difference",
|
2019-10-31 07:50:54 +01:00
|
|
|
"env_logger 0.7.1",
|
2019-08-15 02:45:09 +02:00
|
|
|
"futures",
|
|
|
|
"heck",
|
2019-09-08 10:28:11 +02:00
|
|
|
"home",
|
2020-08-17 17:21:44 +02:00
|
|
|
"itertools 0.8.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"jsonrpc-core",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"lsp-codec",
|
|
|
|
"lsp-types",
|
|
|
|
"num_cpus",
|
|
|
|
"ordslice",
|
|
|
|
"racer",
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rayon",
|
|
|
|
"regex",
|
|
|
|
"rls-analysis",
|
|
|
|
"rls-data",
|
2019-09-08 10:28:11 +02:00
|
|
|
"rls-ipc",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rls-rustc",
|
|
|
|
"rls-span",
|
|
|
|
"rls-vfs",
|
|
|
|
"rustc-workspace-hack",
|
2019-06-08 22:15:22 +02:00
|
|
|
"rustc_tools_util 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustfmt-nightly",
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
2019-09-08 10:28:11 +02:00
|
|
|
"serde_ignored",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde_json",
|
|
|
|
"tempfile",
|
|
|
|
"tokio",
|
|
|
|
"tokio-process",
|
|
|
|
"tokio-timer",
|
2019-08-20 19:46:35 +02:00
|
|
|
"toml",
|
2020-08-17 17:21:44 +02:00
|
|
|
"url 2.1.1",
|
2019-08-15 02:45:09 +02:00
|
|
|
"walkdir",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rls-analysis"
|
2020-05-26 06:33:06 +02:00
|
|
|
version = "0.18.1"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-26 06:33:06 +02:00
|
|
|
checksum = "534032993e1b60e5db934eab2dde54da7afd1e46c3465fddb2b29eb47cb1ed3a"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"derive-new",
|
|
|
|
"fst",
|
2020-08-17 17:21:44 +02:00
|
|
|
"itertools 0.8.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"json",
|
|
|
|
"log",
|
|
|
|
"rls-data",
|
|
|
|
"rls-span",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2017-06-05 18:36:48 +02:00
|
|
|
]
|
|
|
|
|
2018-02-02 08:29:59 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rls-data"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "0.19.1"
|
2021-01-15 02:26:55 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a58135eb039f3a3279a33779192f0ee78b56f57ae636e25cec83530e41debb99"
|
2018-02-02 08:29:59 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"rls-span",
|
|
|
|
"serde",
|
2018-02-02 08:29:59 +01:00
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02: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 07:09:36 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rls-rustc"
|
2019-03-10 17:03:32 +01:00
|
|
|
version = "0.6.0"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
|
|
|
"clippy_lints",
|
2019-10-31 07:50:54 +01:00
|
|
|
"env_logger 0.7.1",
|
2019-09-08 10:28:11 +02:00
|
|
|
"futures",
|
|
|
|
"log",
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand",
|
2019-09-08 10:28:11 +02:00
|
|
|
"rls-data",
|
|
|
|
"rls-ipc",
|
|
|
|
"serde",
|
|
|
|
"tokio",
|
|
|
|
]
|
2017-08-30 07:09:36 +02:00
|
|
|
|
2017-03-14 03:16:44 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rls-span"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "0.5.3"
|
2021-01-15 02:26:55 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f0eea58478fc06e15f71b03236612173a1b81e9770314edecfa664375e3e4c86"
|
2017-03-14 03:16:44 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rls-vfs"
|
2019-04-21 12:52:07 +02:00
|
|
|
version = "0.8.0"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "ce4b57b25b4330ed5ec14028fc02141e083ddafda327e7eb598dc0569c8c83c9"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"rls-span",
|
2017-03-14 03:16:44 +01:00
|
|
|
]
|
|
|
|
|
2020-08-17 17:21:44 +02: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 20:27:15 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rust-demangler"
|
Updates to experimental coverage counter injection
This is a combination of 18 commits.
Commit #2:
Additional examples and some small improvements.
Commit #3:
fixed mir-opt non-mir extensions and spanview title elements
Corrected a fairly recent assumption in runtest.rs that all MIR dump
files end in .mir. (It was appending .mir to the graphviz .dot and
spanview .html file names when generating blessed output files. That
also left outdated files in the baseline alongside the files with the
incorrect names, which I've now removed.)
Updated spanview HTML title elements to match their content, replacing a
hardcoded and incorrect name that was left in accidentally when
originally submitted.
Commit #4:
added more test examples
also improved Makefiles with support for non-zero exit status and to
force validation of tests unless a specific test overrides it with a
specific comment.
Commit #5:
Fixed rare issues after testing on real-world crate
Commit #6:
Addressed PR feedback, and removed temporary -Zexperimental-coverage
-Zinstrument-coverage once again supports the latest capabilities of
LLVM instrprof coverage instrumentation.
Also fixed a bug in spanview.
Commit #7:
Fix closure handling, add tests for closures and inner items
And cleaned up other tests for consistency, and to make it more clear
where spans start/end by breaking up lines.
Commit #8:
renamed "typical" test results "expected"
Now that the `llvm-cov show` tests are improved to normally expect
matching actuals, and to allow individual tests to override that
expectation.
Commit #9:
test coverage of inline generic struct function
Commit #10:
Addressed review feedback
* Removed unnecessary Unreachable filter.
* Replaced a match wildcard with remining variants.
* Added more comments to help clarify the role of successors() in the
CFG traversal
Commit #11:
refactoring based on feedback
* refactored `fn coverage_spans()`.
* changed the way I expand an empty coverage span to improve performance
* fixed a typo that I had accidently left in, in visit.rs
Commit #12:
Optimized use of SourceMap and SourceFile
Commit #13:
Fixed a regression, and synched with upstream
Some generated test file names changed due to some new change upstream.
Commit #14:
Stripping out crate disambiguators from demangled names
These can vary depending on the test platform.
Commit #15:
Ignore llvm-cov show diff on test with generics, expand IO error message
Tests with generics produce llvm-cov show results with demangled names
that can include an unstable "crate disambiguator" (hex value). The
value changes when run in the Rust CI Windows environment. I added a sed
filter to strip them out (in a prior commit), but sed also appears to
fail in the same environment. Until I can figure out a workaround, I'm
just going to ignore this specific test result. I added a FIXME to
follow up later, but it's not that critical.
I also saw an error with Windows GNU, but the IO error did not
specify a path for the directory or file that triggered the error. I
updated the error messages to provide more info for next, time but also
noticed some other tests with similar steps did not fail. Looks
spurious.
Commit #16:
Modify rust-demangler to strip disambiguators by default
Commit #17:
Remove std::process::exit from coverage tests
Due to Issue #77553, programs that call std::process::exit() do not
generate coverage results on Windows MSVC.
Commit #18:
fix: test file paths exceeding Windows max path len
2020-09-02 01:15:17 +02:00
|
|
|
version = "0.0.1"
|
2020-07-02 20:27:15 +02:00
|
|
|
dependencies = [
|
Updates to experimental coverage counter injection
This is a combination of 18 commits.
Commit #2:
Additional examples and some small improvements.
Commit #3:
fixed mir-opt non-mir extensions and spanview title elements
Corrected a fairly recent assumption in runtest.rs that all MIR dump
files end in .mir. (It was appending .mir to the graphviz .dot and
spanview .html file names when generating blessed output files. That
also left outdated files in the baseline alongside the files with the
incorrect names, which I've now removed.)
Updated spanview HTML title elements to match their content, replacing a
hardcoded and incorrect name that was left in accidentally when
originally submitted.
Commit #4:
added more test examples
also improved Makefiles with support for non-zero exit status and to
force validation of tests unless a specific test overrides it with a
specific comment.
Commit #5:
Fixed rare issues after testing on real-world crate
Commit #6:
Addressed PR feedback, and removed temporary -Zexperimental-coverage
-Zinstrument-coverage once again supports the latest capabilities of
LLVM instrprof coverage instrumentation.
Also fixed a bug in spanview.
Commit #7:
Fix closure handling, add tests for closures and inner items
And cleaned up other tests for consistency, and to make it more clear
where spans start/end by breaking up lines.
Commit #8:
renamed "typical" test results "expected"
Now that the `llvm-cov show` tests are improved to normally expect
matching actuals, and to allow individual tests to override that
expectation.
Commit #9:
test coverage of inline generic struct function
Commit #10:
Addressed review feedback
* Removed unnecessary Unreachable filter.
* Replaced a match wildcard with remining variants.
* Added more comments to help clarify the role of successors() in the
CFG traversal
Commit #11:
refactoring based on feedback
* refactored `fn coverage_spans()`.
* changed the way I expand an empty coverage span to improve performance
* fixed a typo that I had accidently left in, in visit.rs
Commit #12:
Optimized use of SourceMap and SourceFile
Commit #13:
Fixed a regression, and synched with upstream
Some generated test file names changed due to some new change upstream.
Commit #14:
Stripping out crate disambiguators from demangled names
These can vary depending on the test platform.
Commit #15:
Ignore llvm-cov show diff on test with generics, expand IO error message
Tests with generics produce llvm-cov show results with demangled names
that can include an unstable "crate disambiguator" (hex value). The
value changes when run in the Rust CI Windows environment. I added a sed
filter to strip them out (in a prior commit), but sed also appears to
fail in the same environment. Until I can figure out a workaround, I'm
just going to ignore this specific test result. I added a FIXME to
follow up later, but it's not that critical.
I also saw an error with Windows GNU, but the IO error did not
specify a path for the directory or file that triggered the error. I
updated the error messages to provide more info for next, time but also
noticed some other tests with similar steps did not fail. Looks
spurious.
Commit #16:
Modify rust-demangler to strip disambiguators by default
Commit #17:
Remove std::process::exit from coverage tests
Due to Issue #77553, programs that call std::process::exit() do not
generate coverage results on Windows MSVC.
Commit #18:
fix: test file paths exceeding Windows max path len
2020-09-02 01:15:17 +02:00
|
|
|
"regex",
|
2020-07-02 20:27:15 +02:00
|
|
|
"rustc-demangle",
|
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustbook"
|
2017-02-08 00:13:57 +01:00
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"clap",
|
2020-11-15 02:37:02 +01:00
|
|
|
"env_logger 0.7.1",
|
2019-08-15 02:45:09 +02:00
|
|
|
"mdbook",
|
2017-02-08 00:13:57 +01:00
|
|
|
]
|
2016-09-02 10:55:29 +02:00
|
|
|
|
2019-07-30 13:00:27 +02:00
|
|
|
[[package]]
|
2020-06-15 11:43:39 +02:00
|
|
|
name = "rustc-ap-rustc_arena"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2019-07-30 13:00:27 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "fb953bea2006184c8f01a6fd3ed51658c73380992a9aefc113e8d32ece6b7516"
|
2019-07-30 13:00:27 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2019-07-30 13:00:27 +02:00
|
|
|
]
|
|
|
|
|
2020-03-31 14:31:52 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_ast"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2020-03-31 14:31:52 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "94da60fa49b2f60d2539e8823cf2b4d4e61583ba4ee796b8289e12f017d3dc5b"
|
2020-03-31 14:31:52 +02:00
|
|
|
dependencies = [
|
2020-06-15 11:43:39 +02:00
|
|
|
"bitflags",
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_index",
|
|
|
|
"rustc-ap-rustc_lexer",
|
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_span",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-09-05 21:03:27 +02:00
|
|
|
"tracing",
|
2020-03-31 14:31:52 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_ast_passes"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2019-07-30 13:00:27 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "3e9f9eaaee223832187a398abe0f9cb8bc4e5cd538322d8f3864aea65239c79e"
|
2020-03-31 14:31:52 +02:00
|
|
|
dependencies = [
|
2020-10-05 21:40:20 +02:00
|
|
|
"itertools 0.9.0",
|
2020-03-31 14:31:52 +02: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 21:03:27 +02:00
|
|
|
"tracing",
|
2020-03-31 14:31:52 +02:00
|
|
|
]
|
2020-02-12 15:47:31 +01:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_ast_pretty"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2020-02-12 15:47:31 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "302b43429c62efc43b159b1f8ab94c8b517fb553cbae854c3fcf34e01c36accb"
|
2020-02-12 15:47:31 +01:00
|
|
|
dependencies = [
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_span",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_target",
|
2020-09-05 21:03:27 +02:00
|
|
|
"tracing",
|
2020-02-12 15:47:31 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_attr"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2020-02-12 15:47:31 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "2cbd78cb6f7ca0991478d7f1bc5646b6eca58c37ccbdf70b5d83c490a7c47be7"
|
2020-02-12 15:47:31 +01:00
|
|
|
dependencies = [
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_ast_pretty",
|
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_errors",
|
|
|
|
"rustc-ap-rustc_feature",
|
2020-09-05 21:03:27 +02:00
|
|
|
"rustc-ap-rustc_lexer",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_session",
|
|
|
|
"rustc-ap-rustc_span",
|
2020-05-21 15:39:52 +02:00
|
|
|
"version_check",
|
2020-02-12 15:47:31 +01:00
|
|
|
]
|
2019-07-30 13:00:27 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_data_structures"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2019-07-30 13:00:27 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "7b9ebd359b0f21086a88595a25d92dc7e8e5f7b111e41c52bb6c97e2d95fd0bb"
|
2019-07-30 13:00:27 +02:00
|
|
|
dependencies = [
|
2020-11-05 16:58:23 +01:00
|
|
|
"arrayvec",
|
2020-02-12 15:47:31 +01:00
|
|
|
"bitflags",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-03-31 14:31:52 +02:00
|
|
|
"crossbeam-utils 0.7.2",
|
2020-05-27 07:05:09 +02:00
|
|
|
"ena",
|
2019-08-15 02:45:09 +02:00
|
|
|
"indexmap",
|
|
|
|
"jobserver",
|
2020-04-15 04:07:33 +02:00
|
|
|
"libc",
|
2020-11-05 16:58:23 +01:00
|
|
|
"measureme",
|
2020-10-05 21:40:20 +02:00
|
|
|
"parking_lot 0.11.0",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_graphviz",
|
2019-10-11 16:28:02 +02:00
|
|
|
"rustc-ap-rustc_index",
|
2020-09-05 21:03:27 +02:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_serialize",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc-hash",
|
2019-12-10 16:01:01 +01:00
|
|
|
"rustc-rayon",
|
|
|
|
"rustc-rayon-core",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"stable_deref_trait",
|
2020-05-21 15:39:52 +02:00
|
|
|
"stacker",
|
2020-09-05 21:03:27 +02:00
|
|
|
"tempfile",
|
|
|
|
"tracing",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-07-30 13:00:27 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_errors"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2019-07-30 13:00:27 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "3b810fcac4d738c47d7793afe3e0f2e03d5193c36c698b0fbcebfb64e468c06b"
|
2019-07-30 13:00:27 +02:00
|
|
|
dependencies = [
|
2020-06-15 11:43:39 +02:00
|
|
|
"annotate-snippets 0.8.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"atty",
|
|
|
|
"rustc-ap-rustc_data_structures",
|
2020-12-05 16:40:24 +01:00
|
|
|
"rustc-ap-rustc_lint_defs",
|
2020-09-05 21:03:27 +02:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_span",
|
2019-08-15 02:45:09 +02:00
|
|
|
"termcolor",
|
2020-02-12 15:47:31 +01:00
|
|
|
"termize",
|
2020-09-05 21:03:27 +02:00
|
|
|
"tracing",
|
2019-08-15 02:45:09 +02:00
|
|
|
"unicode-width",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-07-30 13:00:27 +02:00
|
|
|
]
|
|
|
|
|
2020-03-31 14:31:52 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_expand"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2020-03-31 14:31:52 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "f5b44aadd09c05a42a21a063e9f2241fd3d9c00c3dd6e474e22c3a3e8274c959"
|
2020-03-31 14:31:52 +02: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 21:03:27 +02:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_parse",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_session",
|
|
|
|
"rustc-ap-rustc_span",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-09-05 21:03:27 +02:00
|
|
|
"tracing",
|
2020-03-31 14:31:52 +02:00
|
|
|
]
|
|
|
|
|
2020-02-12 15:47:31 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_feature"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2020-02-12 15:47:31 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "a2f4121cb9718c8c1c6350a3aaea619fbbae38fb1aadd3d7305586460babb531"
|
2020-02-12 15:47:31 +01:00
|
|
|
dependencies = [
|
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_span",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_fs_util"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2020-06-15 11:43:39 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "fdb0f36e34fafb725795bef3ec6f414cac34e7ca98e6d25927be36d95ae1c6ac"
|
2020-06-15 11:43:39 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_graphviz"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2020-02-12 15:47:31 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "a98402e20e2913016ed54f12aead5c987fe227a0fb31cc720e17ff51c6f32466"
|
2020-02-12 15:47:31 +01:00
|
|
|
|
2019-10-11 16:28:02 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_index"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2019-10-11 16:28:02 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "ec91408d727f73f682cd8ae836d762c8dab0ed4e81994ced03aa1edcee3b99a4"
|
2019-10-11 16:28:02 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"arrayvec",
|
2020-09-05 21:03:27 +02:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_serialize",
|
2019-10-11 16:28:02 +02:00
|
|
|
]
|
|
|
|
|
2019-07-30 13:00:27 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_lexer"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2019-07-30 13:00:27 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "67adbe260a0a11910624d6d28c0304fcf7b063e666682111005c83b09f73429d"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"unicode-xid",
|
2019-09-08 10:28:11 +02:00
|
|
|
]
|
2019-07-30 13:00:27 +02:00
|
|
|
|
2020-12-05 16:40:24 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_lint_defs"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2020-12-05 16:40:24 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "6bf11d0646da7bd136fbca53834afcc3760fbfc20fa4875e139b3ada41ec53a5"
|
2020-12-05 16:40:24 +01:00
|
|
|
dependencies = [
|
|
|
|
"rustc-ap-rustc_ast",
|
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_macros",
|
|
|
|
"rustc-ap-rustc_serialize",
|
|
|
|
"rustc-ap-rustc_span",
|
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
2019-07-30 13:00:27 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_macros"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2019-07-30 13:00:27 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "c454b10b66750ffd9bfd7d53b0f30eaba1462356e9ac91f0d037cb0556dc7681"
|
2019-07-30 13:00:27 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-05-05 13:26:16 +02:00
|
|
|
"synstructure",
|
2019-07-30 13:00:27 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2020-02-12 15:47:31 +01:00
|
|
|
name = "rustc-ap-rustc_parse"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2019-07-30 13:00:27 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "3d03f423948137a8370a88447382a18015d47a273268e3ead2d0a987c3b14070"
|
2019-07-30 13:00:27 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_ast_pretty",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc-ap-rustc_data_structures",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_errors",
|
|
|
|
"rustc-ap-rustc_feature",
|
|
|
|
"rustc-ap-rustc_lexer",
|
|
|
|
"rustc-ap-rustc_session",
|
|
|
|
"rustc-ap-rustc_span",
|
2020-09-05 21:03:27 +02:00
|
|
|
"smallvec 1.4.2",
|
|
|
|
"tracing",
|
2020-02-12 15:47:31 +01:00
|
|
|
"unicode-normalization",
|
|
|
|
]
|
|
|
|
|
2020-06-15 11:43:39 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_serialize"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2020-06-15 11:43:39 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "e7ed5df71bd37d1e179b4bbedf77db76c9e0eb2e03159c58a691adbf29f74682"
|
2020-06-15 11:43:39 +02:00
|
|
|
dependencies = [
|
|
|
|
"indexmap",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-06-15 11:43:39 +02:00
|
|
|
]
|
|
|
|
|
2020-02-12 15:47:31 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-ap-rustc_session"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2020-02-12 15:47:31 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "3e3b92b51fad25a897b23ec98961126aea038abeab8d47989f774f7727016b5e"
|
2020-02-12 15:47:31 +01:00
|
|
|
dependencies = [
|
2020-07-25 23:25:16 +02:00
|
|
|
"bitflags",
|
2020-04-15 04:07:33 +02:00
|
|
|
"getopts",
|
2020-02-12 15:47:31 +01:00
|
|
|
"num_cpus",
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_errors",
|
|
|
|
"rustc-ap-rustc_feature",
|
|
|
|
"rustc-ap-rustc_fs_util",
|
2020-12-05 16:40:24 +01:00
|
|
|
"rustc-ap-rustc_lint_defs",
|
2020-09-05 21:03:27 +02:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_span",
|
|
|
|
"rustc-ap-rustc_target",
|
2020-09-05 21:03:27 +02:00
|
|
|
"tracing",
|
2019-07-30 13:00:27 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2020-02-12 15:47:31 +01:00
|
|
|
name = "rustc-ap-rustc_span"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2019-07-30 13:00:27 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "d98273206d8a571c780f233f3391ea30e29c5e75ecdc60335ccef346046e1953"
|
2019-07-30 13:00:27 +02:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-12-05 16:40:24 +01:00
|
|
|
"md-5",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_arena",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_index",
|
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-02-12 15:47:31 +01:00
|
|
|
"scoped-tls",
|
2020-12-05 16:40:24 +01:00
|
|
|
"sha-1 0.9.1",
|
|
|
|
"sha2",
|
2020-09-05 21:03:27 +02:00
|
|
|
"tracing",
|
2020-02-12 15:47:31 +01:00
|
|
|
"unicode-width",
|
2019-07-30 13:00:27 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2020-02-12 15:47:31 +01:00
|
|
|
name = "rustc-ap-rustc_target"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "697.0.0"
|
2019-07-30 13:00:27 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 01:50:59 +01:00
|
|
|
checksum = "08ce81fe0130e61112db5f3b2db6b21d407e4b14ae467ab9637f4696cc340ad1"
|
2019-07-30 13:00:27 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
|
|
|
"rustc-ap-rustc_data_structures",
|
2019-10-11 16:28:02 +02:00
|
|
|
"rustc-ap-rustc_index",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_macros",
|
2020-06-15 11:43:39 +02:00
|
|
|
"rustc-ap-rustc_serialize",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_span",
|
2020-09-05 21:03:27 +02:00
|
|
|
"tracing",
|
2020-02-12 15:47:31 +01:00
|
|
|
]
|
|
|
|
|
2017-05-09 00:01:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-demangle"
|
2020-10-21 22:11:11 +02:00
|
|
|
version = "0.1.18"
|
2017-05-09 00:01:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-21 22:11:11 +02:00
|
|
|
checksum = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232"
|
2018-12-14 23:37:51 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-core",
|
2018-12-14 23:37:51 +01:00
|
|
|
]
|
2017-05-09 00:01:13 +02:00
|
|
|
|
2018-05-24 14:48:02 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-hash"
|
2020-05-27 02:19:19 +02:00
|
|
|
version = "1.1.0"
|
2018-05-24 14:48:02 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-27 02:19:19 +02:00
|
|
|
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
2018-05-24 14:48:02 +02:00
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-main"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"jemalloc-sys",
|
|
|
|
"rustc_codegen_ssa",
|
|
|
|
"rustc_driver",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2019-09-10 19:13:07 +02: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 18:40:16 +01:00
|
|
|
"crossbeam-deque",
|
2019-09-10 19:13:07 +02:00
|
|
|
"either",
|
2019-12-10 16:01:01 +01:00
|
|
|
"rustc-rayon-core",
|
2019-04-25 22:50:41 +02:00
|
|
|
]
|
|
|
|
|
2019-09-10 19:13:07 +02: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 18:40:16 +01:00
|
|
|
"crossbeam-deque",
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-queue 0.1.2",
|
|
|
|
"crossbeam-utils 0.6.6",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-09-10 19:13:07 +02:00
|
|
|
"num_cpus",
|
|
|
|
]
|
|
|
|
|
2020-12-06 15:07:59 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-semver"
|
|
|
|
version = "1.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5be1bdc7edf596692617627bbfeaba522131b18e06ca4df2b6b689e3c5d5ce84"
|
|
|
|
|
2019-02-07 12:08:05 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-std-workspace-alloc"
|
2019-09-09 22:01:05 +02:00
|
|
|
version = "1.99.0"
|
2019-02-07 12:08:05 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"alloc",
|
2019-02-07 12:08:05 +01: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 06:52:50 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-std-workspace-core"
|
2019-09-09 22:01:05 +02: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 06:52:50 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02: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 06:52:50 +01: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 17:29:08 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-std-workspace-std"
|
2019-09-09 22:01:05 +02: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 17:29:08 +02:00
|
|
|
dependencies = [
|
|
|
|
"std",
|
|
|
|
]
|
|
|
|
|
2018-07-31 23:16:55 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-workspace-hack"
|
|
|
|
version = "1.0.0"
|
|
|
|
dependencies = [
|
2020-11-05 16:58:23 +01:00
|
|
|
"byteorder",
|
2020-04-01 22:39:11 +02:00
|
|
|
"crossbeam-utils 0.7.2",
|
2020-12-05 18:08:33 +01:00
|
|
|
"libc",
|
2020-12-23 21:18:15 +01:00
|
|
|
"libz-sys",
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 0.6.13",
|
|
|
|
"smallvec 1.4.2",
|
2020-08-01 16:11:15 +02:00
|
|
|
"syn",
|
2020-08-17 17:21:44 +02:00
|
|
|
"url 2.1.1",
|
|
|
|
"winapi 0.3.9",
|
2018-07-31 23:16:55 +02:00
|
|
|
]
|
|
|
|
|
2017-07-08 19:46:43 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_apfloat"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2017-07-08 19:46:43 +02:00
|
|
|
]
|
|
|
|
|
2020-06-02 19:03:40 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_arena"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-06-02 19:03:40 +02:00
|
|
|
]
|
|
|
|
|
2020-02-29 18:16:26 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_ast"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-05-06 15:46:01 +02:00
|
|
|
"bitflags",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_lexer",
|
|
|
|
"rustc_macros",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_span",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-02-29 18:16:26 +01:00
|
|
|
]
|
|
|
|
|
2019-12-22 18:12:56 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_ast_lowering"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_arena",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_ast_pretty",
|
2019-12-22 18:12:56 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2019-12-22 18:12:56 +01:00
|
|
|
"rustc_index",
|
2019-12-24 22:42:56 +01:00
|
|
|
"rustc_session",
|
2019-12-22 18:12:56 +01:00
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2019-12-22 18:12:56 +01:00
|
|
|
]
|
|
|
|
|
2020-01-05 10:58:44 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_ast_passes"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-09-12 08:24:09 +02:00
|
|
|
"itertools 0.9.0",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2020-01-05 10:58:44 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-01-05 11:11:39 +01:00
|
|
|
"rustc_feature",
|
2020-01-05 10:58:44 +01:00
|
|
|
"rustc_parse",
|
|
|
|
"rustc_session",
|
|
|
|
"rustc_span",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-01-05 10:58:44 +01:00
|
|
|
]
|
|
|
|
|
2020-01-11 17:02:46 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_ast_pretty"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_span",
|
2020-01-22 15:20:27 +01:00
|
|
|
"rustc_target",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-01-11 17:02:46 +01:00
|
|
|
]
|
|
|
|
|
2020-01-11 13:15:20 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_attr"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_feature",
|
2020-08-10 21:27:48 +02:00
|
|
|
"rustc_lexer",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_macros",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_session",
|
|
|
|
"rustc_span",
|
2020-04-19 10:47:55 +02:00
|
|
|
"version_check",
|
2020-01-11 13:15:20 +01:00
|
|
|
]
|
|
|
|
|
2019-12-29 14:53:32 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_builtin_macros"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_expand",
|
|
|
|
"rustc_feature",
|
|
|
|
"rustc_parse",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_parse_format",
|
2020-01-05 10:47:20 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2019-12-29 14:53:32 +01:00
|
|
|
]
|
|
|
|
|
2018-05-08 15:10:16 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_codegen_llvm"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-10-22 17:51:35 +02:00
|
|
|
"bitflags",
|
|
|
|
"libc",
|
2020-11-05 16:58:23 +01:00
|
|
|
"measureme",
|
2019-10-22 17:51:35 +02:00
|
|
|
"rustc-demangle",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-10-22 17:51:35 +02:00
|
|
|
"rustc_codegen_ssa",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-12-06 04:04:35 +01:00
|
|
|
"rustc_feature",
|
2019-10-22 17:51:35 +02:00
|
|
|
"rustc_fs_util",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2019-10-22 17:51:35 +02:00
|
|
|
"rustc_incremental",
|
|
|
|
"rustc_index",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_llvm",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2019-12-06 04:04:35 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-10-22 17:51:35 +02:00
|
|
|
"rustc_target",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-08-21 01:16:30 +02:00
|
|
|
"snap",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2018-05-08 15:10:16 +02:00
|
|
|
]
|
|
|
|
|
2018-10-01 18:07:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_codegen_ssa"
|
|
|
|
version = "0.0.0"
|
2018-10-23 17:01:35 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
|
|
|
"cc",
|
|
|
|
"jobserver",
|
|
|
|
"libc",
|
|
|
|
"memmap",
|
|
|
|
"num_cpus",
|
2020-07-18 00:01:27 +02:00
|
|
|
"pathdiff",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_apfloat",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_fs_util",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_incremental",
|
2019-09-26 07:30:10 +02:00
|
|
|
"rustc_index",
|
2020-06-11 16:49:57 +02:00
|
|
|
"rustc_macros",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2019-11-12 14:22:16 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2020-03-13 00:07:58 +01:00
|
|
|
"rustc_symbol_mangling",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_target",
|
|
|
|
"tempfile",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2018-10-23 17:01:35 +02:00
|
|
|
]
|
2018-10-01 18:07:04 +02:00
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_data_structures"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-09-19 17:27:13 +02:00
|
|
|
"arrayvec",
|
2019-11-11 23:15:36 +01:00
|
|
|
"bitflags",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-03-26 14:10:35 +01:00
|
|
|
"crossbeam-utils 0.7.2",
|
2020-05-27 07:05:09 +02:00
|
|
|
"ena",
|
2019-08-15 02:45:09 +02:00
|
|
|
"indexmap",
|
|
|
|
"jobserver",
|
2020-04-10 22:42:19 +02:00
|
|
|
"libc",
|
2020-11-05 16:58:23 +01:00
|
|
|
"measureme",
|
2020-09-12 08:24:09 +02:00
|
|
|
"parking_lot 0.11.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc-hash",
|
2019-12-10 16:01:01 +01:00
|
|
|
"rustc-rayon",
|
|
|
|
"rustc-rayon-core",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_graphviz",
|
2019-09-25 21:09:51 +02:00
|
|
|
"rustc_index",
|
2020-06-11 16:49:57 +02:00
|
|
|
"rustc_macros",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"stable_deref_trait",
|
2020-03-14 19:13:55 +01:00
|
|
|
"stacker",
|
2020-08-09 03:05:50 +02:00
|
|
|
"tempfile",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_driver"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2021-01-11 03:07:05 +01:00
|
|
|
"atty",
|
2020-04-10 22:42:19 +02:00
|
|
|
"libc",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_ast_pretty",
|
2020-01-23 11:48:48 +01:00
|
|
|
"rustc_codegen_ssa",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
2019-11-15 19:41:50 +01:00
|
|
|
"rustc_error_codes",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_errors",
|
2019-11-30 02:34:18 +01:00
|
|
|
"rustc_feature",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2020-03-23 20:59:19 +01:00
|
|
|
"rustc_hir_pretty",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_interface",
|
2019-10-09 15:53:13 +02:00
|
|
|
"rustc_lint",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_metadata",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_mir",
|
2019-10-15 22:48:13 +02:00
|
|
|
"rustc_parse",
|
2019-07-16 19:08:32 +02:00
|
|
|
"rustc_plugin_impl",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_save_analysis",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-03-11 12:49:08 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_target",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
|
|
|
"tracing-subscriber",
|
2020-08-04 13:48:05 +02:00
|
|
|
"tracing-tree",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2019-11-11 22:47:05 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_error_codes"
|
|
|
|
version = "0.0.0"
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_errors"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-05-08 22:48:26 +02:00
|
|
|
"annotate-snippets 0.8.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"atty",
|
|
|
|
"rustc_data_structures",
|
2020-08-13 21:41:52 +02:00
|
|
|
"rustc_lint_defs",
|
2020-06-11 16:49:57 +02:00
|
|
|
"rustc_macros",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-08-15 02:45:09 +02:00
|
|
|
"termcolor",
|
2020-01-29 01:13:48 +01:00
|
|
|
"termize",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2019-08-15 02:45:09 +02:00
|
|
|
"unicode-width",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2019-12-29 14:53:32 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_expand"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-05 11:11:39 +01:00
|
|
|
"rustc_ast_passes",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_feature",
|
|
|
|
"rustc_lexer",
|
2020-06-11 16:49:57 +02:00
|
|
|
"rustc_macros",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_parse",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-01-05 10:47:20 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2019-12-29 14:53:32 +01:00
|
|
|
]
|
|
|
|
|
2019-11-30 00:23:38 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_feature"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-11-30 02:34:18 +01:00
|
|
|
"rustc_data_structures",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-11-30 00:23:38 +01:00
|
|
|
]
|
|
|
|
|
2018-08-03 23:31:03 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_fs_util"
|
|
|
|
version = "0.0.0"
|
|
|
|
|
2020-06-02 19:03:40 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_graphviz"
|
|
|
|
version = "0.0.0"
|
|
|
|
|
2019-12-25 03:51:27 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_hir"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2019-12-25 03:51:27 +01:00
|
|
|
"rustc_data_structures",
|
2020-12-31 00:07:41 +01:00
|
|
|
"rustc_feature",
|
2019-12-25 03:51:27 +01:00
|
|
|
"rustc_index",
|
|
|
|
"rustc_macros",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2019-12-25 03:51:27 +01:00
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2019-12-25 03:51:27 +01:00
|
|
|
]
|
|
|
|
|
2020-03-23 20:59:19 +01: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 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_incremental"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_fs_util",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_graphviz",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2020-06-11 16:49:57 +02:00
|
|
|
"rustc_macros",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2019-11-12 14:22:16 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2019-09-25 21:09:51 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_index"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"arrayvec",
|
2020-06-11 16:49:57 +02:00
|
|
|
"rustc_macros",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2019-09-25 21:09:51 +02:00
|
|
|
]
|
|
|
|
|
2020-01-06 20:13:24 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_infer"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-06 20:13:24 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_graphviz",
|
2020-01-06 20:13:24 +01:00
|
|
|
"rustc_hir",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_macros",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-03-11 12:49:08 +01:00
|
|
|
"rustc_session",
|
2020-01-06 20:13:24 +01:00
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-01-06 20:13:24 +01:00
|
|
|
]
|
|
|
|
|
2018-12-08 20:30:23 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_interface"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-04-10 22:42:19 +02:00
|
|
|
"libc",
|
2019-12-10 16:01:01 +01:00
|
|
|
"rustc-rayon",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2019-12-22 18:12:56 +01:00
|
|
|
"rustc_ast_lowering",
|
2020-01-05 10:58:44 +01:00
|
|
|
"rustc_ast_passes",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_builtin_macros",
|
2019-10-22 17:51:35 +02:00
|
|
|
"rustc_codegen_llvm",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_codegen_ssa",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_expand",
|
2019-12-25 03:51:27 +01:00
|
|
|
"rustc_hir",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_incremental",
|
|
|
|
"rustc_lint",
|
|
|
|
"rustc_metadata",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_mir",
|
2020-01-05 16:46:44 +01:00
|
|
|
"rustc_mir_build",
|
2019-10-15 22:48:13 +02:00
|
|
|
"rustc_parse",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_passes",
|
2019-07-16 19:08:32 +02:00
|
|
|
"rustc_plugin_impl",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_privacy",
|
|
|
|
"rustc_resolve",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-01-05 09:40:16 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2020-03-13 00:07:58 +01:00
|
|
|
"rustc_symbol_mangling",
|
2019-10-11 23:48:16 +02:00
|
|
|
"rustc_target",
|
2020-02-11 19:53:40 +01:00
|
|
|
"rustc_trait_selection",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_traits",
|
2020-11-19 21:32:37 +01:00
|
|
|
"rustc_ty_utils",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_typeck",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"tempfile",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-12-08 20:30:23 +01:00
|
|
|
]
|
|
|
|
|
2019-05-06 10:53:40 +02: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 14:03:50 +02:00
|
|
|
"expect-test",
|
2020-08-01 16:11:15 +02:00
|
|
|
"unicode-xid",
|
2019-05-06 10:53:40 +02:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_lint"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
2020-01-09 11:18:47 +01:00
|
|
|
"rustc_errors",
|
2019-11-30 00:23:38 +01:00
|
|
|
"rustc_feature",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2019-09-26 07:38:33 +02:00
|
|
|
"rustc_index",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-10-20 22:25:42 +02:00
|
|
|
"rustc_parse_format",
|
2019-11-12 18:09:20 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_target",
|
2020-02-11 19:53:40 +01:00
|
|
|
"rustc_trait_selection",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-01-02 13:02:22 +01:00
|
|
|
"unicode-security",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2020-08-13 21:41:52 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_lint_defs"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc_ast",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_macros",
|
|
|
|
"rustc_serialize",
|
|
|
|
"rustc_span",
|
2020-09-01 23:12:38 +02:00
|
|
|
"rustc_target",
|
2020-08-13 21:41:52 +02:00
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_llvm"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"build_helper",
|
|
|
|
"cc",
|
2019-12-12 16:51:19 +01:00
|
|
|
"libc",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2019-03-01 01:22:10 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_macros"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-05-05 13:26:16 +02:00
|
|
|
"synstructure",
|
2019-03-01 01:22:10 +01:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_metadata"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-04-10 22:42:19 +02:00
|
|
|
"libc",
|
2019-08-15 02:45:09 +02:00
|
|
|
"memmap",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_expand",
|
2020-09-13 01:58:17 +02:00
|
|
|
"rustc_feature",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2020-03-23 20:59:19 +01:00
|
|
|
"rustc_hir_pretty",
|
2019-09-26 07:30:10 +02:00
|
|
|
"rustc_index",
|
2020-06-11 16:49:57 +02:00
|
|
|
"rustc_macros",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-03-11 12:49:08 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_target",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-08-21 01:16:30 +02:00
|
|
|
"snap",
|
2019-08-15 02:45:09 +02:00
|
|
|
"stable_deref_trait",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2020-03-29 15:24:45 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_middle"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags",
|
2020-03-03 17:25:03 +01:00
|
|
|
"chalk-ir",
|
2020-11-05 16:58:23 +01:00
|
|
|
"measureme",
|
2020-03-29 15:24:45 +02:00
|
|
|
"polonius-engine",
|
|
|
|
"rustc-rayon-core",
|
|
|
|
"rustc_apfloat",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_arena",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_ast",
|
|
|
|
"rustc_attr",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_feature",
|
|
|
|
"rustc_hir",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_macros",
|
|
|
|
"rustc_query_system",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_session",
|
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-11-18 16:37:10 +01:00
|
|
|
"rustc_type_ir",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-03-29 15:24:45 +02:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_mir"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-11-03 06:32:48 +01:00
|
|
|
"coverage_test_macros",
|
2019-08-15 02:45:09 +02:00
|
|
|
"either",
|
2020-10-26 14:34:29 +01:00
|
|
|
"gsgdt",
|
2020-09-12 08:24:09 +02:00
|
|
|
"itertools 0.9.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"polonius-engine",
|
2020-08-28 03:10:57 +02:00
|
|
|
"regex",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_apfloat",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_graphviz",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2019-09-26 07:30:10 +02:00
|
|
|
"rustc_index",
|
2020-01-06 20:13:24 +01:00
|
|
|
"rustc_infer",
|
2019-07-21 13:50:39 +02:00
|
|
|
"rustc_lexer",
|
2019-11-10 19:30:19 +01:00
|
|
|
"rustc_macros",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-03-11 12:49:08 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_target",
|
2020-02-11 19:53:40 +01:00
|
|
|
"rustc_trait_selection",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2020-01-05 16:46:44 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_mir_build"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc_apfloat",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_arena",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2020-01-05 16:46:44 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_hir",
|
|
|
|
"rustc_index",
|
2020-01-06 20:13:24 +01:00
|
|
|
"rustc_infer",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-01-20 22:23:07 +01:00
|
|
|
"rustc_session",
|
2020-01-05 16:46:44 +01:00
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-02-11 19:53:40 +01:00
|
|
|
"rustc_trait_selection",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-01-05 16:46:44 +01:00
|
|
|
]
|
|
|
|
|
2019-10-15 22:48:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_parse"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_ast_pretty",
|
2019-10-15 22:48:13 +02:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-11-30 00:23:38 +01:00
|
|
|
"rustc_feature",
|
2019-10-15 22:48:13 +02:00
|
|
|
"rustc_lexer",
|
2020-01-05 10:47:20 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2019-11-23 15:33:40 +01:00
|
|
|
"unicode-normalization",
|
2019-10-15 22:48:13 +02:00
|
|
|
]
|
|
|
|
|
2020-06-02 19:03:40 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_parse_format"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc_lexer",
|
|
|
|
"rustc_span",
|
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_passes"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2019-10-04 16:46:57 +02:00
|
|
|
"rustc_index",
|
2020-12-01 23:41:12 +01:00
|
|
|
"rustc_lexer",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-09-26 02:00:00 +02:00
|
|
|
"rustc_serialize",
|
2020-01-02 12:54:43 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-10-04 16:46:57 +02:00
|
|
|
"rustc_target",
|
2020-02-11 19:53:40 +01:00
|
|
|
"rustc_trait_selection",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2019-07-16 19:08:32 +02:00
|
|
|
name = "rustc_plugin_impl"
|
2016-09-02 10:55:29 +02:00
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2019-12-31 21:25:16 +01:00
|
|
|
"rustc_errors",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2020-01-09 07:52:01 +01:00
|
|
|
"rustc_lint",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_metadata",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-03-11 12:49:08 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_privacy"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
2019-12-31 21:25:16 +01:00
|
|
|
"rustc_errors",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-03-11 12:49:08 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_typeck",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2020-03-18 10:25:22 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_query_system"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-09-12 08:24:09 +02:00
|
|
|
"parking_lot 0.11.0",
|
2020-03-19 14:13:31 +01:00
|
|
|
"rustc-rayon-core",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_arena",
|
2020-03-18 10:25:22 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
|
|
|
"rustc_index",
|
2020-06-11 16:49:57 +02:00
|
|
|
"rustc_macros",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2020-03-19 14:13:31 +01:00
|
|
|
"rustc_span",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-03-18 10:25:22 +01:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_resolve"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_arena",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2019-12-22 18:12:56 +01:00
|
|
|
"rustc_ast_lowering",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_ast_pretty",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_expand",
|
2019-11-30 02:34:18 +01:00
|
|
|
"rustc_feature",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2020-06-20 20:59:29 +02:00
|
|
|
"rustc_index",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_metadata",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2019-12-24 22:42:56 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_save_analysis"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"rls-data",
|
|
|
|
"rls-span",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 17:02:46 +01:00
|
|
|
"rustc_ast_pretty",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2020-03-24 02:44:41 +01:00
|
|
|
"rustc_hir_pretty",
|
2020-08-29 11:38:15 +02:00
|
|
|
"rustc_lexer",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-03-11 12:49:08 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde_json",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2020-06-02 19:03:40 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_serialize"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"indexmap",
|
2020-07-18 21:14:50 +02:00
|
|
|
"rustc_macros",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-06-02 19:03:40 +02:00
|
|
|
]
|
|
|
|
|
2019-11-12 14:17:33 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_session"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-06-14 02:00:00 +02:00
|
|
|
"bitflags",
|
2020-04-10 22:42:19 +02:00
|
|
|
"getopts",
|
2019-11-29 22:05:28 +01:00
|
|
|
"num_cpus",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2019-11-12 14:17:33 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2019-11-29 22:05:28 +01:00
|
|
|
"rustc_feature",
|
|
|
|
"rustc_fs_util",
|
2020-08-13 21:41:52 +02:00
|
|
|
"rustc_lint_defs",
|
2020-06-11 16:49:57 +02:00
|
|
|
"rustc_macros",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-11-29 22:05:28 +01:00
|
|
|
"rustc_target",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2019-12-29 14:53:32 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_span"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-12-05 16:40:24 +01:00
|
|
|
"md-5",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_arena",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_macros",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2019-12-29 14:53:32 +01:00
|
|
|
"scoped-tls",
|
2020-10-13 17:41:06 +02:00
|
|
|
"sha-1 0.9.1",
|
|
|
|
"sha2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2019-12-29 14:53:32 +01:00
|
|
|
"unicode-width",
|
2019-11-12 14:17:33 +01:00
|
|
|
]
|
|
|
|
|
2020-03-13 00:07:58 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_symbol_mangling"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"punycode",
|
|
|
|
"rustc-demangle",
|
|
|
|
"rustc_ast",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_hir",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-03-13 00:07:58 +01:00
|
|
|
"rustc_session",
|
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-03-13 00:07:58 +01:00
|
|
|
]
|
|
|
|
|
2017-12-08 20:18:21 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_target"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
|
|
|
"rustc_data_structures",
|
2019-09-26 07:38:33 +02:00
|
|
|
"rustc_index",
|
2019-11-09 22:27:52 +01:00
|
|
|
"rustc_macros",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_serialize",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2017-12-08 20:18:21 +01:00
|
|
|
]
|
|
|
|
|
2018-09-07 09:12:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_tools_util"
|
2019-06-08 22:15:22 +02:00
|
|
|
version = "0.2.0"
|
2019-01-05 15:40:10 +01:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustc_tools_util"
|
2019-05-26 19:21:54 +02:00
|
|
|
version = "0.2.0"
|
2019-06-08 22:15:22 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "b725dadae9fabc488df69a287f5a99c5eaf5d10853842a8a3dfac52476f544ee"
|
2018-09-07 09:12:06 +02:00
|
|
|
|
2020-02-11 19:53:40 +01: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 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_parse_format",
|
2020-02-11 19:53:40 +01:00
|
|
|
"rustc_session",
|
|
|
|
"rustc_span",
|
|
|
|
"rustc_target",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-02-11 19:53:40 +01:00
|
|
|
]
|
|
|
|
|
2018-02-25 16:58:54 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_traits"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-08-05 00:35:37 +02:00
|
|
|
"chalk-engine",
|
2020-03-03 17:25:03 +01:00
|
|
|
"chalk-ir",
|
|
|
|
"chalk-solve",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2020-03-03 17:25:03 +01:00
|
|
|
"rustc_index",
|
2020-01-06 20:13:24 +01:00
|
|
|
"rustc_infer",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2020-02-11 19:53:40 +01:00
|
|
|
"rustc_trait_selection",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2018-02-25 16:58:54 +01:00
|
|
|
]
|
|
|
|
|
2020-01-13 13:40:30 +01:00
|
|
|
[[package]]
|
2020-11-19 21:32:37 +01:00
|
|
|
name = "rustc_ty_utils"
|
2020-01-13 13:40:30 +01:00
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"rustc_data_structures",
|
2020-04-10 04:13:29 +02:00
|
|
|
"rustc_errors",
|
2020-01-13 13:40:30 +01:00
|
|
|
"rustc_hir",
|
2020-01-06 20:13:24 +01:00
|
|
|
"rustc_infer",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-03-11 12:49:08 +01:00
|
|
|
"rustc_session",
|
2020-01-13 13:40:30 +01:00
|
|
|
"rustc_span",
|
2020-02-12 17:24:32 +01:00
|
|
|
"rustc_target",
|
2020-02-11 19:53:40 +01:00
|
|
|
"rustc_trait_selection",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2020-01-13 13:40:30 +01:00
|
|
|
]
|
2018-02-25 16:58:54 +01:00
|
|
|
|
2020-11-18 16:37:10 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_type_ir"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags",
|
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_index",
|
|
|
|
"rustc_serialize",
|
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_typeck"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-06-02 19:03:40 +02:00
|
|
|
"rustc_arena",
|
2020-02-29 18:16:26 +01:00
|
|
|
"rustc_ast",
|
2020-01-11 13:15:20 +01:00
|
|
|
"rustc_attr",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_data_structures",
|
|
|
|
"rustc_errors",
|
2020-01-05 02:37:57 +01:00
|
|
|
"rustc_hir",
|
2020-07-09 04:39:26 +02:00
|
|
|
"rustc_hir_pretty",
|
2019-09-26 07:38:33 +02:00
|
|
|
"rustc_index",
|
2020-01-06 20:13:24 +01:00
|
|
|
"rustc_infer",
|
2020-08-27 12:00:21 +02:00
|
|
|
"rustc_macros",
|
2020-03-29 15:24:45 +02:00
|
|
|
"rustc_middle",
|
2020-03-11 12:49:08 +01:00
|
|
|
"rustc_session",
|
2019-12-29 14:53:32 +01:00
|
|
|
"rustc_span",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc_target",
|
2020-02-11 19:53:40 +01:00
|
|
|
"rustc_trait_selection",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2018-05-11 14:11:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_version"
|
2018-12-08 12:06:54 +01:00
|
|
|
version = "0.2.3"
|
2018-05-11 14:11:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a"
|
2018-05-11 14:11:06 +02:00
|
|
|
dependencies = [
|
2020-05-26 02:56:32 +02:00
|
|
|
"semver 0.9.0",
|
2018-05-11 14:11:06 +02:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustdoc"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-08-27 12:50:28 +02:00
|
|
|
"expect-test",
|
2020-09-12 08:24:09 +02:00
|
|
|
"itertools 0.9.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"minifier",
|
2020-09-14 02:15:01 +02:00
|
|
|
"pulldown-cmark 0.8.0",
|
2020-10-13 15:46:34 +02:00
|
|
|
"regex",
|
2019-12-10 16:01:01 +01:00
|
|
|
"rustc-rayon",
|
2019-06-29 19:30:45 +02:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-08-18 00:54:29 +02:00
|
|
|
"smallvec 1.4.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"tempfile",
|
2017-07-23 04:01:58 +02:00
|
|
|
]
|
|
|
|
|
2018-02-05 23:43:53 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustdoc-themes"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2017-07-23 04:01:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustdoc-tool"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustdoc",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2020-01-14 18:47:04 +01:00
|
|
|
[[package]]
|
|
|
|
name = "rustfix"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.5.1"
|
2020-01-14 18:47:04 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "f2c50b74badcddeb8f7652fa8323ce440b95286f8e4b64ebfd871c609672704e"
|
2020-01-14 18:47:04 +01:00
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"log",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
]
|
|
|
|
|
2019-06-18 14:15:19 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustfmt-config_proc_macro"
|
2019-09-08 10:28:11 +02:00
|
|
|
version = "0.2.0"
|
2019-06-18 14:15:19 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
2020-08-01 16:11:15 +02:00
|
|
|
"syn",
|
2019-06-18 14:15:19 +02:00
|
|
|
]
|
|
|
|
|
2019-07-30 13:00:27 +02:00
|
|
|
[[package]]
|
|
|
|
name = "rustfmt-nightly"
|
2021-01-15 01:50:59 +01:00
|
|
|
version = "1.4.31"
|
2019-07-30 13:00:27 +02:00
|
|
|
dependencies = [
|
2020-05-08 22:48:26 +02:00
|
|
|
"annotate-snippets 0.6.1",
|
2020-06-15 11:43:39 +02:00
|
|
|
"anyhow",
|
2019-08-15 02:45:09 +02:00
|
|
|
"bytecount",
|
2020-08-17 17:21:44 +02:00
|
|
|
"cargo_metadata 0.8.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"derive-new",
|
|
|
|
"diff",
|
|
|
|
"dirs",
|
2019-09-24 20:06:56 +02:00
|
|
|
"env_logger 0.6.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"getopts",
|
|
|
|
"ignore",
|
2020-08-17 17:21:44 +02:00
|
|
|
"itertools 0.8.2",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"regex",
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_ast",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_ast_pretty",
|
2020-05-21 15:39:52 +02:00
|
|
|
"rustc-ap-rustc_attr",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_data_structures",
|
|
|
|
"rustc-ap-rustc_errors",
|
2020-03-31 14:31:52 +02:00
|
|
|
"rustc-ap-rustc_expand",
|
2020-02-12 15:47:31 +01:00
|
|
|
"rustc-ap-rustc_parse",
|
|
|
|
"rustc-ap-rustc_session",
|
|
|
|
"rustc-ap-rustc_span",
|
2019-08-15 02:45:09 +02:00
|
|
|
"rustc-workspace-hack",
|
|
|
|
"rustfmt-config_proc_macro",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2019-11-12 19:14:48 +01:00
|
|
|
"structopt",
|
2020-08-17 17:21:44 +02:00
|
|
|
"term 0.6.1",
|
2020-06-15 11:43:39 +02:00
|
|
|
"thiserror",
|
2019-08-20 19:46:35 +02:00
|
|
|
"toml",
|
2019-08-15 02:45:09 +02:00
|
|
|
"unicode-segmentation",
|
|
|
|
"unicode-width",
|
|
|
|
"unicode_categories",
|
2019-07-30 13:00:27 +02:00
|
|
|
]
|
|
|
|
|
2018-08-21 19:23:47 +02:00
|
|
|
[[package]]
|
|
|
|
name = "ryu"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.5"
|
2018-08-21 19:23:47 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
|
2018-08-21 19:23:47 +02:00
|
|
|
|
2018-01-08 22:56:22 +01:00
|
|
|
[[package]]
|
|
|
|
name = "same-file"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.6"
|
2018-01-08 22:56:22 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
2018-01-08 22:56:22 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"winapi-util",
|
2018-01-08 22:56:22 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "schannel"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.19"
|
2018-01-08 22:56:22 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75"
|
2018-01-08 22:56:22 +01:00
|
|
|
dependencies = [
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-01-08 22:56:22 +01:00
|
|
|
]
|
|
|
|
|
2019-02-26 11:15:52 +01:00
|
|
|
[[package]]
|
|
|
|
name = "scoped-tls"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2"
|
2019-02-26 11:15:52 +01:00
|
|
|
|
2019-07-25 15:57:25 +02:00
|
|
|
[[package]]
|
|
|
|
name = "scopeguard"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.1.0"
|
2019-07-25 15:57:25 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
|
2019-07-25 15:57:25 +02:00
|
|
|
|
2020-12-16 18:03:33 +01:00
|
|
|
[[package]]
|
|
|
|
name = "security-framework"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c1759c2e3c8580017a484a7ac56d3abc5a6c1feadf88db2f3633f12ae4268c69"
|
|
|
|
dependencies = [
|
|
|
|
"bitflags",
|
|
|
|
"core-foundation",
|
|
|
|
"core-foundation-sys",
|
|
|
|
"libc",
|
|
|
|
"security-framework-sys",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "security-framework-sys"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f99b9d5e26d2a71633cc4f2ebae7cc9f874044e0c351a27e17892d76dce5678b"
|
|
|
|
dependencies = [
|
|
|
|
"core-foundation-sys",
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2018-01-08 22:56:22 +01:00
|
|
|
[[package]]
|
|
|
|
name = "semver"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
|
2018-01-08 22:56:22 +01:00
|
|
|
dependencies = [
|
2020-10-23 23:47:58 +02:00
|
|
|
"semver-parser 0.7.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
2020-05-26 02:56:32 +02:00
|
|
|
[[package]]
|
|
|
|
name = "semver"
|
|
|
|
version = "0.10.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "394cec28fa623e00903caf7ba4fa6fb9a0e260280bb8cdbbba029611108a0190"
|
|
|
|
dependencies = [
|
2020-10-23 23:47:58 +02:00
|
|
|
"semver-parser 0.7.0",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "semver"
|
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6"
|
|
|
|
dependencies = [
|
|
|
|
"semver-parser 0.10.1",
|
2020-05-26 02:56:32 +02:00
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "semver-parser"
|
|
|
|
version = "0.7.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2020-10-23 23:47:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "semver-parser"
|
|
|
|
version = "0.10.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "42ef146c2ad5e5f4b037cd6ce2ebb775401729b19a82040c1beac9d36c7d1428"
|
|
|
|
dependencies = [
|
|
|
|
"pest",
|
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "serde"
|
2020-12-16 18:03:33 +01:00
|
|
|
version = "1.0.118"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-16 18:03:33 +01:00
|
|
|
checksum = "06c64263859d87aa2eb554587e2d23183398d617427327cf2b3d0ed8c69e4800"
|
2018-12-17 19:23:04 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde_derive",
|
2018-12-17 19:23:04 +01:00
|
|
|
]
|
2017-04-30 01:11:58 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_derive"
|
2020-12-16 18:03:33 +01:00
|
|
|
version = "1.0.118"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-16 18:03:33 +01:00
|
|
|
checksum = "c84d3526699cd55261af4b941e4e725444df67aa4f9e6a3564f18030d12672df"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
2017-02-20 01:20:57 +01:00
|
|
|
|
2019-08-20 09:32:53 +02:00
|
|
|
[[package]]
|
|
|
|
name = "serde_ignored"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.2"
|
2019-08-20 09:32:53 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "1c2c7d39d14f2f2ea82239de71594782f186fd03501ac81f0ce08e674819ff2f"
|
2019-08-20 09:32:53 +02:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2017-02-20 01:20:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "serde_json"
|
2020-10-23 23:47:58 +02:00
|
|
|
version = "1.0.59"
|
2017-02-20 01:20:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-23 23:47:58 +02:00
|
|
|
checksum = "dcac07dbffa1c65e7f816ab9eba78eb142c6d44410f4eeba1e26e4f5dfa56b95"
|
2017-02-20 01:20:57 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"itoa",
|
|
|
|
"ryu",
|
|
|
|
"serde",
|
2017-02-20 01:20:57 +01:00
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02:00
|
|
|
[[package]]
|
|
|
|
name = "serde_repr"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.6"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "2dc6b7951b17b051f3210b063f12cc17320e2fe30ae05b0fe2a3abb068551c76"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-09-08 10:28:11 +02:00
|
|
|
]
|
|
|
|
|
2019-01-19 03:39:37 +01:00
|
|
|
[[package]]
|
|
|
|
name = "sha-1"
|
2020-03-31 07:17:15 +02:00
|
|
|
version = "0.8.2"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-03-31 07:17:15 +02:00
|
|
|
checksum = "f7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163df"
|
2019-01-19 03:39:37 +01:00
|
|
|
dependencies = [
|
2020-10-01 17:15:12 +02:00
|
|
|
"block-buffer 0.7.3",
|
|
|
|
"digest 0.8.1",
|
2019-08-15 02:45:09 +02:00
|
|
|
"fake-simd",
|
2020-10-01 17:15:12 +02:00
|
|
|
"opaque-debug 0.2.3",
|
|
|
|
]
|
|
|
|
|
2020-10-13 17:41:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "sha-1"
|
|
|
|
version = "0.9.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "170a36ea86c864a3f16dd2687712dd6646f7019f301e57537c7f4dc9f5916770"
|
|
|
|
dependencies = [
|
|
|
|
"block-buffer 0.9.0",
|
|
|
|
"cfg-if 0.1.10",
|
|
|
|
"cpuid-bool",
|
|
|
|
"digest 0.9.0",
|
|
|
|
"opaque-debug 0.3.0",
|
|
|
|
]
|
|
|
|
|
2020-10-01 17:15:12 +02:00
|
|
|
[[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",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-10-01 17:15:12 +02:00
|
|
|
"cpuid-bool",
|
|
|
|
"digest 0.9.0",
|
|
|
|
"opaque-debug 0.3.0",
|
2019-01-19 03:39:37 +01:00
|
|
|
]
|
|
|
|
|
2020-07-24 20:42:00 +02: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-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "shell-escape"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.5"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "45bb67a18fa91266cc7807181f62f9178a6873bfad7dc788c42e6430db40184f"
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2018-01-25 18:32:25 +01:00
|
|
|
[[package]]
|
|
|
|
name = "shlex"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2"
|
2018-01-25 18:32:25 +01:00
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
2020-08-17 17:21:44 +02:00
|
|
|
name = "signal-hook-registry"
|
|
|
|
version = "1.2.1"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "a3e12110bc539e657a646068aaf5eb5b63af9d0c1f7b29c97113fad80e15f035"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"arc-swap",
|
|
|
|
"libc",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "siphasher"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.3.3"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "fa8f3741c7372e75519bd9346068370c9cdaabcc1f9599cbcf2a2719352286b7"
|
2018-04-03 16:32:04 +02:00
|
|
|
|
2019-05-23 22:27:49 +02:00
|
|
|
[[package]]
|
|
|
|
name = "sized-chunks"
|
2020-05-19 00:41:57 +02:00
|
|
|
version = "0.6.2"
|
2019-05-23 22:27:49 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-19 00:41:57 +02:00
|
|
|
checksum = "1ec31ceca5644fa6d444cc77548b88b67f46db6f7c71683b0f9336e671830d2f"
|
2019-05-23 22:27:49 +02:00
|
|
|
dependencies = [
|
2019-11-25 17:14:07 +01:00
|
|
|
"bitmaps",
|
2019-08-15 02:45:09 +02:00
|
|
|
"typenum",
|
2019-05-23 22:27:49 +02:00
|
|
|
]
|
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "slab"
|
|
|
|
version = "0.4.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
|
2019-01-21 16:32:43 +01:00
|
|
|
|
2017-12-03 13:49:01 +01:00
|
|
|
[[package]]
|
|
|
|
name = "smallvec"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.6.13"
|
2017-12-03 13:49:01 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "f7b0758c52e15a8b5e3691eae6cc559f08eee9406e548a4477ba4e67770a82b6"
|
|
|
|
dependencies = [
|
|
|
|
"maybe-uninit",
|
|
|
|
]
|
2017-12-03 13:49:01 +01:00
|
|
|
|
2019-11-04 15:59:09 +01:00
|
|
|
[[package]]
|
|
|
|
name = "smallvec"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.4.2"
|
2019-11-04 15:59:09 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252"
|
2019-11-04 15:59:09 +01:00
|
|
|
|
2020-08-21 01:16:30 +02:00
|
|
|
[[package]]
|
|
|
|
name = "snap"
|
|
|
|
version = "1.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "da73c8f77aebc0e40c300b93f0a5f1bece7a248a36eee287d4e095f35c7b7d6e"
|
|
|
|
|
2017-06-26 18:26:15 +02:00
|
|
|
[[package]]
|
|
|
|
name = "socket2"
|
2020-11-28 00:56:12 +01:00
|
|
|
version = "0.3.16"
|
2017-06-26 18:26:15 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-11-28 00:56:12 +01:00
|
|
|
checksum = "7fd8b795c389288baa5f355489c65e71fd48a02104600d15c4cfbc561e9e429d"
|
2017-06-26 18:26:15 +02:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2017-06-26 18:26:15 +02:00
|
|
|
]
|
|
|
|
|
2017-04-26 23:22:45 +02:00
|
|
|
[[package]]
|
|
|
|
name = "stable_deref_trait"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.2.0"
|
2017-04-26 23:22:45 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
2017-04-26 23:22:45 +02:00
|
|
|
|
2018-11-02 16:14:24 +01:00
|
|
|
[[package]]
|
|
|
|
name = "stacker"
|
2020-09-20 19:07:52 +02:00
|
|
|
version = "0.1.12"
|
2018-11-02 16:14:24 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-20 19:07:52 +02:00
|
|
|
checksum = "21ccb4c06ec57bc82d0f610f1a2963d7648700e43a6f513e564b9c89f7991786"
|
2018-11-02 16:14:24 +01:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2018-11-02 16:14:24 +01:00
|
|
|
"libc",
|
|
|
|
"psm",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-11-02 16:14:24 +01:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02: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 23:22:37 +02:00
|
|
|
"addr2line",
|
2019-08-15 02:45:09 +02:00
|
|
|
"alloc",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
|
|
|
"dlmalloc",
|
|
|
|
"fortanix-sgx-abi",
|
2020-05-05 14:05:06 +02:00
|
|
|
"hashbrown",
|
2019-10-20 09:55:10 +02:00
|
|
|
"hermit-abi",
|
2019-08-15 02:45:09 +02: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 23:22:37 +02:00
|
|
|
"miniz_oxide",
|
2020-11-20 18:12:14 +01:00
|
|
|
"object",
|
2019-08-15 02:45:09 +02:00
|
|
|
"panic_abort",
|
|
|
|
"panic_unwind",
|
|
|
|
"profiler_builtins",
|
2020-08-01 16:11:15 +02: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 23:22:37 +02:00
|
|
|
"rustc-demangle",
|
2019-08-15 02:45:09 +02:00
|
|
|
"unwind",
|
2020-01-08 16:33:57 +01:00
|
|
|
"wasi",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "string_cache"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.8.0"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "2940c75beb4e3bf3a494cef919a747a2cb81e52571e212bfbd185074add7208a"
|
2018-04-03 16:32:04 +02:00
|
|
|
dependencies = [
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"new_debug_unreachable",
|
|
|
|
"phf_shared",
|
|
|
|
"precomputed-hash",
|
|
|
|
"serde",
|
2018-04-03 16:32:04 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "string_cache_codegen"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.5.1"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "f24c8e5e19d22a726626f1a5e16fe15b132dcf21d10177fa5a45ce7962996b97"
|
2018-04-03 16:32:04 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"phf_generator",
|
|
|
|
"phf_shared",
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2018-04-03 16:32:04 +02:00
|
|
|
]
|
|
|
|
|
2019-05-23 22:27:49 +02:00
|
|
|
[[package]]
|
|
|
|
name = "strip-ansi-escapes"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "9d63676e2abafa709460982ddc02a3bb586b6d15a49b75c212e06edd3933acee"
|
2019-05-23 22:27:49 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"vte",
|
2019-05-23 22:27:49 +02:00
|
|
|
]
|
|
|
|
|
2017-02-08 00:13:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "strsim"
|
2019-09-08 10:28:11 +02:00
|
|
|
version = "0.8.0"
|
2017-02-08 00:13:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-08 10:28:11 +02:00
|
|
|
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
|
2017-02-08 00:13:57 +01:00
|
|
|
|
2019-09-08 10:28:11 +02:00
|
|
|
[[package]]
|
|
|
|
name = "structopt"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.3.16"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "de5472fb24d7e80ae84a7801b7978f95a19ec32cb1876faea59ab711eb901976"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
|
|
|
"clap",
|
2020-08-17 17:21:44 +02:00
|
|
|
"lazy_static",
|
2019-11-12 19:14:48 +01:00
|
|
|
"structopt-derive",
|
2019-09-08 10:28:11 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "structopt-derive"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.9"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "1e0eb37335aeeebe51be42e2dc07f031163fbabfa6ac67d7ea68b5c2f68d5f99"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
|
|
|
"heck",
|
|
|
|
"proc-macro-error",
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-06-18 14:15:19 +02:00
|
|
|
]
|
|
|
|
|
2018-04-21 23:06:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "strum"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.18.0"
|
2018-04-21 23:06:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "57bd81eb48f4c437cadc685403cad539345bf703d78e63707418431cecd4522b"
|
2018-04-21 23:06:13 +02:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "strum_macros"
|
2020-08-01 16:11:15 +02:00
|
|
|
version = "0.18.0"
|
2018-04-21 23:06:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-01 16:11:15 +02:00
|
|
|
checksum = "87c85aa3f8ea653bfd3ddf25f7ee357ee4d204731f6aa9ad04002306f6e2774c"
|
2018-04-21 23:06:13 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"heck",
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2018-04-02 17:43:55 +02:00
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02:00
|
|
|
[[package]]
|
|
|
|
name = "syn"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.38"
|
2019-09-08 10:28:11 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "e69abc24912995b3038597a7a593be5053eb0fb44f3cc5beec0deb421790c1f4"
|
2019-09-08 10:28:11 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"unicode-xid",
|
2019-09-08 10:28:11 +02:00
|
|
|
]
|
|
|
|
|
2019-10-04 14:43:23 +02:00
|
|
|
[[package]]
|
|
|
|
name = "synstructure"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.12.4"
|
2019-10-04 14:43:23 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701"
|
2019-10-04 14:43:23 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
|
|
|
"unicode-xid",
|
2019-10-04 14:43:23 +02:00
|
|
|
]
|
|
|
|
|
2017-05-09 00:01:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tar"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.29"
|
2017-05-09 00:01:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "c8a4c1d0bee3230179544336c15eefb563cf0302955d962e456542323e8c2e8a"
|
2017-05-09 00:01:13 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"filetime",
|
|
|
|
"libc",
|
|
|
|
"redox_syscall",
|
|
|
|
"xattr",
|
2017-05-09 00:01:13 +02:00
|
|
|
]
|
|
|
|
|
2018-03-29 09:34:55 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tempfile"
|
2019-09-11 19:03:28 +02:00
|
|
|
version = "3.1.0"
|
2018-03-29 09:34:55 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-11 19:03:28 +02:00
|
|
|
checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9"
|
2018-03-29 09:34:55 +02:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2020-08-01 16:11:15 +02:00
|
|
|
"rand",
|
2019-08-15 02:45:09 +02:00
|
|
|
"redox_syscall",
|
|
|
|
"remove_dir_all",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-03-29 09:34:55 +02:00
|
|
|
]
|
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tendril"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.1"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "707feda9f2582d5d680d733e38755547a3e8fb471e7ba11452ecfd9ce93a5d3b"
|
2018-04-03 16:32:04 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"futf",
|
|
|
|
"mac",
|
|
|
|
"utf-8",
|
2018-04-03 16:32:04 +02:00
|
|
|
]
|
|
|
|
|
2019-04-07 07:48:59 +02: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 17:29:08 +02:00
|
|
|
dependencies = [
|
|
|
|
"core",
|
|
|
|
"std",
|
|
|
|
]
|
2019-04-07 07:48:59 +02:00
|
|
|
|
2019-07-30 13:00:27 +02:00
|
|
|
[[package]]
|
|
|
|
name = "term"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.6.1"
|
2019-07-30 13:00:27 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "c0863a3345e70f61d613eab32ee046ccd1bcc5f9105fe402c61fcd0c13eeb8b5"
|
2019-07-30 13:00:27 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"dirs",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-07-30 13:00:27 +02:00
|
|
|
]
|
|
|
|
|
2018-07-26 02:25:12 +02:00
|
|
|
[[package]]
|
|
|
|
name = "termcolor"
|
2020-07-29 20:02:05 +02:00
|
|
|
version = "1.1.0"
|
2018-07-26 02:25:12 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-07-29 20:02:05 +02:00
|
|
|
checksum = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f"
|
2018-07-26 02:25:12 +02:00
|
|
|
dependencies = [
|
2020-07-29 20:02:05 +02:00
|
|
|
"winapi-util",
|
2018-07-26 02:25:12 +02:00
|
|
|
]
|
|
|
|
|
2020-01-29 01:13:48 +01: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 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2020-01-29 01:13:48 +01:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "test"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
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 17:29:08 +02:00
|
|
|
"core",
|
2019-08-15 02:45:09 +02: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 17:29:08 +02:00
|
|
|
"libc",
|
|
|
|
"panic_abort",
|
|
|
|
"panic_unwind",
|
2019-08-15 02:45:09 +02: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 17:29:08 +02:00
|
|
|
"std",
|
2019-04-07 07:48:59 +02:00
|
|
|
"term 0.0.0",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2019-11-23 17:27:36 +01: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 17:21:44 +02:00
|
|
|
"term 0.6.1",
|
2019-11-23 17:27:36 +01:00
|
|
|
]
|
|
|
|
|
2017-06-27 19:33:32 +02:00
|
|
|
[[package]]
|
|
|
|
name = "textwrap"
|
2019-09-08 10:28:11 +02:00
|
|
|
version = "0.11.0"
|
2017-06-27 19:33:32 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-09-08 10:28:11 +02:00
|
|
|
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
|
2017-06-27 19:33:32 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"unicode-width",
|
2017-06-27 19:33:32 +02:00
|
|
|
]
|
|
|
|
|
2019-11-26 12:06:30 +01:00
|
|
|
[[package]]
|
|
|
|
name = "thiserror"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.20"
|
2019-11-26 12:06:30 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "7dfdd070ccd8ccb78f4ad66bf1982dc37f620ef696c6b5028fe2ed83dd3d0d08"
|
2019-11-26 12:06:30 +01:00
|
|
|
dependencies = [
|
|
|
|
"thiserror-impl",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "thiserror-impl"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "1.0.20"
|
2019-11-26 12:06:30 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "bd80fc12f73063ac132ac92aceea36734f04a1d93c1240c6944e23a3b8841793"
|
2019-11-26 12:06:30 +01:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2019-11-26 12:06:30 +01:00
|
|
|
]
|
|
|
|
|
2020-02-12 15:47:31 +01: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 06:00:42 +02:00
|
|
|
"lazy_static",
|
2020-02-12 15:47:31 +01:00
|
|
|
]
|
|
|
|
|
2016-09-02 10:55:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tidy"
|
|
|
|
version = "0.1.0"
|
2018-02-23 02:52:56 +01:00
|
|
|
dependencies = [
|
2020-08-21 10:24:58 +02:00
|
|
|
"cargo_metadata 0.11.1",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"regex",
|
|
|
|
"walkdir",
|
2018-02-23 02:52:56 +01:00
|
|
|
]
|
2016-09-02 10:55:29 +02:00
|
|
|
|
2020-08-12 01:49:39 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tier-check"
|
|
|
|
version = "0.1.0"
|
|
|
|
|
2018-01-25 05:01:42 +01:00
|
|
|
[[package]]
|
|
|
|
name = "time"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.43"
|
2018-01-25 05:01:42 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
|
2018-01-25 05:01:42 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-01-25 05:01:42 +01:00
|
|
|
]
|
|
|
|
|
2020-08-17 17:21:44 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tinyvec"
|
2020-08-18 01:07:09 +02:00
|
|
|
version = "0.3.4"
|
2020-08-17 17:21:44 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-18 01:07:09 +02:00
|
|
|
checksum = "238ce071d267c5710f9d31451efec16c5ee22de34df17cc05e56cbc92e967117"
|
2020-08-17 17:21:44 +02:00
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "tokio"
|
2019-12-04 18:40:16 +01:00
|
|
|
version = "0.1.22"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-12-04 18:40:16 +01:00
|
|
|
checksum = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"mio",
|
|
|
|
"num_cpus",
|
|
|
|
"tokio-codec",
|
|
|
|
"tokio-current-thread",
|
|
|
|
"tokio-executor",
|
|
|
|
"tokio-fs",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
2019-12-04 18:40:16 +01:00
|
|
|
"tokio-sync",
|
2019-08-15 02:45:09 +02:00
|
|
|
"tokio-tcp",
|
|
|
|
"tokio-threadpool",
|
|
|
|
"tokio-timer",
|
|
|
|
"tokio-udp",
|
|
|
|
"tokio-uds",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-codec"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.2"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"tokio-io",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-current-thread"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.7"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"futures",
|
|
|
|
"tokio-executor",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-executor"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.10"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"futures",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-fs"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.7"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "297a1206e0ca6302a0eed35b700d292b275256f596e2f3fea7729d5e629b6ff4"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"futures",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-threadpool",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-io"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.13"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"log",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02: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 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-process"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.2.5"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "382d90f43fa31caebe5d3bc6cfd854963394fff3b8cb59d5146607aaae7e7e43"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-queue 0.1.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"futures",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2019-12-04 18:40:16 +01:00
|
|
|
"log",
|
2019-08-15 02:45:09 +02:00
|
|
|
"mio",
|
|
|
|
"mio-named-pipes",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
|
|
|
"tokio-signal",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-reactor"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.12"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"futures",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"mio",
|
|
|
|
"num_cpus",
|
2020-02-12 15:47:31 +01:00
|
|
|
"parking_lot 0.9.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"slab",
|
|
|
|
"tokio-executor",
|
|
|
|
"tokio-io",
|
2019-12-04 18:40:16 +01:00
|
|
|
"tokio-sync",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2019-09-08 10:28:11 +02: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 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-signal"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.2.9"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "d0c34c6e548f101053321cba3da7cbb87a610b85555884c41b07da2eb91aff12"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"futures",
|
|
|
|
"libc",
|
|
|
|
"mio",
|
|
|
|
"mio-uds",
|
2020-08-17 17:21:44 +02:00
|
|
|
"signal-hook-registry",
|
2019-08-15 02:45:09 +02:00
|
|
|
"tokio-executor",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2019-12-04 18:40:16 +01:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-sync"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.8"
|
2019-12-04 18:40:16 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee"
|
2019-12-04 18:40:16 +01:00
|
|
|
dependencies = [
|
|
|
|
"fnv",
|
|
|
|
"futures",
|
|
|
|
]
|
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-tcp"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.4"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"iovec",
|
|
|
|
"mio",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-threadpool"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.18"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-12-04 18:40:16 +01:00
|
|
|
"crossbeam-deque",
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-queue 0.2.3",
|
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"futures",
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-08-15 02:45:09 +02:00
|
|
|
"log",
|
|
|
|
"num_cpus",
|
2019-12-04 18:40:16 +01:00
|
|
|
"slab",
|
2019-08-15 02:45:09 +02:00
|
|
|
"tokio-executor",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-timer"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.2.13"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"crossbeam-utils 0.7.2",
|
2019-08-15 02:45:09 +02:00
|
|
|
"futures",
|
|
|
|
"slab",
|
|
|
|
"tokio-executor",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-udp"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.6"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"log",
|
|
|
|
"mio",
|
|
|
|
"tokio-codec",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-uds"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.2.7"
|
2019-01-21 16:32:43 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "ab57a4ac4111c8c9dbcf70779f6fc8bc35ae4b2454809febac840ad19bd7e4e0"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bytes",
|
|
|
|
"futures",
|
|
|
|
"iovec",
|
|
|
|
"libc",
|
|
|
|
"log",
|
|
|
|
"mio",
|
|
|
|
"mio-uds",
|
|
|
|
"tokio-codec",
|
|
|
|
"tokio-io",
|
|
|
|
"tokio-reactor",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2019-03-29 04:13:13 +01:00
|
|
|
[[package]]
|
|
|
|
name = "toml"
|
2020-10-15 00:16:47 +02:00
|
|
|
version = "0.5.7"
|
2019-03-29 04:13:13 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-15 00:16:47 +02:00
|
|
|
checksum = "75cf45bb0bef80604d001caaec0d09da99611b3c0fd39d3080468875cdb65645"
|
2019-03-29 04:13:13 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
2019-03-29 04:13:13 +01:00
|
|
|
]
|
|
|
|
|
2020-05-27 07:05:09 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tracing"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.19"
|
2020-05-27 07:05:09 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "6d79ca061b032d6ce30c660fded31189ca0b9922bf483cd70759f13a2d86786c"
|
2020-05-27 07:05:09 +02:00
|
|
|
dependencies = [
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2020-05-27 07:05:09 +02:00
|
|
|
"tracing-attributes",
|
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-attributes"
|
2020-09-01 20:38:56 +02:00
|
|
|
version = "0.1.11"
|
2020-05-27 07:05:09 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-09-01 20:38:56 +02:00
|
|
|
checksum = "80e0ccfc3378da0cce270c946b676a376943f5cd16aeba64568e7939806f4ada"
|
2020-05-27 07:05:09 +02:00
|
|
|
dependencies = [
|
2020-08-01 16:11:15 +02:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"syn",
|
2020-05-27 07:05:09 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-core"
|
2020-10-08 00:45:59 +02:00
|
|
|
version = "0.1.17"
|
2020-05-27 07:05:09 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-08 00:45:59 +02:00
|
|
|
checksum = "f50de3927f93d202783f4513cda820ab47ef17f624b03c096e86ef00c67e6b5f"
|
2020-05-27 07:05:09 +02:00
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
|
|
|
]
|
|
|
|
|
2020-08-05 00:35:37 +02: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"
|
2020-10-04 02:45:12 +02:00
|
|
|
version = "0.1.2"
|
2020-08-05 00:35:37 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-04 02:45:12 +02:00
|
|
|
checksum = "fb65ea441fbb84f9f6748fd496cf7f63ec9af5bca94dd86456978d055e8eb28b"
|
2020-08-05 00:35:37 +02:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
2020-07-24 20:42:00 +02:00
|
|
|
[[package]]
|
|
|
|
name = "tracing-subscriber"
|
2020-10-08 00:45:59 +02:00
|
|
|
version = "0.2.13"
|
2020-07-24 20:42:00 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-10-08 00:45:59 +02:00
|
|
|
checksum = "4ef0a5e15477aa303afbfac3a44cba9b6430fdaad52423b1e6c0dbbe28c3eedd"
|
2020-07-24 20:42:00 +02:00
|
|
|
dependencies = [
|
|
|
|
"ansi_term 0.12.1",
|
2020-08-05 00:35:37 +02:00
|
|
|
"chrono",
|
2020-07-24 20:42:00 +02:00
|
|
|
"lazy_static",
|
|
|
|
"matchers",
|
2020-12-09 20:48:08 +01:00
|
|
|
"parking_lot 0.11.0",
|
2020-07-24 20:42:00 +02:00
|
|
|
"regex",
|
2020-08-05 00:35:37 +02:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-07-24 20:42:00 +02:00
|
|
|
"sharded-slab",
|
2020-08-17 17:21:44 +02:00
|
|
|
"smallvec 1.4.2",
|
|
|
|
"thread_local",
|
2020-10-08 00:45:59 +02:00
|
|
|
"tracing",
|
2020-07-24 20:42:00 +02:00
|
|
|
"tracing-core",
|
2020-08-05 00:35:37 +02:00
|
|
|
"tracing-log",
|
|
|
|
"tracing-serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-tree"
|
2020-08-04 13:48:05 +02:00
|
|
|
version = "0.1.6"
|
2020-08-05 00:35:37 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-04 13:48:05 +02:00
|
|
|
checksum = "43aac8afb493b08e1e1904956f7407c1e671b9c83b26a17e1bd83d6a3520e350"
|
2020-08-05 00:35:37 +02:00
|
|
|
dependencies = [
|
|
|
|
"ansi_term 0.12.1",
|
|
|
|
"atty",
|
|
|
|
"chrono",
|
|
|
|
"termcolor",
|
|
|
|
"tracing",
|
|
|
|
"tracing-subscriber",
|
2020-07-24 20:42:00 +02:00
|
|
|
]
|
|
|
|
|
2018-12-03 02:33:20 +01:00
|
|
|
[[package]]
|
|
|
|
name = "typenum"
|
2020-05-19 00:41:57 +02:00
|
|
|
version = "1.12.0"
|
2018-12-03 02:33:20 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-05-19 00:41:57 +02:00
|
|
|
checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33"
|
2018-12-03 02:33:20 +01:00
|
|
|
|
2020-01-13 22:40:19 +01:00
|
|
|
[[package]]
|
|
|
|
name = "ucd-parse"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.8"
|
2020-01-13 22:40:19 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "5269f8d35df6b8b60758343a6d742ecf09e4bca13faee32af5503aebd1e11b7c"
|
2020-01-13 22:40:19 +01:00
|
|
|
dependencies = [
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2020-01-13 22:40:19 +01:00
|
|
|
"regex",
|
|
|
|
]
|
|
|
|
|
2019-01-19 03:39:37 +01:00
|
|
|
[[package]]
|
|
|
|
name = "ucd-trie"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.3"
|
2019-01-19 03:39:37 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c"
|
2019-01-19 03:39:37 +01:00
|
|
|
|
2019-04-20 19:03:59 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unicase"
|
2020-02-13 18:39:40 +01:00
|
|
|
version = "2.6.0"
|
2019-04-20 19:03:59 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-02-13 18:39:40 +01:00
|
|
|
checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6"
|
2019-04-20 19:03:59 +02:00
|
|
|
dependencies = [
|
2020-02-13 18:39:40 +01:00
|
|
|
"version_check",
|
2019-04-20 19:03:59 +02:00
|
|
|
]
|
|
|
|
|
2020-01-13 22:40:19 +01:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-bdd"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"ucd-parse",
|
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-bidi"
|
2017-06-27 19:33:32 +02:00
|
|
|
version = "0.3.4"
|
2017-02-20 01:20:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5"
|
2017-02-20 01:20:57 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"matches",
|
2016-09-02 10:55:29 +02:00
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-normalization"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.13"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "6fb19cf769fa8c6a80a162df694621ebeb4dafb606470b2b2fce0be40a98a977"
|
2019-11-23 15:33:40 +01:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"tinyvec",
|
2019-11-23 15:33:40 +01:00
|
|
|
]
|
2017-04-30 01:11:58 +02:00
|
|
|
|
2020-01-02 13:02:22 +01:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-script"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.5.2"
|
2020-01-02 13:02:22 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "79bf4d5fc96546fdb73f9827097810bbda93b11a6770ff3a54e1f445d4135787"
|
2020-01-02 13:02:22 +01:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "unicode-security"
|
2020-06-23 13:45:13 +02:00
|
|
|
version = "0.0.5"
|
2020-01-02 13:02:22 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-06-23 13:45:13 +02:00
|
|
|
checksum = "5d87c28edc5b263377e448d6cdcb935c06b95413d8013ba6fae470558ccab18f"
|
2020-01-02 13:02:22 +01:00
|
|
|
dependencies = [
|
2020-04-25 03:38:31 +02:00
|
|
|
"unicode-normalization",
|
2020-01-02 13:02:22 +01:00
|
|
|
"unicode-script",
|
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-segmentation"
|
2019-11-12 19:14:48 +01:00
|
|
|
version = "1.6.0"
|
2017-02-08 00:13:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-11-12 19:14:48 +01:00
|
|
|
checksum = "e83e153d1053cbb5a118eeff7fd5be06ed99153f00dbcd8ae310c5fb2b22edc0"
|
2017-02-08 00:13:57 +01:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "unicode-width"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.8"
|
2017-02-08 00:13:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02: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 17:29:08 +02:00
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
"rustc-std-workspace-std",
|
|
|
|
]
|
2017-02-08 00:13:57 +01:00
|
|
|
|
2019-07-21 13:50:39 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-xid"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.2.1"
|
2019-07-21 13:50:39 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
|
2019-07-21 13:50:39 +02:00
|
|
|
|
2019-02-18 10:32:58 +01:00
|
|
|
[[package]]
|
|
|
|
name = "unicode_categories"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e"
|
2019-02-18 10:32:58 +01:00
|
|
|
|
2017-06-12 21:35:47 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unstable-book-gen"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"num-traits",
|
|
|
|
"tidy",
|
2017-06-12 21:35:47 +02:00
|
|
|
]
|
|
|
|
|
2017-09-25 06:13:29 +02:00
|
|
|
[[package]]
|
|
|
|
name = "unwind"
|
|
|
|
version = "0.0.0"
|
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"cc",
|
2020-10-11 19:51:07 +02:00
|
|
|
"cfg-if 0.1.10",
|
2019-08-15 02:45:09 +02:00
|
|
|
"compiler_builtins",
|
|
|
|
"core",
|
|
|
|
"libc",
|
2017-09-25 06:13:29 +02:00
|
|
|
]
|
|
|
|
|
2017-04-30 01:11:58 +02:00
|
|
|
[[package]]
|
|
|
|
name = "url"
|
2018-12-08 12:06:54 +01:00
|
|
|
version = "1.7.2"
|
2017-04-30 01:11:58 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a"
|
2017-04-30 01:11:58 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"idna 0.1.5",
|
|
|
|
"matches",
|
|
|
|
"percent-encoding 1.0.1",
|
2017-04-30 01:11:58 +02:00
|
|
|
]
|
|
|
|
|
2019-08-01 02:44:39 +02:00
|
|
|
[[package]]
|
|
|
|
name = "url"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "2.1.1"
|
2019-08-01 02:44:39 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "829d4a8476c35c9bf0bbce5a3b23f4106f79728039b726d292bb93bc106787cb"
|
2019-08-01 02:44:39 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"idna 0.2.0",
|
|
|
|
"matches",
|
2019-11-12 19:14:48 +01:00
|
|
|
"percent-encoding 2.1.0",
|
2019-08-15 02:45:09 +02:00
|
|
|
"serde",
|
2019-08-01 02:44:39 +02:00
|
|
|
]
|
|
|
|
|
2018-04-03 16:32:04 +02:00
|
|
|
[[package]]
|
|
|
|
name = "utf-8"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.7.5"
|
2018-04-03 16:32:04 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "05e42f7c18b8f902290b009cde6d651262f956c98bc51bca4cd1d511c9cd85c7"
|
2018-04-03 16:32:04 +02:00
|
|
|
|
2019-05-23 22:27:49 +02:00
|
|
|
[[package]]
|
|
|
|
name = "utf8parse"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "8772a4ccbb4e89959023bc5b7cb8623a795caa7092d99f3aa9501b9484d4557d"
|
2019-05-23 22:27:49 +02:00
|
|
|
|
2017-06-15 04:33:06 +02:00
|
|
|
[[package]]
|
|
|
|
name = "vcpkg"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.2.10"
|
2017-06-15 04:33:06 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "6454029bf181f092ad1b853286f23e2c507d8e8194d01d92da4a55c274a5508c"
|
2017-06-15 04:33:06 +02:00
|
|
|
|
2017-02-08 00:13:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "vec_map"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.8.2"
|
2017-02-08 00:13:57 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
|
2017-02-08 00:13:57 +01:00
|
|
|
|
2018-09-17 09:20:03 +02:00
|
|
|
[[package]]
|
|
|
|
name = "vergen"
|
2020-06-01 20:17:20 +02:00
|
|
|
version = "3.1.0"
|
2018-09-17 09:20:03 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-06-01 20:17:20 +02:00
|
|
|
checksum = "4ce50d8996df1f85af15f2cd8d33daae6e479575123ef4314a51a70a230739cb"
|
2018-09-17 09:20:03 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"bitflags",
|
|
|
|
"chrono",
|
2018-09-17 09:20:03 +02:00
|
|
|
]
|
|
|
|
|
2019-11-25 17:14:07 +01:00
|
|
|
[[package]]
|
|
|
|
name = "version_check"
|
2020-08-18 02:09:36 +02:00
|
|
|
version = "0.9.1"
|
2019-11-25 17:14:07 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-18 02:09:36 +02:00
|
|
|
checksum = "078775d0255232fb988e6fccf26ddc9d1ac274299aaedcedce21c6f72cc533ce"
|
2019-11-25 17:14:07 +01:00
|
|
|
|
2019-05-23 22:27:49 +02:00
|
|
|
[[package]]
|
|
|
|
name = "vte"
|
|
|
|
version = "0.3.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "4f42f536e22f7fcbb407639765c8fd78707a33109301f834a594758bedd6e8cf"
|
2019-05-23 22:27:49 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"utf8parse",
|
2019-05-23 22:27:49 +02:00
|
|
|
]
|
|
|
|
|
2018-01-08 22:56:22 +01:00
|
|
|
[[package]]
|
|
|
|
name = "walkdir"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "2.3.1"
|
2018-01-08 22:56:22 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "777182bc735b6424e1a57516d35ed72cb8019d85c8c9bf536dccb3445c1a2f7d"
|
2018-01-08 22:56:22 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"same-file",
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2019-08-15 02:45:09 +02:00
|
|
|
"winapi-util",
|
2018-01-08 22:56:22 +01:00
|
|
|
]
|
|
|
|
|
2019-11-25 18:27:25 +01: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 19:13:15 +02:00
|
|
|
dependencies = [
|
|
|
|
"compiler_builtins",
|
|
|
|
"rustc-std-workspace-alloc",
|
|
|
|
"rustc-std-workspace-core",
|
|
|
|
]
|
|
|
|
|
2017-02-08 00:13:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "winapi"
|
|
|
|
version = "0.2.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
|
2017-02-08 00:13:57 +01:00
|
|
|
|
2018-01-08 22:56:22 +01:00
|
|
|
[[package]]
|
|
|
|
name = "winapi"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.3.9"
|
2018-01-08 22:56:22 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
2018-01-08 22:56:22 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"winapi-i686-pc-windows-gnu",
|
|
|
|
"winapi-x86_64-pc-windows-gnu",
|
2018-01-08 22:56:22 +01:00
|
|
|
]
|
|
|
|
|
2017-02-08 00:13:57 +01:00
|
|
|
[[package]]
|
|
|
|
name = "winapi-build"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
|
2017-02-08 00:13:57 +01:00
|
|
|
|
2018-01-08 22:56:22 +01: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 02:45:09 +02:00
|
|
|
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
2018-01-08 22:56:22 +01:00
|
|
|
|
2018-08-21 19:23:47 +02:00
|
|
|
[[package]]
|
|
|
|
name = "winapi-util"
|
2020-07-29 20:02:05 +02:00
|
|
|
version = "0.1.5"
|
2018-08-21 19:23:47 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-07-29 20:02:05 +02:00
|
|
|
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
2018-08-21 19:23:47 +02:00
|
|
|
dependencies = [
|
2020-08-17 17:21:44 +02:00
|
|
|
"winapi 0.3.9",
|
2018-08-21 19:23:47 +02:00
|
|
|
]
|
|
|
|
|
2018-01-08 22:56:22 +01: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 02:45:09 +02:00
|
|
|
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
2018-01-08 22:56:22 +01:00
|
|
|
|
2019-01-21 16:32:43 +01:00
|
|
|
[[package]]
|
|
|
|
name = "ws2_32-sys"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"
|
2019-01-21 16:32:43 +01:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"winapi 0.2.8",
|
|
|
|
"winapi-build",
|
2019-01-21 16:32:43 +01:00
|
|
|
]
|
|
|
|
|
2017-05-09 00:01:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "xattr"
|
2018-07-17 18:04:22 +02:00
|
|
|
version = "0.2.2"
|
2017-05-09 00:01:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "244c3741f4240ef46274860397c7c74e50eb23624996930e484c16679633a54c"
|
2017-05-09 00:01:13 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"libc",
|
2017-05-09 00:01:13 +02:00
|
|
|
]
|
|
|
|
|
2020-08-01 16:11:15 +02: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-09 00:01:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "xz2"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.1.6"
|
2017-05-09 00:01:13 +02:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "c179869f34fc7c01830d3ce7ea2086bc3a07e0d35289b667d0a8bf910258926c"
|
2017-05-09 00:01:13 +02:00
|
|
|
dependencies = [
|
2019-08-15 02:45:09 +02:00
|
|
|
"lzma-sys",
|
2017-05-09 00:01:13 +02:00
|
|
|
]
|
|
|
|
|
2019-11-26 12:06:30 +01:00
|
|
|
[[package]]
|
|
|
|
name = "yaml-merge-keys"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.1"
|
2019-11-26 12:06:30 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "fd236a7dc9bb598f349fe4a8754f49181fee50284daa15cd1ba652d722280004"
|
2019-11-26 12:06:30 +01:00
|
|
|
dependencies = [
|
2020-05-26 06:00:42 +02:00
|
|
|
"lazy_static",
|
2019-11-26 12:06:30 +01:00
|
|
|
"thiserror",
|
2020-08-17 17:21:44 +02:00
|
|
|
"yaml-rust 0.4.4",
|
2019-11-26 12:06:30 +01:00
|
|
|
]
|
|
|
|
|
2017-05-09 00:01:13 +02:00
|
|
|
[[package]]
|
|
|
|
name = "yaml-rust"
|
|
|
|
version = "0.3.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2019-08-15 02:45:09 +02:00
|
|
|
checksum = "e66366e18dc58b46801afbf2ca7661a9f59cc8c5962c29892b6039b4f86fa992"
|
2019-11-26 12:06:30 +01:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "yaml-rust"
|
2020-08-17 17:21:44 +02:00
|
|
|
version = "0.4.4"
|
2019-11-26 12:06:30 +01:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-08-17 17:21:44 +02:00
|
|
|
checksum = "39f0c922f1a334134dc2f7a8b67dc5d25f0735263feec974345ff706bcf20b0d"
|
2019-11-26 12:06:30 +01:00
|
|
|
dependencies = [
|
|
|
|
"linked-hash-map",
|
|
|
|
]
|