Skip to content

Commit d75abc7

Browse files
committed
merge with origin/dev
2 parents 7c7f370 + 817b415 commit d75abc7

File tree

494 files changed

+10923
-4903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

494 files changed

+10923
-4903
lines changed

.cargo/config.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
[env]
2+
# Enables unstable features for specific crates to take advantage of useful
3+
# functionality not yet stabilized. Remove a crate from the list once all
4+
# required features are stabilized.
5+
#
6+
# # Core crates (used in production)
7+
#
8+
# - mm2_state_machine: Depends on `negative_impls` and `auto_traits`.
9+
# - mm2_err_handle: Depends on `negative_impls`, `auto_traits` and `allocator_api`.
10+
#
11+
# # Test crates (not leaked into the binary)
12+
#
13+
# - mocktopus: nightly only dependency.
14+
# - mocktopus_macros: nightly only dependency.
15+
# - docker_tests_main: Depends on `custom_test_frameworks` and `test`.
16+
# - docker_tests_sia_unique: Depends on `custom_test_frameworks` and `test`.
17+
RUSTC_BOOTSTRAP = "mm2_state_machine,mm2_err_handle,mocktopus,mocktopus_macros,docker_tests_main,docker_tests_sia_unique"
18+
219
JEMALLOC_SYS_WITH_MALLOC_CONF = "background_thread:true,narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,metadata_thp:auto"
320

421
[target.'cfg(all())']
5-
rustflags = [ "-Zshare-generics=y", '--cfg=curve25519_dalek_backend="fiat"' ]
22+
rustflags = [ '--cfg=curve25519_dalek_backend="fiat"' ]
623

724
# # Install lld using package manager
825
# [target.x86_64-unknown-linux-gnu]

.github/workflows/dev-build.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
3030
- name: Install toolchain
3131
run: |
32-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
33-
rustup default nightly-2025-01-03
32+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
33+
rustup default 1.85.1
3434
3535
- name: Install build deps
3636
uses: ./.github/actions/deps-install
@@ -92,8 +92,8 @@ jobs:
9292
- uses: actions/checkout@v3
9393
- name: Install toolchain
9494
run: |
95-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
96-
rustup default nightly-2025-01-03
95+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
96+
rustup default 1.85.1
9797
rustup target add x86_64-apple-darwin
9898
9999
- name: Install build deps
@@ -144,8 +144,8 @@ jobs:
144144
- uses: actions/checkout@v3
145145
- name: Install toolchain
146146
run: |
147-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
148-
rustup default nightly-2025-01-03
147+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
148+
rustup default 1.85.1
149149
rustup target add aarch64-apple-darwin
150150
151151
- name: Install build deps
@@ -196,8 +196,8 @@ jobs:
196196
- uses: actions/checkout@v3
197197
- name: Install toolchain
198198
run: |
199-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
200-
rustup default nightly-2025-01-03
199+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
200+
rustup default 1.85.1
201201
202202
- name: Install build deps
203203
uses: ./.github/actions/deps-install
@@ -247,8 +247,8 @@ jobs:
247247
- uses: actions/checkout@v3
248248
- name: Install toolchain
249249
run: |
250-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
251-
rustup default nightly-2025-01-03
250+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
251+
rustup default 1.85.1
252252
rustup target add x86_64-apple-darwin
253253
254254
- name: Install build deps
@@ -314,8 +314,8 @@ jobs:
314314

315315
- name: Install toolchain
316316
run: |
317-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
318-
rustup default nightly-2025-01-03
317+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
318+
rustup default 1.85.1
319319
rustup target add wasm32-unknown-unknown
320320
321321
- name: Install wasm-pack
@@ -365,8 +365,8 @@ jobs:
365365
- uses: actions/checkout@v3
366366
- name: Install toolchain
367367
run: |
368-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
369-
rustup default nightly-2025-01-03
368+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
369+
rustup default 1.85.1
370370
rustup target add aarch64-apple-ios
371371
372372
- name: Install build deps
@@ -427,8 +427,8 @@ jobs:
427427
428428
- name: Install toolchain
429429
run: |
430-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
431-
rustup default nightly-2025-01-03
430+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
431+
rustup default 1.85.1
432432
rustup target add aarch64-linux-android
433433
434434
- name: Install build deps
@@ -494,8 +494,8 @@ jobs:
494494
495495
- name: Install toolchain
496496
run: |
497-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
498-
rustup default nightly-2025-01-03
497+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
498+
rustup default 1.85.1
499499
rustup target add armv7-linux-androideabi
500500
501501
- name: Install build deps

