Skip to content

Commit

Permalink
updated cargo-near to 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
frol committed Jan 27, 2024
1 parent aba4da0 commit aea0506
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion workspaces/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async-trait = "0.1"
base64 = "0.21"
bs58 = "0.5"
cargo_metadata = { version = "0.18", optional = true }
cargo-near = { version = "0.5.1", default-features = false }
cargo-near = { version = "0.5.2", default-features = false }
chrono = "0.4.19"
fs2 = "0.4"
rand = "0.8.4"
Expand Down
13 changes: 8 additions & 5 deletions workspaces/src/cargo/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::str::FromStr;

use crate::error::ErrorKind;

use cargo_near::commands::build_command::{build, BuildCommand};
Expand All @@ -25,10 +23,15 @@ pub async fn compile_project(project_path: &str) -> crate::Result<Vec<u8>> {
no_abi: true,
out_dir: None,
manifest_path: Some(
cargo_near::types::utf8_path_buf::Utf8PathBufInner::from_str(
&project_path.join("Cargo.toml").to_string_lossy(),
cargo_near::types::utf8_path_buf::Utf8PathBuf::from_path_buf(
project_path.join("Cargo.toml"),
)
.map_err(|e| ErrorKind::Io.custom(e))?,
.map_err(|error_path| {
ErrorKind::Io.custom(format!(
"Unable to construct UTF-8 path from: {}",
error_path.display()
))
})?,
),
};

Expand Down

0 comments on commit aea0506

Please sign in to comment.