Skip to content

Commit

Permalink
Merge pull request #52 from Fraser999/version-bump-1.5.1
Browse files Browse the repository at this point in the history
Version bump to 1.5.1
  • Loading branch information
Fraser999 authored Mar 8, 2023
2 parents a810690 + 28cc43c commit e421e81
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-casper-client-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: audit
args: --ignore RUSTSEC-2020-0071 --ignore RUSTSEC-2020-0159
args: --ignore RUSTSEC-2020-0071

- name: Clippy
uses: actions-rs/cargo@v1
Expand Down
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ All notable changes to this project will be documented in this file. The format



## [1.4.5] - 2022-05-13
## [1.5.1] - 2023-03-08

### Changed
* Update dependencies.



## [1.5.0] - 2022-05-13

### Changed
* Update dependencies.
Expand Down Expand Up @@ -153,7 +160,9 @@ No changes.


[Keep a Changelog]: https://keepachangelog.com/en/1.0.0
[unreleased]: https://github.com/casper-ecosystem/casper-client-rs/compare/v1.4.4...main
[unreleased]: https://github.com/casper-ecosystem/casper-client-rs/compare/v1.5.1...main
[1.5.1]: https://github.com/casper-ecosystem/casper-client-rs/compare/v1.5.0...v1.5.1
[1.5.0]: https://github.com/casper-ecosystem/casper-client-rs/compare/v1.4.4...v1.5.0
[1.4.4]: https://github.com/casper-ecosystem/casper-client-rs/compare/v1.4.3...v1.4.4
[1.4.3]: https://github.com/casper-ecosystem/casper-client-rs/compare/v1.4.2...v1.4.3
[1.4.2]: https://github.com/casper-ecosystem/casper-client-rs/compare/v1.4.1...v1.4.2
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "casper-client"
version = "1.5.0" # when updating, also update 'html_root_url' in lib.rs
version = "1.5.1" # when updating, also update 'html_root_url' in lib.rs
authors = ["Marc Brinkmann <[email protected]>", "Fraser Hutchison <[email protected]>"]
edition = "2018"
description = "A client library and binary for interacting with the Casper network"
Expand All @@ -24,8 +24,8 @@ doc = false
async-trait = "0.1.51"
base16 = "0.2.1"
base64 = "0.13.0"
casper-execution-engine = "2.0.0"
casper-node = "1.4.6"
casper-execution-engine = "3.0.0"
casper-node = "1.4.13"
casper-hashing = "1.4.3"
casper-types = "1.5.0"
clap = "2"
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() {
.include_item("casper_session_params_t")
.generate()
.expect("Unable to generate bindings")
.write_to_file(&output_file);
.write_to_file(output_file);
}

let mut config = Config::default();
Expand Down
2 changes: 1 addition & 1 deletion lib/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl<'a> OutputKind<'a> {
if path.exists() && !overwrite_if_exists {
return Err(Error::FileAlreadyExists(path));
}
let file = File::create(&tmp_path).map_err(|error| Error::IoError {
let file = File::create(tmp_path).map_err(|error| Error::IoError {
context: format!("failed to create {}", tmp_path.display()),
error,
})?;
Expand Down
6 changes: 3 additions & 3 deletions lib/keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn generate_files(output_dir: &str, algorithm: &str, force: bool) -> Result<
error: "empty output_dir provided, must be a valid path".to_string(),
});
}
let _ = fs::create_dir_all(output_dir).map_err(move |error| Error::IoError {
fs::create_dir_all(output_dir).map_err(move |error| Error::IoError {
context: format!("unable to create directory at '{}'", output_dir),
error,
})?;
Expand Down Expand Up @@ -79,15 +79,15 @@ pub fn generate_files(output_dir: &str, algorithm: &str, force: bool) -> Result<

let secret_key_path = output_dir.join(SECRET_KEY_PEM);
secret_key
.to_file(&secret_key_path)
.to_file(secret_key_path)
.map_err(|error| Error::CryptoError {
context: "secret_key",
error,
})?;

let public_key_path = output_dir.join(PUBLIC_KEY_PEM);
public_key
.to_file(&public_key_path)
.to_file(public_key_path)
.map_err(|error| Error::CryptoError {
context: "public_key",
error,
Expand Down
2 changes: 1 addition & 1 deletion lib/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! # Casper node client library
#![doc(
html_root_url = "https://docs.rs/casper-client/1.5.0",
html_root_url = "https://docs.rs/casper-client/1.5.1",
html_favicon_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Favicon_RGB_50px.png",
html_logo_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Symbol_RGB.png",
test(attr(forbid(warnings)))
Expand Down
2 changes: 1 addition & 1 deletion src/deploy/creation_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ pub(super) mod arg_simple {
.required(false)
.multiple(true)
.value_name(ARG_VALUE_NAME)
.help(&*ARG_HELP)
.help(&ARG_HELP)
.display_order(order)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/generate_completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ mod output_file {
.long(ARG_NAME)
.short(ARG_NAME_SHORT)
.required(false)
.default_value(&*ARG_DEFAULT)
.default_value(&ARG_DEFAULT)
.value_name(ARG_VALUE_NAME)
.help(ARG_HELP)
.display_order(DisplayOrder::OutputFile as usize)
Expand Down
4 changes: 2 additions & 2 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ mod make_deploy {
.unwrap_or_else(|err| panic!("Failed to create temp dir with error: {}", err));
let file_path = temp_dir.path().join("test_deploy.json");
let contents = "contents of test file";
fs::write(file_path.clone(), &contents)
fs::write(file_path.clone(), contents)
.unwrap_or_else(|err| panic!("Failed to create temp file with error: {}", err));

assert!(matches!(
Expand Down Expand Up @@ -1189,7 +1189,7 @@ mod make_transfer {
.unwrap_or_else(|err| panic!("Failed to create temp dir with error: {}", err));
let file_path = temp_dir.path().join("test_deploy.json");
let contents = "contents of test file";
fs::write(file_path.clone(), &contents)
fs::write(file_path.clone(), contents)
.unwrap_or_else(|err| panic!("Failed to create temp file with error: {}", err));

assert!(matches!(
Expand Down

0 comments on commit e421e81

Please sign in to comment.