.github/workflows/fmt-and-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818

1919
- name: Install toolchain
2020
run: |
21-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal --component rustfmt,clippy
22-
rustup default nightly-2025-01-03
21+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal --component rustfmt,clippy
22+
rustup default 1.85.1
2323
2424
- name: Install build deps
2525
uses: ./.github/actions/deps-install
@@ -45,8 +45,8 @@ jobs:
4545
- uses: actions/checkout@v3
4646
- name: Install toolchain
4747
run: |
48-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal --component clippy
49-
rustup default nightly-2025-01-03
48+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal --component clippy
49+
rustup default 1.85.1
5050
rustup target add wasm32-unknown-unknown
5151
5252
- name: Install build deps

.github/workflows/release-build.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
3030
- name: Install toolchain
3131
run: |
32-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
33-
rustup default nightly-2025-01-03
32+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
33+
rustup default 1.85.1
3434
3535
- name: Install build deps
3636
uses: ./.github/actions/deps-install
@@ -87,8 +87,8 @@ jobs:
8787
- uses: actions/checkout@v3
8888
- name: Install toolchain
8989
run: |
90-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
91-
rustup default nightly-2025-01-03
90+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
91+
rustup default 1.85.1
9292
9393
- name: Install build deps
9494
uses: ./.github/actions/deps-install
@@ -135,8 +135,8 @@ jobs:
135135
- uses: actions/checkout@v3
136136
- name: Install toolchain
137137
run: |
138-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
139-
rustup default nightly-2025-01-03
138+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
139+
rustup default 1.85.1
140140
rustup target add aarch64-apple-darwin
141141
142142
- name: Install build deps
@@ -184,8 +184,8 @@ jobs:
184184
- uses: actions/checkout@v3
185185
- name: Install toolchain
186186
run: |
187-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
188-
rustup default nightly-2025-01-03
187+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
188+
rustup default 1.85.1
189189
190190
- name: Install build deps
191191
uses: ./.github/actions/deps-install
@@ -232,8 +232,8 @@ jobs:
232232
- uses: actions/checkout@v3
233233
- name: Install toolchain
234234
run: |
235-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
236-
rustup default nightly-2025-01-03
235+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
236+
rustup default 1.85.1
237237
rustup target add x86_64-apple-darwin
238238
239239
- name: Install build deps
@@ -296,8 +296,8 @@ jobs:
296296

297297
- name: Install toolchain
298298
run: |
299-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
300-
rustup default nightly-2025-01-03
299+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
300+
rustup default 1.85.1
301301
rustup target add wasm32-unknown-unknown
302302
303303
- name: Install wasm-pack
@@ -344,8 +344,8 @@ jobs:
344344
- uses: actions/checkout@v3
345345
- name: Install toolchain
346346
run: |
347-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
348-
rustup default nightly-2025-01-03
347+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
348+
rustup default 1.85.1
349349
rustup target add aarch64-apple-ios
350350
351351
- name: Install build deps
@@ -403,8 +403,8 @@ jobs:
403403
404404
- name: Install toolchain
405405
run: |
406-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
407-
rustup default nightly-2025-01-03
406+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
407+
rustup default 1.85.1
408408
rustup target add aarch64-linux-android
409409
410410
- name: Install build deps
@@ -467,8 +467,8 @@ jobs:
467467
468468
- name: Install toolchain
469469
run: |
470-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
471-
rustup default nightly-2025-01-03
470+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
471+
rustup default 1.85.1
472472
rustup target add armv7-linux-androideabi
473473
474474
- name: Install build deps

