3 ms·
> The standard library depends on external crates? Yes: https://github.com/rust-lang/rust/blob/478cbb42b730ba4739351b72ce2aa928e78e2f81/library/std/Cargo.toml#
by lifthrasiir 4y ago
> The standard library depends on external crates?
Yes: https://github.com/rust-lang/rust/blob/478cbb42b730ba4739351b72ce2aa928e78e2f81/library/std/Cargo.toml#L12C15-L23 https://github.com/rust-lang/rust/blob/478cbb42b730ba4739351...
Of course it is not "some random" crate; all of them is either in the same repository (when `path` is used) or in other repositories under the `rust-lang` organization with well-known contributors. But the latter is conceptually no more special than other repositories, so Cargo works same.
- schemescape 4y agoThanks! I was interpreting the comment to mean code that wasn’t in the standard library repository, which surprised me.
- iudqnolq 4y agoYou interpreted it right. There are dependencies on other repositories in the rust-lang GitHub organization. The optional dependencies for the backtrace feature include libraries outside the rust-lang GitHub org. https://news.ycombinator.com/item?id=35350600 https://news.ycombinator.com/item?id=35350600
- schemescape 4y agoThanks! I did see your helpful comment, but I only replied to the other one :)