Skip to content

rustc -Z ls libfoo.rlib doesn't show extern linked libraries #14648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lilyball opened this issue Jun 4, 2014 · 2 comments
Closed

rustc -Z ls libfoo.rlib doesn't show extern linked libraries #14648

lilyball opened this issue Jun 4, 2014 · 2 comments
Labels
A-linkage Area: linking into static, shared libraries and binaries

Comments

@lilyball
Copy link
Contributor

lilyball commented Jun 4, 2014

rustc -Z ls doesn't show any extern dynamic libraries in an rlib. These dynamic library dependencies are propagated downstream, so it has to be recorded in the rlib crate metadata, so rustc -Z ls should display it.

@steveklabnik steveklabnik added I-papercut A-linkage Area: linking into static, shared libraries and binaries labels Jan 23, 2015
@steveklabnik
Copy link
Member

Triage:

$ rustc -Z ls libfoo.rlib 
=Crate Attributes (8b002e36556adb1a)=


=External Dependencies=
1 std-02f54746d9e64b60
2 core-da94d05dc02f4bff
3 collections-017a8439ee05e84d
4 rustc_unicode-853eb53992c00855
5 alloc-d50e229e4b9915fd
6 rand-2d90463c4e9e4057
7 libc-62883e20f2c5956f
8 alloc_jemalloc-3aef6b15d23abd25

So I think this is fixed?

@Mark-Simulacrum
Copy link
Member

Closing. It seems that this is fixed, and it's not clear what needs to be done here if it isn't; please reopen with expected output if this isn't actually fixed.

Output from today shows:

=External Dependencies=
1 std-af39a0ab66150b15
2 core-991b9e47dad5986e
3 collections-2721aeefa921778e
4 std_unicode-6956e9fce37b4dde
5 alloc-68714e7194b28b74
6 rand-572a00cd78fcd5ed
7 libc-6c587ae9fc922448
8 unwind-378edf29c5182664
9 compiler_builtins-57701bf587de1eef
10 alloc_jemalloc-39507fd1ee4ad6a3
11 panic_unwind-462a2d6745522fbb

bors added a commit to rust-lang-ci/rust that referenced this issue Jun 5, 2023
…, r=lnicola

Specify `--pre-release` when publishing vsce nightly

According to https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions, when publishing pre-release versions, `--pre-release` must also be passed in the publish step.

Currently the behavior with and without the flag seems to be the same, but since it's documented to be required, don't rely on this staying that way.

This flag was previously removed in rust-lang#13020, so this partially reverts that change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries
Projects
None yet
Development

No branches or pull requests

3 participants