.github/workflows/test.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
- uses: actions/checkout@v3
2626
- name: Install toolchain
2727
run: |
28-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
29-
rustup default nightly-2025-01-03
28+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
29+
rustup default 1.85.1
3030
3131
- name: Install build deps
3232
uses: ./.github/actions/deps-install
@@ -53,8 +53,8 @@ jobs:
5353
- uses: actions/checkout@v3
5454
- name: Install toolchain
5555
run: |
56-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
57-
rustup default nightly-2025-01-03
56+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
57+
rustup default 1.85.1
5858
5959
- name: Install build deps
6060
uses: ./.github/actions/deps-install
@@ -81,8 +81,8 @@ jobs:
8181
- uses: actions/checkout@v3
8282
- name: Install toolchain
8383
run: |
84-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
85-
rustup default nightly-2025-01-03
84+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
85+
rustup default 1.85.1
8686
8787
- name: Install build deps
8888
uses: ./.github/actions/deps-install
@@ -109,8 +109,8 @@ jobs:
109109
- uses: actions/checkout@v3
110110
- name: Install toolchain
111111
run: |
112-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
113-
rustup default nightly-2025-01-03
112+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
113+
rustup default 1.85.1
114114
115115
- name: Install build deps
116116
uses: ./.github/actions/deps-install
@@ -138,8 +138,8 @@ jobs:
138138
- uses: actions/checkout@v3
139139
- name: Install toolchain
140140
run: |
141-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
142-
rustup default nightly-2025-01-03
141+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
142+
rustup default 1.85.1
143143
144144
- name: Install build deps
145145
uses: ./.github/actions/deps-install
@@ -170,8 +170,8 @@ jobs:
170170
- uses: actions/checkout@v3
171171
- name: Install toolchain
172172
run: |
173-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
174-
rustup default nightly-2025-01-03
173+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
174+
rustup default 1.85.1
175175
176176
- name: Install build deps
177177
uses: ./.github/actions/deps-install
@@ -206,8 +206,8 @@ jobs:
206206
- uses: actions/checkout@v3
207207
- name: Install toolchain
208208
run: |
209-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
210-
rustup default nightly-2025-01-03
209+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
210+
rustup default 1.85.1
211211
212212
- name: Install build deps
213213
uses: ./.github/actions/deps-install
@@ -235,8 +235,8 @@ jobs:
235235
- uses: actions/checkout@v3
236236
- name: Install toolchain
237237
run: |
238-
rustup toolchain install nightly-2025-01-03 --no-self-update --profile=minimal
239-
rustup default nightly-2025-01-03
238+
rustup toolchain install 1.85.1 --no-self-update --profile=minimal
239+
rustup default 1.85.1
240240
rustup target add wasm32-unknown-unknown
241241
242242
- name: Install build deps

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ futures-timer = "3.0"
106106
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
107107
fnv = "1.0.6"
108108
group = "0.8.0"
109-
gstuff = { version = "0.7", features = ["nightly"] }
109+
gstuff = { version = "0.7" }
110110
hash256-std-hasher = "0.15.2"
111111
hash-db = "0.15.2"
112112
hex = "0.4.2"

docs/DEV_ENVIRONMENT.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
```
3939
9. Try `cargo test --all --features run-docker-tests -- --test-threads=16`.
4040
41+
Note for MacOS users:
42+
- The UTXO 'testblockchain' docker container may fail to start due to TCP port conflict with MacOS AirPlay Receiver (using the same 7000 port). Disabling AirPlay Receiver resolves this problem.
43+
44+
- The 'nucleusd' test docker container (and the dependent 'ibc-relayer' container) may fail to start on MacOS. The MacOS docker "Enable host networking" option may help with this issue.
45+
4146
## Running WASM tests
4247
4348
1. Set up [WASM Build Environment](../docs/WASM_BUILD.md#Setting-up-the-environment)

0 commit comments

Comments
 (0)