Skip to content

Commit

Permalink
0.2.26 (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Jan 14, 2025
1 parent 3a40f54 commit 87b156f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 28 deletions.
18 changes: 6 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repository = "https://github.com/leptos-rs/cargo-leptos"
description = "Build tool for Leptos."
categories = ["development-tools", "wasm", "web-programming"]
keywords = ["leptos"]
version = "0.2.25"
version = "0.2.26"
edition = "2021"
rust-version = "1.71"
authors = ["Henrik Akesson", "Greg Johnston", "Ben Wishovich"]
Expand Down Expand Up @@ -94,7 +94,6 @@ base64ct = { version = "1.6.0", features = ["alloc"] }
swc = "9.0"
swc_common = "5.0"
shlex = "1.3.0"
current_platform = "0.2.0"

[dev-dependencies]
insta = { version = "1.40.0", features = ["yaml"] }
Expand Down
17 changes: 3 additions & 14 deletions src/config/bin_package.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use camino::Utf8PathBuf;
use cargo_metadata::{Metadata, Target};
use current_platform::CURRENT_PLATFORM;

use super::{project::ProjectDefinition, Profile, ProjectConfig};
use crate::{
config::Opts,
Expand Down Expand Up @@ -114,20 +114,9 @@ impl BinPackage {
} else {
&name
};
let mut test_file = file.join(profile.to_string())
file.join(profile.to_string())
.join(name)
.with_extension(file_ext);
// Check if the file exists and if not, try to prepend target_triple
// right now it mail fail to find target/debug/name
// but the build is successful and in target/"target_triple"/debug/name
// https://github.com/leptos-rs/cargo-leptos/issues/358
if !test_file.exists(){
test_file = Utf8PathBuf::from(format!(
"target/{}/{}/{}",
CURRENT_PLATFORM, profile.to_string(),test_file.file_name().unwrap()
));
}
test_file
.with_extension(file_ext)
};

let mut src_paths = metadata.src_path_dependencies(&package.id);
Expand Down

0 comments on commit 87b156f

Please sign in to comment.