Skip to content
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

Revert "Explicitly build the rlib" #323

Merged
merged 1 commit into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions example-project/tests/rust.rs

This file was deleted.

4 changes: 1 addition & 3 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn patch_target(
let manifest = pkg.manifest_mut();
let targets = manifest.targets_mut();

let mut kinds: Vec<_> = libkinds
let kinds: Vec<_> = libkinds
.iter()
.map(|&kind| match kind {
"staticlib" => CrateType::Staticlib,
Expand All @@ -120,8 +120,6 @@ fn patch_target(
})
.collect();

kinds.push(CrateType::Lib);

for target in targets.iter_mut() {
if target.is_lib() {
target.set_kind(TargetKind::Lib(kinds.clone()));
Expand Down
Loading