Skip to content

Commit 64cfebc

Browse files
authored
Merge pull request #86 from JamiiDao/1.1.0-release
Release version 1.1.0 of the library
2 parents 68db519 + 9317150 commit 64cfebc

File tree

13 files changed

+134
-21
lines changed

13 files changed

+134
-21
lines changed

.github/workflows/parser.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: Build IDL Parser
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
license-checks:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: EmbarkStudios/cargo-deny-action@v2
18+
with:
19+
arguments: --exclude-unpublished --exclude-dev
20+
21+
typo-check:
22+
name: Spell Check with Typos
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout Actions Repository
26+
uses: actions/checkout@v4
27+
28+
- name: Writes changes in the local checkout
29+
uses: crate-ci/typos@master
30+
with:
31+
write_changes: false
32+
33+
34+
run-formatter:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- name: Run formatter
39+
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check
40+
41+
run-clippy:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
- name: Run cargo clippy and error on warnings for partial-idl-parser
46+
run: cargo clippy -p partial-idl-parser -- -D warnings
47+
48+
build:
49+
name: Build
50+
strategy:
51+
matrix:
52+
include:
53+
- target: aarch64-pc-windows-msvc
54+
os: windows-2022
55+
- target: x86_64-pc-windows-msvc
56+
os: windows-2022
57+
- target: x86_64-unknown-linux-gnu
58+
os: ubuntu-22.04
59+
- target: aarch64-unknown-linux-gnu
60+
os: ubuntu-22.04
61+
- target: x86_64-apple-darwin
62+
os: macos-13
63+
- target: x86_64-apple-darwin
64+
os: macos-latest
65+
- target: aarch64-apple-darwin
66+
os: macos-latest
67+
runs-on: ${{ matrix.os }}
68+
steps:
69+
- name: Checkout repository
70+
uses: actions/checkout@v4
71+
- name: Install cargo-semver-checks
72+
uses: taiki-e/install-action@v2
73+
with:
74+
tool: cargo-semver-checks@0.34
75+
- uses: Swatinem/rust-cache@v2
76+
- name: Install Rust toolchain
77+
uses: dtolnay/rust-toolchain@stable
78+
- name: Install Browser wasm32 target
79+
run: rustup target add wasm32-unknown-unknown
80+
- name: Build
81+
run: cargo build -p partial-idl-parser --all-features --target wasm32-unknown-unknown
82+
83+
test:
84+
name: Test
85+
strategy:
86+
matrix:
87+
include:
88+
- target: aarch64-pc-windows-msvc
89+
os: windows-2022
90+
- target: x86_64-unknown-linux-gnu
91+
os: ubuntu-22.04
92+
- target: x86_64-apple-darwin
93+
os: macos-13
94+
- target: x86_64-pc-windows-msvc
95+
os: windows-2022
96+
- target: x86_64-apple-darwin
97+
os: macos-13
98+
runs-on: ${{ matrix.os }}
99+
steps:
100+
- name: Checkout repository
101+
uses: actions/checkout@v4
102+
- uses: Swatinem/rust-cache@v2
103+
- name: Install Rust toolchain
104+
uses: dtolnay/rust-toolchain@stable
105+
- name: Install Browser wasm32 target
106+
run: rustup target add wasm32-unknown-unknown
107+
- name: Build
108+
run: cargo build -p partial-idl-parser --all-features --target wasm32-unknown-unknown

.github/workflows/rust.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: Build wallet-adapter
22

33
on:
44
push:
@@ -78,7 +78,7 @@ jobs:
7878
- name: Install Browser wasm32 target
7979
run: rustup target add wasm32-unknown-unknown
8080
- name: Build
81-
run: cargo build --all-features --target wasm32-unknown-unknown
81+
run: cargo build -p wallet-adapter --all-features
8282

8383
test:
8484
name: Test
@@ -105,4 +105,4 @@ jobs:
105105
- name: Install Browser wasm32 target
106106
run: rustup target add wasm32-unknown-unknown
107107
- name: Build
108-
run: cargo build --all-features --target wasm32-unknown-unknown
108+
run: cargo build -p wallet-adapter --all-features

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resolver = "2"
55

66
[workspace.package]
77
authors = ["448-OG <superuser@448.africa>"]
8-
version = "1.0.0"
8+
version = "1.1.0"
99
license = "Apache-2.0 OR MIT"
1010
edition = "2021"
1111
rust-version = "1.84"

crate/.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build]
2+
target = "wasm32-unknown-unknown"
3+
4+
[target.wasm32-unknown-unknown]
5+
rustflags = ["--cfg", "getrandom_backend=\"wasm_js\""]

crate/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ web-sys.workspace = true
2222
thiserror = "2.0.3"
2323
wasm-bindgen-futures.workspace = true
2424
humantime = "2.1.0"
25-
rand_core = { version = "0.6.4", features = ["getrandom"] }
26-
rand_chacha = "0.3.1"
27-
getrandom = { version = "0.2.15", features = ["js"] }
25+
rand_core = { version = "0.9.3", features = ["os_rng",] }
26+
rand_chacha = { version = "0.9.0", features = ["os_rng",] }
27+
getrandom = { version = "0.3.1", features = ["std", "wasm_js"] }
2828
bs58.workspace = true
2929
blake3 = { version = "1.5.1", default-features = false }
3030
log = { workspace = true, optional = true }

crate/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl Utils {
3232
use rand_chacha::ChaCha20Rng;
3333
use rand_core::{RngCore, SeedableRng};
3434

35-
let mut rng = ChaCha20Rng::from_entropy();
35+
let mut rng = ChaCha20Rng::from_os_rng();
3636

3737
let mut buffer = [0u8; 32];
3838

crate/src/wallet_ser_der/signin_standard/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl SigninInput {
155155
use rand_chacha::ChaCha12Rng;
156156
use rand_core::{RngCore, SeedableRng};
157157

158-
let mut rng = ChaCha12Rng::from_entropy();
158+
let mut rng = ChaCha12Rng::from_os_rng();
159159

160160
let mut buffer = [0u8; 32];
161161

templates/dioxus-adapter-anchor/frontend/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "{{project-name}}"
3-
version = "1.0.0"
3+
version = "1.1.0"
44
authors = ["{{authors}}"]
55
edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
99
dioxus = { version = "0.6.2", features = ["router"] }
1010

11-
wallet-adapter = "1.0.0"
11+
wallet-adapter = "1.1.0"
1212
solana-sdk = "2.1.2"
1313
bincode = "1.3.3"
1414
jzon = "0.12.5"

templates/dioxus-adapter/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "{{project-name}}"
3-
version = "1.0.0"
3+
version = "1.1.0"
44
authors = ["{{authors}}"]
55
edition = "2021"
66
license = "MIT OR Apache-2.0"
@@ -10,7 +10,7 @@ publish = false
1010
[dependencies]
1111
dioxus = { version = "0.6.2", features = ["router"] }
1212

13-
wallet-adapter = "1.0.0"
13+
wallet-adapter = "1.1.0"
1414
solana-sdk = "2.1.2"
1515
bincode = "1.3.3"
1616
jzon = "0.12.5"

templates/sycamore-adapter-anchor/frontend/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "{{project-name}}"
33
edition = "2021"
4-
version = "0.2.0"
4+
version = "1.1.0"
55
authors = ["{{authors}}"]
66

77

@@ -18,7 +18,7 @@ qrcodegen = "1.8.0"
1818
serde = { version = "1.0.217", features = ["derive"] }
1919
serde_json = "1.0.138"
2020
solana-sdk = "2.2.1"
21-
wallet-adapter = "1.0.0"
21+
wallet-adapter = "1.1.0"
2222
web-sys = { version = "0.3.76", features = [
2323
"HtmlSelectElement",
2424
"HtmlInputElement",

0 commit comments

Comments
 (0)