From b851fb2add832364968a4e23068b9f532d0ce80c Mon Sep 17 00:00:00 2001 From: akhercha Date: Tue, 10 Dec 2024 18:30:33 +0100 Subject: [PATCH] dev(bump_rust): Bump rust to 1.83 --- rust/Cargo.lock | 4 ++-- rust/Cargo.toml | 6 +++--- rust/build.rs | 9 +++++++-- rust/rust-toolchain.toml | 2 +- scripts/package.json | 2 +- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 788055c..1d559c0 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "Inflector" @@ -1985,7 +1985,7 @@ dependencies = [ [[package]] name = "hyperlane-starknet" -version = "0.0.2" +version = "0.0.3" dependencies = [ "anyhow", "bytes", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index d0f7560..1edd4a0 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "hyperlane-starknet" -version = "0.0.2" +version = "0.0.3" authors = [ "byeongsu-hong ", "Eric ", "Steve ", + "Pragma ", ] edition = "2021" license = "Apache-2.0" @@ -34,8 +35,7 @@ crate-type = ["cdylib", "rlib"] [dependencies] starknet = "0.10.0" -[dev_dependencies] - +[dev-dependencies] # starknet cainome = { git = "https://github.com/cartridge-gg/cainome", tag = "v0.2.9", features = [ "abigen-rs", diff --git a/rust/build.rs b/rust/build.rs index 1083880..967b837 100644 --- a/rust/build.rs +++ b/rust/build.rs @@ -1,5 +1,10 @@ -use std::{collections::HashMap, env::current_dir, path::{PathBuf, Path}, fs}; use ethers::prelude::Abigen; +use std::{ + collections::HashMap, + env::current_dir, + fs, + path::{Path, PathBuf}, +}; fn check_path_exists(path: &Path) { if !path.exists() { @@ -55,7 +60,7 @@ fn generate_strk_bind(name: &str, abi_file: &str, bind_out: PathBuf) { abigen .generate() .expect("Fail to generate bindings") - .write_to_file(&bind_out.to_str().expect("valid utf8 path")) + .write_to_file(bind_out.to_str().expect("valid utf8 path")) .expect("Fail to write bindings to file"); } diff --git a/rust/rust-toolchain.toml b/rust/rust-toolchain.toml index 6c7c55e..02a82bf 100644 --- a/rust/rust-toolchain.toml +++ b/rust/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "1.78.0" +channel = "1.83.0" components = ["rustfmt", "clippy", "rust-analyzer"] targets = ["wasm32-unknown-unknown"] profile = "minimal" diff --git a/scripts/package.json b/scripts/package.json index 01314ac..f33951f 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -9,7 +9,7 @@ }, "keywords": [], "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "@types/node": "^22.0.2", "commander": "^12.1.0",