You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hanna-kruppe opened this issue
May 2, 2017
· 4 comments
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
The compiler and std crates in-tree have a few attributes in their source code (lib.rs) that are conventionally set in the Cargo.toml file. I'd say this just wasn't cleaned up when rustbuild became the only build system, and should be cleaned up.
Possibly incomplete list of such attributes:
#![crate_name]
#![crate_type]
Note that some crates have different crate types in between Cargo.toml than in lib.rs (e.g., compiler crates seem to have only dylib in Cargo.toml, dylib and rlib in the source code). I'm not sure which one takes precedence, but my build directory seems to contain only dylibs and not rlibs for those crates, so I assume the Cargo.toml wins.
The text was updated successfully, but these errors were encountered:
eddyb
added
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
labels
May 2, 2017
Sounds good to me! I think that because Cargo unconditionally passes --crate-type and --crate-name that all the annotations in the source can just be deleted, they should all already be in as much sync as they need to be.
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Uh oh!
There was an error while loading. Please reload this page.
The compiler and std crates in-tree have a few attributes in their source code (lib.rs) that are conventionally set in the Cargo.toml file. I'd say this just wasn't cleaned up when rustbuild became the only build system, and should be cleaned up.
Possibly incomplete list of such attributes:
#![crate_name]
#![crate_type]
Note that some crates have different crate types in between Cargo.toml than in lib.rs (e.g., compiler crates seem to have only dylib in Cargo.toml, dylib and rlib in the source code). I'm not sure which one takes precedence, but my build directory seems to contain only dylibs and not rlibs for those crates, so I assume the Cargo.toml wins.
cc @alexcrichton -- is the above correct?
The text was updated successfully, but these errors were encountered: