futuresdr 0.0.39

An Experimental Async SDR Runtime for Heterogeneous Architectures.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
on: [push, pull_request]

name: CI

jobs:
  fmt:
    name: Fmt
    runs-on: ubuntu-latest
    env:
      RUST_BACKTRACE: full
    steps:
      - uses: actions/checkout@v4

      - uses: dtolnay/rust-toolchain@nightly
        with:
          components: rustfmt

      - name: Run cargo fmt (FutureSDR)
        run: cargo fmt --all -- --check

      - name: Run cargo fmt (FutureDSP)
        run: cargo fmt --all --manifest-path=crates/futuredsp/Cargo.toml -- --check

      - name: Run cargo fmt (Macros)
        run: cargo fmt --all --manifest-path=crates/macros/Cargo.toml -- --check

      - name: Run cargo fmt (Prophecy)
        run: cargo fmt --all --manifest-path=crates/prophecy/Cargo.toml -- --check

      - name: Run cargo fmt (Remote)
        run: cargo fmt --all --manifest-path=crates/remote/Cargo.toml -- --check

      - name: Run cargo fmt (Types)
        run: cargo fmt --all --manifest-path=crates/types/Cargo.toml -- --check

      - name: Run cargo fmt (perf/buffer_rand)
        run: cargo fmt --all --manifest-path=perf/buffer_rand/Cargo.toml -- --check

      - name: Run cargo fmt (perf/buffer_size)
        run: cargo fmt --all --manifest-path=perf/buffer_size/Cargo.toml -- --check

      - name: Run cargo fmt (perf/burn)
        run: cargo fmt --all --manifest-path=perf/burn/Cargo.toml -- --check

      - name: Run cargo fmt (perf/fir)
        run: cargo fmt --all --manifest-path=perf/fir/Cargo.toml -- --check

      - name: Run cargo fmt (perf/fir_latency)
        run: cargo fmt --all --manifest-path=perf/fir_latency/Cargo.toml -- --check

      - name: Run cargo fmt (perf/msg)
        run: cargo fmt --all --manifest-path=perf/msg/Cargo.toml -- --check

      - name: Run cargo fmt (perf/null_rand)
        run: cargo fmt --all --manifest-path=perf/null_rand/Cargo.toml -- --check

      - name: Run cargo fmt (perf/null_rand_latency)
        run: cargo fmt --all --manifest-path=perf/null_rand_latency/Cargo.toml -- --check

      - name: Run cargo fmt (perf/perf)
        run: cargo fmt --all --manifest-path=perf/perf/Cargo.toml -- --check

      - name: Run cargo fmt (perf/vulkan)
        run: cargo fmt --all --manifest-path=perf/vulkan/Cargo.toml -- --check

      - name: Run cargo fmt (perf/wgpu)
        run: cargo fmt --all --manifest-path=perf/wgpu/Cargo.toml -- --check

      - name: Run cargo fmt (perf/zynq)
        run: cargo fmt --all --manifest-path=perf/zynq/Cargo.toml -- --check

      - name: Run cargo fmt (examples/adsb)
        run: cargo fmt --all --manifest-path=examples/adsb/Cargo.toml -- --check

      - name: Run cargo fmt (examples/android)
        run: cargo fmt --all --manifest-path=examples/android/Cargo.toml -- --check

      - name: Run cargo fmt (examples/audio)
        run: cargo fmt --all --manifest-path=examples/audio/Cargo.toml -- --check

      - name: Run cargo fmt (examples/burn)
        run: cargo fmt --all --manifest-path=examples/burn/Cargo.toml -- --check

      - name: Run cargo fmt (examples/custom-routes)
        run: cargo fmt --all --manifest-path=examples/custom-routes/Cargo.toml -- --check

      - name: Run cargo fmt (examples/cw)
        run: cargo fmt --all --manifest-path=examples/cw/Cargo.toml -- --check

      - name: Run cargo fmt (examples/egui)
        run: cargo fmt --all --manifest-path=examples/egui/Cargo.toml -- --check

      - name: Run cargo fmt (examples/file-trx)
        run: cargo fmt --all --manifest-path=examples/file-trx/Cargo.toml -- --check

      - name: Run cargo fmt (examples/firdes)
        run: cargo fmt --all --manifest-path=examples/firdes/Cargo.toml -- --check

      - name: Run cargo fmt (examples/fm-receiver)
        run: cargo fmt --all --manifest-path=examples/fm-receiver/Cargo.toml -- --check

      - name: Run cargo fmt (examples/inplace)
        run: cargo fmt --all --manifest-path=examples/inplace/Cargo.toml -- --check

      - name: Run cargo fmt (examples/keyfob)
        run: cargo fmt --all --manifest-path=examples/keyfob/Cargo.toml -- --check

      - name: Run cargo fmt (examples/logging)
        run: cargo fmt --all --manifest-path=examples/logging/Cargo.toml -- --check

      - name: Run cargo fmt (examples/lora)
        run: cargo fmt --all --manifest-path=examples/lora/Cargo.toml -- --check

      - name: Run cargo fmt (examples/m17)
        run: cargo fmt --all --manifest-path=examples/m17/Cargo.toml -- --check

      - name: Run cargo fmt (examples/macros)
        run: cargo fmt --all --manifest-path=examples/macros/Cargo.toml -- --check

      - name: Run cargo fmt (examples/rattlegram)
        run: cargo fmt --all --manifest-path=examples/rattlegram/Cargo.toml -- --check

      - name: Run cargo fmt (examples/spectrum)
        run: cargo fmt --all --manifest-path=examples/spectrum/Cargo.toml -- --check

      - name: Run cargo fmt (examples/ssb)
        run: cargo fmt --all --manifest-path=examples/ssb/Cargo.toml -- --check

      - name: Run cargo fmt (examples/wasm)
        run: cargo fmt --all --manifest-path=examples/wasm/Cargo.toml -- --check

      - name: Run cargo fmt (examples/wgpu)
        run: cargo fmt --all --manifest-path=examples/wgpu/Cargo.toml -- --check

      - name: Run cargo fmt (examples/wlan)
        run: cargo fmt --all --manifest-path=examples/wlan/Cargo.toml -- --check

      - name: Run cargo fmt (examples/zeromq)
        run: cargo fmt --all --manifest-path=examples/zeromq/Cargo.toml -- --check

      - name: Run cargo fmt (examples/zigbee)
        run: cargo fmt --all --manifest-path=examples/zigbee/Cargo.toml -- --check

      - name: Run cargo fmt (examples/zynq)
        run: cargo fmt --all --manifest-path=examples/zynq/Cargo.toml -- --check


  clippy_main:
    name: Clippy Main
    runs-on: ubuntu-latest
    env:
      RUST_BACKTRACE: full
    steps:
      - uses: actions/checkout@v4

      - uses: dtolnay/rust-toolchain@nightly
        with:
          components: clippy

      - name: Apt Update
        run: sudo apt-get -y update

      - name: Install ZeroMQ
        run: sudo apt-get install -y libzmq3-dev

      - name: Install alsalibs
        run: sudo apt-get -y install libasound2-dev

      - name: Install Soapy
        run: sudo apt-get -y install libsoapysdr-dev

      - name: Run cargo clippy (main)
        run: cargo clippy --all-targets --workspace --features=burn,aaronia_http,vulkan,zeromq,audio,flow_scheduler,tpb_scheduler,seify_dummy,soapy,zynq,wgpu -- -D warnings

      - name: Run cargo clippy (futuredsp)
        run: cargo clippy --lib --manifest-path=crates/futuredsp/Cargo.toml -- -D warnings

      - name: Run cargo clippy (macros)
        run: cargo clippy --lib --manifest-path=crates/macros/Cargo.toml -- -D warnings

      - name: Run cargo clippy (remote)
        run: cargo clippy --lib --manifest-path=crates/remote/Cargo.toml -- -D warnings

      - name: Run cargo clippy (types)
        run: cargo clippy --lib --manifest-path=crates/types/Cargo.toml -- -D warnings

  clippy_perf:
    name: Clippy Perf
    runs-on: ubuntu-latest
    env:
      RUST_BACKTRACE: full
    steps:
      - uses: actions/checkout@v4

      - uses: dtolnay/rust-toolchain@nightly
        with:
          components: clippy

      - name: Apt Update
        run: sudo apt-get -y update

      - name: Install ZeroMQ
        run: sudo apt-get install -y libzmq3-dev

      - name: Install alsalibs
        run: sudo apt-get -y install libasound2-dev

      - name: Install LTTng
        run: sudo apt-get -y install liblttng-ust-dev

      - name: Install Soapy
        run: sudo apt-get -y install libsoapysdr-dev

      - name: Run cargo clippy (perf/buffer_rand)
        run: cargo clippy --all-targets --manifest-path=perf/buffer_rand/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/buffer_size)
        run: cargo clippy --all-targets --manifest-path=perf/buffer_size/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/burn)
        run: cargo clippy --all-targets --manifest-path=perf/burn/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/fir)
        run: cargo clippy --all-targets --manifest-path=perf/fir/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/fir_latency)
        run: cargo clippy --all-targets --manifest-path=perf/fir_latency/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/msg)
        run: cargo clippy --all-targets --manifest-path=perf/msg/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/null_rand)
        run: cargo clippy --all-targets --manifest-path=perf/null_rand/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/null_rand_latency)
        run: cargo clippy --all-targets --manifest-path=perf/null_rand_latency/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/perf)
        run: cargo clippy --all-targets --all-features --manifest-path=perf/perf/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/vulkan)
        run: cargo clippy --all-targets --manifest-path=perf/vulkan/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/wgpu)
        run: cargo clippy --all-targets --manifest-path=perf/wgpu/Cargo.toml -- -D warnings

      - name: Run cargo clippy (perf/zynq)
        run: cargo clippy --all-targets --manifest-path=perf/zynq/Cargo.toml -- -D warnings

  clippy_examples:
    name: Clippy Examples
    runs-on: ubuntu-latest
    env:
      RUST_BACKTRACE: full
    steps:
      - uses: actions/checkout@v4

      - uses: dtolnay/rust-toolchain@nightly
        with:
          components: clippy

      - name: Apt Update
        run: sudo apt-get -y update

      - name: Install ZeroMQ
        run: sudo apt-get install -y libzmq3-dev

      - name: Install alsalibs
        run: sudo apt-get -y install libasound2-dev

      - name: Install libdbus-dev
        run: sudo apt-get -y install libdbus-1-dev

      - name: Install Soapy
        run: sudo apt-get -y install libsoapysdr-dev

      - name: Run cargo clippy (examples/adsb)
        run: cargo clippy --all-targets --manifest-path=examples/adsb/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/android)
        run: cargo clippy --all-targets --manifest-path=examples/android/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/audio)
        run: cargo clippy --all-targets --manifest-path=examples/audio/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/burn)
        run: cargo clippy --all-targets --manifest-path=examples/burn/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/custom-routes)
        run: cargo clippy --all-targets --manifest-path=examples/custom-routes/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/cw)
        run: cargo clippy --all-targets --manifest-path=examples/cw/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/egui)
        run: cargo clippy --all-targets --manifest-path=examples/egui/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/file-trx)
        run: cargo clippy --all-targets --manifest-path=examples/file-trx/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/firdes)
        run: cargo clippy --all-targets --manifest-path=examples/firdes/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/fm-receiver)
        run: cargo clippy --all-targets --manifest-path=examples/fm-receiver/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/inplace)
        run: cargo clippy --all-targets --manifest-path=examples/inplace/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/keyfob)
        run: cargo clippy --all-targets --manifest-path=examples/keyfob/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/logging)
        run: cargo clippy --all-targets --manifest-path=examples/logging/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/lora)
        run: cargo clippy --all-targets --manifest-path=examples/lora/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/m17)
        run: cargo clippy --all-targets --manifest-path=examples/m17/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/macros)
        run: cargo clippy --all-targets --manifest-path=examples/macros/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/rattlegram)
        run: cargo clippy --all-targets --manifest-path=examples/rattlegram/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/spectrum)
        run: cargo clippy --all-targets --manifest-path=examples/spectrum/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/ssb)
        run: cargo clippy --all-targets --manifest-path=examples/ssb/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/wasm)
        run: cargo clippy --all-targets --manifest-path=examples/wasm/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/wgpu)
        run: cargo clippy --all-targets --manifest-path=examples/wgpu/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/wlan)
        run: cargo clippy --all-targets --manifest-path=examples/wlan/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/zeromq)
        run: cargo clippy --all-targets --manifest-path=examples/zeromq/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/zigbee)
        run: cargo clippy --all-targets --manifest-path=examples/zigbee/Cargo.toml -- -D warnings

      - name: Run cargo clippy (examples/zynq)
        run: cargo clippy --all-targets --manifest-path=examples/zynq/Cargo.toml -- -D warnings


  clippy_wasm:
    name: Clippy Wasm
    runs-on: ubuntu-latest
    env:
      RUST_BACKTRACE: full
    steps:
      - uses: actions/checkout@v4

      - uses: dtolnay/rust-toolchain@nightly
        with:
          components: clippy
          target: wasm32-unknown-unknown

      - name: Run cargo clippy for wasm32-unknown-unknown (main)
        run: cargo clippy --lib --workspace --features=burn,audio,seify_dummy,wgpu --target wasm32-unknown-unknown -- -D warnings

      - name: Run cargo clippy for wasm32-unknown-unknown (macros)
        run: cargo clippy --lib --manifest-path=crates/macros/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

      - name: Run cargo clippy for wasm32-unknown-unknown (prophecy)
        run: cargo clippy --lib --manifest-path=crates/prophecy/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

      - name: Run cargo clippy for wasm32-unknown-unknown (types)
        run: cargo clippy --lib --manifest-path=crates/types/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

      - name: Run cargo clippy for wasm32-unknown-unknown (perf/wgpu)
        run: cargo clippy --lib --manifest-path=perf/wgpu/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

      - name: Run cargo clippy for wasm32-unknown-unknown (examples/cw)
        run: cargo clippy --lib --manifest-path=examples/cw/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

      - name: Run cargo clippy for wasm32-unknown-unknown (examples/rattlegram)
        run: cargo clippy --lib --manifest-path=examples/rattlegram/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

      - name: Run cargo clippy for wasm32-unknown-unknown (examples/spectrum)
        run: cargo clippy --lib --manifest-path=examples/spectrum/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

      - name: Run cargo clippy for wasm32-unknown-unknown (examples/wasm)
        run: cargo clippy --lib --manifest-path=examples/wasm/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

      - name: Run cargo clippy for wasm32-unknown-unknown (examples/wgpu)
        run: cargo clippy --lib --manifest-path=examples/wgpu/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

      - name: Run cargo clippy for wasm32-unknown-unknown (examples/zigbee)
        run: cargo clippy --lib --manifest-path=examples/zigbee/Cargo.toml --target wasm32-unknown-unknown -- -D warnings

  test-linux:
    name: Unit Tests Linux
    runs-on: ubuntu-latest
    env:
      RUST_BACKTRACE: full
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@nightly
      - run: sudo apt-get -y update
      - run: sudo apt-get -y install libzmq3-dev
      - run: sudo apt-get -y install libasound2-dev
      - run: sudo apt-get -y install liblttng-ust-dev
      - run: sudo apt-get -y install libsoapysdr-dev
      - run: cargo test --all-targets --workspace --features=burn,aaronia_http,rtlsdr,zeromq,audio,flow_scheduler,tpb_scheduler,seify_dummy,soapy,zynq,wgpu
      - run: cargo test --all-targets --manifest-path=crates/futuredsp/Cargo.toml
      - run: cargo test --all-targets --all-features --manifest-path=crates/types/Cargo.toml
      - run: cargo test --all-targets --manifest-path=crates/remote/Cargo.toml
      # the buffer size, required for the prefix block is not supported by GitHub CI
      # - run: cargo test --all-targets --manifest-path=examples/wlan/Cargo.toml

  test-macos:
    name: Unit Tests macOS
    runs-on: macos-latest
    env:
      RUST_BACKTRACE: full
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@nightly
      - run: brew install shaderc glslang spirv-tools
      - name: Build
        run: cargo test --all-targets --workspace --features=burn,aaronia_http,flow_scheduler,seify_dummy,tpb_scheduler,wgpu
        env:
          SHADERC_LIB_DIR: /opt/homebrew/lib
          SHADERC_INCLUDE_DIR: /opt/homebrew/include

  test-windows:
    name: Unit Test Windows
    runs-on: windows-latest
    env:
      RUST_BACKTRACE: full
    steps:
      - uses: crazy-max/ghaction-chocolatey@v3
        with:
          args: install ninja
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@nightly
      - run: cargo test --all-targets --workspace --features=burn,aaronia_http,flow_scheduler,seify_dummy,tpb_scheduler,wgpu