-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbuild.zig
More file actions
1052 lines (869 loc) · 55.9 KB
/
build.zig
File metadata and controls
1052 lines (869 loc) · 55.9 KB
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
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// This file is generated by zbuild. Do not edit manually.
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const options_build_options = b.addOptions();
const option_zero_hash_max_depth = b.option(u8, "zero_hash_max_depth", "");
options_build_options.addOption(?u8, "zero_hash_max_depth", option_zero_hash_max_depth);
const option_preset = b.option([]const u8, "preset", "") orelse "mainnet";
options_build_options.addOption([]const u8, "preset", option_preset);
const options_module_build_options = options_build_options.createModule();
const options_download_era_options = b.addOptions();
const option_era_base_url = b.option([]const u8, "era_base_url", "") orelse "https://mainnet.era.nimbus.team";
options_download_era_options.addOption([]const u8, "era_base_url", option_era_base_url);
const option_era_files = b.option([]const []const u8, "era_files", "") orelse &[_][]const u8{ "mainnet-01628-47ac89fb.era", "mainnet-01629-f4b834bc.era" };
options_download_era_options.addOption([]const []const u8, "era_files", option_era_files);
const option_era_out_dir = b.option([]const u8, "era_out_dir", "") orelse "fixtures/era";
options_download_era_options.addOption([]const u8, "era_out_dir", option_era_out_dir);
const options_module_download_era_options = options_download_era_options.createModule();
const options_spec_test_options = b.addOptions();
const option_spec_test_url = b.option([]const u8, "spec_test_url", "") orelse "https://github.com/ethereum/consensus-specs";
options_spec_test_options.addOption([]const u8, "spec_test_url", option_spec_test_url);
const option_spec_test_version = b.option([]const u8, "spec_test_version", "") orelse "v1.6.0-beta.2";
options_spec_test_options.addOption([]const u8, "spec_test_version", option_spec_test_version);
const option_spec_test_out_dir = b.option([]const u8, "spec_test_out_dir", "") orelse "test/spec/spec_tests";
options_spec_test_options.addOption([]const u8, "spec_test_out_dir", option_spec_test_out_dir);
const options_module_spec_test_options = options_spec_test_options.createModule();
const dep_blst = b.dependency("blst", .{
.optimize = optimize,
.target = target,
});
const dep_hashtree = b.dependency("hashtree", .{
.optimize = optimize,
.target = target,
});
const dep_snappy = b.dependency("snappy", .{
.optimize = optimize,
.target = target,
});
const dep_yaml = b.dependency("yaml", .{
.optimize = optimize,
.target = target,
});
const dep_zbench = b.dependency("zbench", .{
.optimize = optimize,
.target = target,
});
const dep_metrics = b.dependency("metrics", .{
.optimize = optimize,
.target = target,
});
const dep_httpz = b.dependency("httpz", .{
.optimize = optimize,
.target = target,
});
const module_constants = b.createModule(.{
.root_source_file = b.path("src/constants/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("constants"), module_constants) catch @panic("OOM");
const module_config = b.createModule(.{
.root_source_file = b.path("src/config/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("config"), module_config) catch @panic("OOM");
const module_consensus_types = b.createModule(.{
.root_source_file = b.path("src/consensus_types/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("consensus_types"), module_consensus_types) catch @panic("OOM");
const module_era = b.createModule(.{
.root_source_file = b.path("src/era/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("era"), module_era) catch @panic("OOM");
const module_hashing = b.createModule(.{
.root_source_file = b.path("src/hashing/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("hashing"), module_hashing) catch @panic("OOM");
const module_hex = b.createModule(.{
.root_source_file = b.path("src/hex.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("hex"), module_hex) catch @panic("OOM");
const module_fork_types = b.createModule(.{
.root_source_file = b.path("src/fork_types/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("fork_types"), module_fork_types) catch @panic("OOM");
const module_persistent_merkle_tree = b.createModule(.{
.root_source_file = b.path("src/persistent_merkle_tree/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("persistent_merkle_tree"), module_persistent_merkle_tree) catch @panic("OOM");
const module_preset = b.createModule(.{
.root_source_file = b.path("src/preset/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("preset"), module_preset) catch @panic("OOM");
const module_ssz = b.createModule(.{
.root_source_file = b.path("src/ssz/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("ssz"), module_ssz) catch @panic("OOM");
const module_state_transition = b.createModule(.{
.root_source_file = b.path("src/state_transition/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("state_transition"), module_state_transition) catch @panic("OOM");
const module_download_era_files = b.createModule(.{
.root_source_file = b.path("scripts/download_era_files.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("download_era_files"), module_download_era_files) catch @panic("OOM");
const exe_download_era_files = b.addExecutable(.{
.name = "download_era_files",
.root_module = module_download_era_files,
});
const install_exe_download_era_files = b.addInstallArtifact(exe_download_era_files, .{});
const tls_install_exe_download_era_files = b.step("build-exe:download_era_files", "Install the download_era_files executable");
tls_install_exe_download_era_files.dependOn(&install_exe_download_era_files.step);
b.getInstallStep().dependOn(&install_exe_download_era_files.step);
const run_exe_download_era_files = b.addRunArtifact(exe_download_era_files);
if (b.args) |args| run_exe_download_era_files.addArgs(args);
const tls_run_exe_download_era_files = b.step("run:download_era_files", "Run the download_era_files executable");
tls_run_exe_download_era_files.dependOn(&run_exe_download_era_files.step);
const module_metrics_era = b.createModule(.{
.root_source_file = b.path("examples/metrics_era.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("metrics_era"), module_metrics_era) catch @panic("OOM");
const exe_metrics_era = b.addExecutable(.{
.name = "metrics_era",
.root_module = module_metrics_era,
});
const install_exe_metrics_era = b.addInstallArtifact(exe_metrics_era, .{});
const tls_install_exe_metrics_era = b.step("build-exe:metrics_era", "Install the metrics_era executable");
tls_install_exe_metrics_era.dependOn(&install_exe_metrics_era.step);
b.getInstallStep().dependOn(&install_exe_metrics_era.step);
const run_exe_metrics_era = b.addRunArtifact(exe_metrics_era);
if (b.args) |args| run_exe_metrics_era.addArgs(args);
const tls_run_exe_metrics_era = b.step("run:metrics_era", "Run the metrics_era executable");
tls_run_exe_metrics_era.dependOn(&run_exe_metrics_era.step);
const module_download_spec_tests = b.createModule(.{
.root_source_file = b.path("test/spec/download_spec_tests.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("download_spec_tests"), module_download_spec_tests) catch @panic("OOM");
const exe_download_spec_tests = b.addExecutable(.{
.name = "download_spec_tests",
.root_module = module_download_spec_tests,
});
const install_exe_download_spec_tests = b.addInstallArtifact(exe_download_spec_tests, .{});
const tls_install_exe_download_spec_tests = b.step("build-exe:download_spec_tests", "Install the download_spec_tests executable");
tls_install_exe_download_spec_tests.dependOn(&install_exe_download_spec_tests.step);
b.getInstallStep().dependOn(&install_exe_download_spec_tests.step);
const run_exe_download_spec_tests = b.addRunArtifact(exe_download_spec_tests);
if (b.args) |args| run_exe_download_spec_tests.addArgs(args);
const tls_run_exe_download_spec_tests = b.step("run:download_spec_tests", "Run the download_spec_tests executable");
tls_run_exe_download_spec_tests.dependOn(&run_exe_download_spec_tests.step);
const module_write_spec_tests = b.createModule(.{
.root_source_file = b.path("test/spec/write_spec_tests.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("write_spec_tests"), module_write_spec_tests) catch @panic("OOM");
const exe_write_spec_tests = b.addExecutable(.{
.name = "write_spec_tests",
.root_module = module_write_spec_tests,
});
const install_exe_write_spec_tests = b.addInstallArtifact(exe_write_spec_tests, .{});
const tls_install_exe_write_spec_tests = b.step("build-exe:write_spec_tests", "Install the write_spec_tests executable");
tls_install_exe_write_spec_tests.dependOn(&install_exe_write_spec_tests.step);
b.getInstallStep().dependOn(&install_exe_write_spec_tests.step);
const run_exe_write_spec_tests = b.addRunArtifact(exe_write_spec_tests);
if (b.args) |args| run_exe_write_spec_tests.addArgs(args);
const tls_run_exe_write_spec_tests = b.step("run:write_spec_tests", "Run the write_spec_tests executable");
tls_run_exe_write_spec_tests.dependOn(&run_exe_write_spec_tests.step);
const module_write_ssz_generic_spec_tests = b.createModule(.{
.root_source_file = b.path("test/spec/ssz/write_generic_tests.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("write_ssz_generic_spec_tests"), module_write_ssz_generic_spec_tests) catch @panic("OOM");
const exe_write_ssz_generic_spec_tests = b.addExecutable(.{
.name = "write_ssz_generic_spec_tests",
.root_module = module_write_ssz_generic_spec_tests,
});
const install_exe_write_ssz_generic_spec_tests = b.addInstallArtifact(exe_write_ssz_generic_spec_tests, .{});
const tls_install_exe_write_ssz_generic_spec_tests = b.step("build-exe:write_ssz_generic_spec_tests", "Install the write_ssz_generic_spec_tests executable");
tls_install_exe_write_ssz_generic_spec_tests.dependOn(&install_exe_write_ssz_generic_spec_tests.step);
b.getInstallStep().dependOn(&install_exe_write_ssz_generic_spec_tests.step);
const run_exe_write_ssz_generic_spec_tests = b.addRunArtifact(exe_write_ssz_generic_spec_tests);
if (b.args) |args| run_exe_write_ssz_generic_spec_tests.addArgs(args);
const tls_run_exe_write_ssz_generic_spec_tests = b.step("run:write_ssz_generic_spec_tests", "Run the write_ssz_generic_spec_tests executable");
tls_run_exe_write_ssz_generic_spec_tests.dependOn(&run_exe_write_ssz_generic_spec_tests.step);
const module_write_ssz_static_spec_tests = b.createModule(.{
.root_source_file = b.path("test/spec/ssz/write_static_tests.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("write_ssz_static_spec_tests"), module_write_ssz_static_spec_tests) catch @panic("OOM");
const exe_write_ssz_static_spec_tests = b.addExecutable(.{
.name = "write_ssz_static_spec_tests",
.root_module = module_write_ssz_static_spec_tests,
});
const install_exe_write_ssz_static_spec_tests = b.addInstallArtifact(exe_write_ssz_static_spec_tests, .{});
const tls_install_exe_write_ssz_static_spec_tests = b.step("build-exe:write_ssz_static_spec_tests", "Install the write_ssz_static_spec_tests executable");
tls_install_exe_write_ssz_static_spec_tests.dependOn(&install_exe_write_ssz_static_spec_tests.step);
b.getInstallStep().dependOn(&install_exe_write_ssz_static_spec_tests.step);
const run_exe_write_ssz_static_spec_tests = b.addRunArtifact(exe_write_ssz_static_spec_tests);
if (b.args) |args| run_exe_write_ssz_static_spec_tests.addArgs(args);
const tls_run_exe_write_ssz_static_spec_tests = b.step("run:write_ssz_static_spec_tests", "Run the write_ssz_static_spec_tests executable");
tls_run_exe_write_ssz_static_spec_tests.dependOn(&run_exe_write_ssz_static_spec_tests.step);
const module_bench_ssz_attestation = b.createModule(.{
.root_source_file = b.path("bench/ssz/attestation.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("bench_ssz_attestation"), module_bench_ssz_attestation) catch @panic("OOM");
const exe_bench_ssz_attestation = b.addExecutable(.{
.name = "bench_ssz_attestation",
.root_module = module_bench_ssz_attestation,
});
const install_exe_bench_ssz_attestation = b.addInstallArtifact(exe_bench_ssz_attestation, .{});
const tls_install_exe_bench_ssz_attestation = b.step("build-exe:bench_ssz_attestation", "Install the bench_ssz_attestation executable");
tls_install_exe_bench_ssz_attestation.dependOn(&install_exe_bench_ssz_attestation.step);
b.getInstallStep().dependOn(&install_exe_bench_ssz_attestation.step);
const run_exe_bench_ssz_attestation = b.addRunArtifact(exe_bench_ssz_attestation);
if (b.args) |args| run_exe_bench_ssz_attestation.addArgs(args);
const tls_run_exe_bench_ssz_attestation = b.step("run:bench_ssz_attestation", "Run the bench_ssz_attestation executable");
tls_run_exe_bench_ssz_attestation.dependOn(&run_exe_bench_ssz_attestation.step);
const module_bench_ssz_block = b.createModule(.{
.root_source_file = b.path("bench/ssz/block.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("bench_ssz_block"), module_bench_ssz_block) catch @panic("OOM");
const exe_bench_ssz_block = b.addExecutable(.{
.name = "bench_ssz_block",
.root_module = module_bench_ssz_block,
});
const install_exe_bench_ssz_block = b.addInstallArtifact(exe_bench_ssz_block, .{});
const tls_install_exe_bench_ssz_block = b.step("build-exe:bench_ssz_block", "Install the bench_ssz_block executable");
tls_install_exe_bench_ssz_block.dependOn(&install_exe_bench_ssz_block.step);
b.getInstallStep().dependOn(&install_exe_bench_ssz_block.step);
const run_exe_bench_ssz_block = b.addRunArtifact(exe_bench_ssz_block);
if (b.args) |args| run_exe_bench_ssz_block.addArgs(args);
const tls_run_exe_bench_ssz_block = b.step("run:bench_ssz_block", "Run the bench_ssz_block executable");
tls_run_exe_bench_ssz_block.dependOn(&run_exe_bench_ssz_block.step);
const module_bench_ssz_state = b.createModule(.{
.root_source_file = b.path("bench/ssz/state.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("bench_ssz_state"), module_bench_ssz_state) catch @panic("OOM");
const exe_bench_ssz_state = b.addExecutable(.{
.name = "bench_ssz_state",
.root_module = module_bench_ssz_state,
});
const install_exe_bench_ssz_state = b.addInstallArtifact(exe_bench_ssz_state, .{});
const tls_install_exe_bench_ssz_state = b.step("build-exe:bench_ssz_state", "Install the bench_ssz_state executable");
tls_install_exe_bench_ssz_state.dependOn(&install_exe_bench_ssz_state.step);
b.getInstallStep().dependOn(&install_exe_bench_ssz_state.step);
const run_exe_bench_ssz_state = b.addRunArtifact(exe_bench_ssz_state);
if (b.args) |args| run_exe_bench_ssz_state.addArgs(args);
const tls_run_exe_bench_ssz_state = b.step("run:bench_ssz_state", "Run the bench_ssz_state executable");
tls_run_exe_bench_ssz_state.dependOn(&run_exe_bench_ssz_state.step);
const module_bench_merkle_gindex = b.createModule(.{
.root_source_file = b.path("bench/ssz/gindex.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("bench_merkle_gindex"), module_bench_merkle_gindex) catch @panic("OOM");
const exe_bench_merkle_gindex = b.addExecutable(.{
.name = "bench_merkle_gindex",
.root_module = module_bench_merkle_gindex,
});
const install_exe_bench_merkle_gindex = b.addInstallArtifact(exe_bench_merkle_gindex, .{});
const tls_install_exe_bench_merkle_gindex = b.step("build-exe:bench_merkle_gindex", "Install the bench_merkle_gindex executable");
tls_install_exe_bench_merkle_gindex.dependOn(&install_exe_bench_merkle_gindex.step);
b.getInstallStep().dependOn(&install_exe_bench_merkle_gindex.step);
const run_exe_bench_merkle_gindex = b.addRunArtifact(exe_bench_merkle_gindex);
if (b.args) |args| run_exe_bench_merkle_gindex.addArgs(args);
const tls_run_exe_bench_merkle_gindex = b.step("run:bench_merkle_gindex", "Run the bench_merkle_gindex executable");
tls_run_exe_bench_merkle_gindex.dependOn(&run_exe_bench_merkle_gindex.step);
const module_bench_merkle_node = b.createModule(.{
.root_source_file = b.path("src/persistent_merkle_tree/node_bench.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("bench_merkle_node"), module_bench_merkle_node) catch @panic("OOM");
const exe_bench_merkle_node = b.addExecutable(.{
.name = "bench_merkle_node",
.root_module = module_bench_merkle_node,
});
const install_exe_bench_merkle_node = b.addInstallArtifact(exe_bench_merkle_node, .{});
const tls_install_exe_bench_merkle_node = b.step("build-exe:bench_merkle_node", "Install the bench_merkle_node executable");
tls_install_exe_bench_merkle_node.dependOn(&install_exe_bench_merkle_node.step);
b.getInstallStep().dependOn(&install_exe_bench_merkle_node.step);
const run_exe_bench_merkle_node = b.addRunArtifact(exe_bench_merkle_node);
if (b.args) |args| run_exe_bench_merkle_node.addArgs(args);
const tls_run_exe_bench_merkle_node = b.step("run:bench_merkle_node", "Run the bench_merkle_node executable");
tls_run_exe_bench_merkle_node.dependOn(&run_exe_bench_merkle_node.step);
const module_bench_hashing = b.createModule(.{
.root_source_file = b.path("bench/ssz/hashing.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("bench_hashing"), module_bench_hashing) catch @panic("OOM");
const exe_bench_hashing = b.addExecutable(.{
.name = "bench_hashing",
.root_module = module_bench_hashing,
});
const install_exe_bench_hashing = b.addInstallArtifact(exe_bench_hashing, .{});
const tls_install_exe_bench_hashing = b.step("build-exe:bench_hashing", "Install the bench_hashing executable");
tls_install_exe_bench_hashing.dependOn(&install_exe_bench_hashing.step);
b.getInstallStep().dependOn(&install_exe_bench_hashing.step);
const run_exe_bench_hashing = b.addRunArtifact(exe_bench_hashing);
if (b.args) |args| run_exe_bench_hashing.addArgs(args);
const tls_run_exe_bench_hashing = b.step("run:bench_hashing", "Run the bench_hashing executable");
tls_run_exe_bench_hashing.dependOn(&run_exe_bench_hashing.step);
const module_bench_process_block = b.createModule(.{
.root_source_file = b.path("bench/state_transition/process_block.zig"),
.target = target,
.optimize = optimize,
.strip = false,
.omit_frame_pointer = false,
});
b.modules.put(b.dupe("bench_process_block"), module_bench_process_block) catch @panic("OOM");
const exe_bench_process_block = b.addExecutable(.{
.name = "bench_process_block",
.root_module = module_bench_process_block,
});
const install_exe_bench_process_block = b.addInstallArtifact(exe_bench_process_block, .{});
const tls_install_exe_bench_process_block = b.step("build-exe:bench_process_block", "Install the bench_process_block executable");
tls_install_exe_bench_process_block.dependOn(&install_exe_bench_process_block.step);
b.getInstallStep().dependOn(&install_exe_bench_process_block.step);
const run_exe_bench_process_block = b.addRunArtifact(exe_bench_process_block);
if (b.args) |args| run_exe_bench_process_block.addArgs(args);
const tls_run_exe_bench_process_block = b.step("run:bench_process_block", "Run the bench_process_block executable");
tls_run_exe_bench_process_block.dependOn(&run_exe_bench_process_block.step);
const module_bench_process_epoch = b.createModule(.{
.root_source_file = b.path("bench/state_transition/process_epoch.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("bench_process_epoch"), module_bench_process_epoch) catch @panic("OOM");
const exe_bench_process_epoch = b.addExecutable(.{
.name = "bench_process_epoch",
.root_module = module_bench_process_epoch,
});
const install_exe_bench_process_epoch = b.addInstallArtifact(exe_bench_process_epoch, .{});
const tls_install_exe_bench_process_epoch = b.step("build-exe:bench_process_epoch", "Install the bench_process_epoch executable");
tls_install_exe_bench_process_epoch.dependOn(&install_exe_bench_process_epoch.step);
b.getInstallStep().dependOn(&install_exe_bench_process_epoch.step);
const run_exe_bench_process_epoch = b.addRunArtifact(exe_bench_process_epoch);
if (b.args) |args| run_exe_bench_process_epoch.addArgs(args);
const tls_run_exe_bench_process_epoch = b.step("run:bench_process_epoch", "Run the bench_process_epoch executable");
tls_run_exe_bench_process_epoch.dependOn(&run_exe_bench_process_epoch.step);
const tls_run_test = b.step("test", "Run all tests");
const test_constants = b.addTest(.{
.name = "constants",
.root_module = module_constants,
.filters = b.option([][]const u8, "constants.filters", "constants test filters") orelse &[_][]const u8{},
});
const install_test_constants = b.addInstallArtifact(test_constants, .{});
const tls_install_test_constants = b.step("build-test:constants", "Install the constants test");
tls_install_test_constants.dependOn(&install_test_constants.step);
const run_test_constants = b.addRunArtifact(test_constants);
const tls_run_test_constants = b.step("test:constants", "Run the constants test");
tls_run_test_constants.dependOn(&run_test_constants.step);
tls_run_test.dependOn(&run_test_constants.step);
const test_config = b.addTest(.{
.name = "config",
.root_module = module_config,
.filters = b.option([][]const u8, "config.filters", "config test filters") orelse &[_][]const u8{},
});
const install_test_config = b.addInstallArtifact(test_config, .{});
const tls_install_test_config = b.step("build-test:config", "Install the config test");
tls_install_test_config.dependOn(&install_test_config.step);
const run_test_config = b.addRunArtifact(test_config);
const tls_run_test_config = b.step("test:config", "Run the config test");
tls_run_test_config.dependOn(&run_test_config.step);
tls_run_test.dependOn(&run_test_config.step);
const test_consensus_types = b.addTest(.{
.name = "consensus_types",
.root_module = module_consensus_types,
.filters = b.option([][]const u8, "consensus_types.filters", "consensus_types test filters") orelse &[_][]const u8{},
});
const install_test_consensus_types = b.addInstallArtifact(test_consensus_types, .{});
const tls_install_test_consensus_types = b.step("build-test:consensus_types", "Install the consensus_types test");
tls_install_test_consensus_types.dependOn(&install_test_consensus_types.step);
const run_test_consensus_types = b.addRunArtifact(test_consensus_types);
const tls_run_test_consensus_types = b.step("test:consensus_types", "Run the consensus_types test");
tls_run_test_consensus_types.dependOn(&run_test_consensus_types.step);
tls_run_test.dependOn(&run_test_consensus_types.step);
const test_era = b.addTest(.{
.name = "era",
.root_module = module_era,
.filters = b.option([][]const u8, "era.filters", "era test filters") orelse &[_][]const u8{},
});
const install_test_era = b.addInstallArtifact(test_era, .{});
const tls_install_test_era = b.step("build-test:era", "Install the era test");
tls_install_test_era.dependOn(&install_test_era.step);
const run_test_era = b.addRunArtifact(test_era);
const tls_run_test_era = b.step("test:era", "Run the era test");
tls_run_test_era.dependOn(&run_test_era.step);
tls_run_test.dependOn(&run_test_era.step);
const test_hashing = b.addTest(.{
.name = "hashing",
.root_module = module_hashing,
.filters = b.option([][]const u8, "hashing.filters", "hashing test filters") orelse &[_][]const u8{},
});
const install_test_hashing = b.addInstallArtifact(test_hashing, .{});
const tls_install_test_hashing = b.step("build-test:hashing", "Install the hashing test");
tls_install_test_hashing.dependOn(&install_test_hashing.step);
const run_test_hashing = b.addRunArtifact(test_hashing);
const tls_run_test_hashing = b.step("test:hashing", "Run the hashing test");
tls_run_test_hashing.dependOn(&run_test_hashing.step);
tls_run_test.dependOn(&run_test_hashing.step);
const test_hex = b.addTest(.{
.name = "hex",
.root_module = module_hex,
.filters = b.option([][]const u8, "hex.filters", "hex test filters") orelse &[_][]const u8{},
});
const install_test_hex = b.addInstallArtifact(test_hex, .{});
const tls_install_test_hex = b.step("build-test:hex", "Install the hex test");
tls_install_test_hex.dependOn(&install_test_hex.step);
const run_test_hex = b.addRunArtifact(test_hex);
const tls_run_test_hex = b.step("test:hex", "Run the hex test");
tls_run_test_hex.dependOn(&run_test_hex.step);
tls_run_test.dependOn(&run_test_hex.step);
const test_fork_types = b.addTest(.{
.name = "fork_types",
.root_module = module_fork_types,
.filters = b.option([][]const u8, "fork_types.filters", "fork_types test filters") orelse &[_][]const u8{},
});
const install_test_fork_types = b.addInstallArtifact(test_fork_types, .{});
const tls_install_test_fork_types = b.step("build-test:fork_types", "Install the fork_types test");
tls_install_test_fork_types.dependOn(&install_test_fork_types.step);
const run_test_fork_types = b.addRunArtifact(test_fork_types);
const tls_run_test_fork_types = b.step("test:fork_types", "Run the fork_types test");
tls_run_test_fork_types.dependOn(&run_test_fork_types.step);
tls_run_test.dependOn(&run_test_fork_types.step);
const test_persistent_merkle_tree = b.addTest(.{
.name = "persistent_merkle_tree",
.root_module = module_persistent_merkle_tree,
.filters = b.option([][]const u8, "persistent_merkle_tree.filters", "persistent_merkle_tree test filters") orelse &[_][]const u8{},
});
const install_test_persistent_merkle_tree = b.addInstallArtifact(test_persistent_merkle_tree, .{});
const tls_install_test_persistent_merkle_tree = b.step("build-test:persistent_merkle_tree", "Install the persistent_merkle_tree test");
tls_install_test_persistent_merkle_tree.dependOn(&install_test_persistent_merkle_tree.step);
const run_test_persistent_merkle_tree = b.addRunArtifact(test_persistent_merkle_tree);
const tls_run_test_persistent_merkle_tree = b.step("test:persistent_merkle_tree", "Run the persistent_merkle_tree test");
tls_run_test_persistent_merkle_tree.dependOn(&run_test_persistent_merkle_tree.step);
tls_run_test.dependOn(&run_test_persistent_merkle_tree.step);
const test_preset = b.addTest(.{
.name = "preset",
.root_module = module_preset,
.filters = b.option([][]const u8, "preset.filters", "preset test filters") orelse &[_][]const u8{},
});
const install_test_preset = b.addInstallArtifact(test_preset, .{});
const tls_install_test_preset = b.step("build-test:preset", "Install the preset test");
tls_install_test_preset.dependOn(&install_test_preset.step);
const run_test_preset = b.addRunArtifact(test_preset);
const tls_run_test_preset = b.step("test:preset", "Run the preset test");
tls_run_test_preset.dependOn(&run_test_preset.step);
tls_run_test.dependOn(&run_test_preset.step);
const test_ssz = b.addTest(.{
.name = "ssz",
.root_module = module_ssz,
.filters = b.option([][]const u8, "ssz.filters", "ssz test filters") orelse &[_][]const u8{},
});
const install_test_ssz = b.addInstallArtifact(test_ssz, .{});
const tls_install_test_ssz = b.step("build-test:ssz", "Install the ssz test");
tls_install_test_ssz.dependOn(&install_test_ssz.step);
const run_test_ssz = b.addRunArtifact(test_ssz);
const tls_run_test_ssz = b.step("test:ssz", "Run the ssz test");
tls_run_test_ssz.dependOn(&run_test_ssz.step);
tls_run_test.dependOn(&run_test_ssz.step);
const test_state_transition = b.addTest(.{
.name = "state_transition",
.root_module = module_state_transition,
.filters = b.option([][]const u8, "state_transition.filters", "state_transition test filters") orelse &[_][]const u8{},
});
const install_test_state_transition = b.addInstallArtifact(test_state_transition, .{});
const tls_install_test_state_transition = b.step("build-test:state_transition", "Install the state_transition test");
tls_install_test_state_transition.dependOn(&install_test_state_transition.step);
const run_test_state_transition = b.addRunArtifact(test_state_transition);
const tls_run_test_state_transition = b.step("test:state_transition", "Run the state_transition test");
tls_run_test_state_transition.dependOn(&run_test_state_transition.step);
tls_run_test.dependOn(&run_test_state_transition.step);
const test_download_era_files = b.addTest(.{
.name = "download_era_files",
.root_module = module_download_era_files,
.filters = b.option([][]const u8, "download_era_files.filters", "download_era_files test filters") orelse &[_][]const u8{},
});
const install_test_download_era_files = b.addInstallArtifact(test_download_era_files, .{});
const tls_install_test_download_era_files = b.step("build-test:download_era_files", "Install the download_era_files test");
tls_install_test_download_era_files.dependOn(&install_test_download_era_files.step);
const run_test_download_era_files = b.addRunArtifact(test_download_era_files);
const tls_run_test_download_era_files = b.step("test:download_era_files", "Run the download_era_files test");
tls_run_test_download_era_files.dependOn(&run_test_download_era_files.step);
tls_run_test.dependOn(&run_test_download_era_files.step);
const test_metrics_era = b.addTest(.{
.name = "metrics_era",
.root_module = module_metrics_era,
.filters = b.option([][]const u8, "metrics_era.filters", "metrics_era test filters") orelse &[_][]const u8{},
});
const install_test_metrics_era = b.addInstallArtifact(test_metrics_era, .{});
const tls_install_test_metrics_era = b.step("build-test:metrics_era", "Install the metrics_era test");
tls_install_test_metrics_era.dependOn(&install_test_metrics_era.step);
const run_test_metrics_era = b.addRunArtifact(test_metrics_era);
const tls_run_test_metrics_era = b.step("test:metrics_era", "Run the metrics_era test");
tls_run_test_metrics_era.dependOn(&run_test_metrics_era.step);
tls_run_test.dependOn(&run_test_metrics_era.step);
const test_download_spec_tests = b.addTest(.{
.name = "download_spec_tests",
.root_module = module_download_spec_tests,
.filters = b.option([][]const u8, "download_spec_tests.filters", "download_spec_tests test filters") orelse &[_][]const u8{},
});
const install_test_download_spec_tests = b.addInstallArtifact(test_download_spec_tests, .{});
const tls_install_test_download_spec_tests = b.step("build-test:download_spec_tests", "Install the download_spec_tests test");
tls_install_test_download_spec_tests.dependOn(&install_test_download_spec_tests.step);
const run_test_download_spec_tests = b.addRunArtifact(test_download_spec_tests);
const tls_run_test_download_spec_tests = b.step("test:download_spec_tests", "Run the download_spec_tests test");
tls_run_test_download_spec_tests.dependOn(&run_test_download_spec_tests.step);
tls_run_test.dependOn(&run_test_download_spec_tests.step);
const test_write_spec_tests = b.addTest(.{
.name = "write_spec_tests",
.root_module = module_write_spec_tests,
.filters = b.option([][]const u8, "write_spec_tests.filters", "write_spec_tests test filters") orelse &[_][]const u8{},
});
const install_test_write_spec_tests = b.addInstallArtifact(test_write_spec_tests, .{});
const tls_install_test_write_spec_tests = b.step("build-test:write_spec_tests", "Install the write_spec_tests test");
tls_install_test_write_spec_tests.dependOn(&install_test_write_spec_tests.step);
const run_test_write_spec_tests = b.addRunArtifact(test_write_spec_tests);
const tls_run_test_write_spec_tests = b.step("test:write_spec_tests", "Run the write_spec_tests test");
tls_run_test_write_spec_tests.dependOn(&run_test_write_spec_tests.step);
tls_run_test.dependOn(&run_test_write_spec_tests.step);
const test_write_ssz_generic_spec_tests = b.addTest(.{
.name = "write_ssz_generic_spec_tests",
.root_module = module_write_ssz_generic_spec_tests,
.filters = b.option([][]const u8, "write_ssz_generic_spec_tests.filters", "write_ssz_generic_spec_tests test filters") orelse &[_][]const u8{},
});
const install_test_write_ssz_generic_spec_tests = b.addInstallArtifact(test_write_ssz_generic_spec_tests, .{});
const tls_install_test_write_ssz_generic_spec_tests = b.step("build-test:write_ssz_generic_spec_tests", "Install the write_ssz_generic_spec_tests test");
tls_install_test_write_ssz_generic_spec_tests.dependOn(&install_test_write_ssz_generic_spec_tests.step);
const run_test_write_ssz_generic_spec_tests = b.addRunArtifact(test_write_ssz_generic_spec_tests);
const tls_run_test_write_ssz_generic_spec_tests = b.step("test:write_ssz_generic_spec_tests", "Run the write_ssz_generic_spec_tests test");
tls_run_test_write_ssz_generic_spec_tests.dependOn(&run_test_write_ssz_generic_spec_tests.step);
tls_run_test.dependOn(&run_test_write_ssz_generic_spec_tests.step);
const test_write_ssz_static_spec_tests = b.addTest(.{
.name = "write_ssz_static_spec_tests",
.root_module = module_write_ssz_static_spec_tests,
.filters = b.option([][]const u8, "write_ssz_static_spec_tests.filters", "write_ssz_static_spec_tests test filters") orelse &[_][]const u8{},
});
const install_test_write_ssz_static_spec_tests = b.addInstallArtifact(test_write_ssz_static_spec_tests, .{});
const tls_install_test_write_ssz_static_spec_tests = b.step("build-test:write_ssz_static_spec_tests", "Install the write_ssz_static_spec_tests test");
tls_install_test_write_ssz_static_spec_tests.dependOn(&install_test_write_ssz_static_spec_tests.step);
const run_test_write_ssz_static_spec_tests = b.addRunArtifact(test_write_ssz_static_spec_tests);
const tls_run_test_write_ssz_static_spec_tests = b.step("test:write_ssz_static_spec_tests", "Run the write_ssz_static_spec_tests test");
tls_run_test_write_ssz_static_spec_tests.dependOn(&run_test_write_ssz_static_spec_tests.step);
tls_run_test.dependOn(&run_test_write_ssz_static_spec_tests.step);
const test_bench_ssz_attestation = b.addTest(.{
.name = "bench_ssz_attestation",
.root_module = module_bench_ssz_attestation,
.filters = b.option([][]const u8, "bench_ssz_attestation.filters", "bench_ssz_attestation test filters") orelse &[_][]const u8{},
});
const install_test_bench_ssz_attestation = b.addInstallArtifact(test_bench_ssz_attestation, .{});
const tls_install_test_bench_ssz_attestation = b.step("build-test:bench_ssz_attestation", "Install the bench_ssz_attestation test");
tls_install_test_bench_ssz_attestation.dependOn(&install_test_bench_ssz_attestation.step);
const run_test_bench_ssz_attestation = b.addRunArtifact(test_bench_ssz_attestation);
const tls_run_test_bench_ssz_attestation = b.step("test:bench_ssz_attestation", "Run the bench_ssz_attestation test");
tls_run_test_bench_ssz_attestation.dependOn(&run_test_bench_ssz_attestation.step);
tls_run_test.dependOn(&run_test_bench_ssz_attestation.step);
const test_bench_ssz_block = b.addTest(.{
.name = "bench_ssz_block",
.root_module = module_bench_ssz_block,
.filters = b.option([][]const u8, "bench_ssz_block.filters", "bench_ssz_block test filters") orelse &[_][]const u8{},
});
const install_test_bench_ssz_block = b.addInstallArtifact(test_bench_ssz_block, .{});
const tls_install_test_bench_ssz_block = b.step("build-test:bench_ssz_block", "Install the bench_ssz_block test");
tls_install_test_bench_ssz_block.dependOn(&install_test_bench_ssz_block.step);
const run_test_bench_ssz_block = b.addRunArtifact(test_bench_ssz_block);
const tls_run_test_bench_ssz_block = b.step("test:bench_ssz_block", "Run the bench_ssz_block test");
tls_run_test_bench_ssz_block.dependOn(&run_test_bench_ssz_block.step);
tls_run_test.dependOn(&run_test_bench_ssz_block.step);
const test_bench_ssz_state = b.addTest(.{
.name = "bench_ssz_state",
.root_module = module_bench_ssz_state,
.filters = b.option([][]const u8, "bench_ssz_state.filters", "bench_ssz_state test filters") orelse &[_][]const u8{},
});
const install_test_bench_ssz_state = b.addInstallArtifact(test_bench_ssz_state, .{});
const tls_install_test_bench_ssz_state = b.step("build-test:bench_ssz_state", "Install the bench_ssz_state test");
tls_install_test_bench_ssz_state.dependOn(&install_test_bench_ssz_state.step);
const run_test_bench_ssz_state = b.addRunArtifact(test_bench_ssz_state);
const tls_run_test_bench_ssz_state = b.step("test:bench_ssz_state", "Run the bench_ssz_state test");
tls_run_test_bench_ssz_state.dependOn(&run_test_bench_ssz_state.step);
tls_run_test.dependOn(&run_test_bench_ssz_state.step);
const test_bench_merkle_gindex = b.addTest(.{
.name = "bench_merkle_gindex",
.root_module = module_bench_merkle_gindex,
.filters = b.option([][]const u8, "bench_merkle_gindex.filters", "bench_merkle_gindex test filters") orelse &[_][]const u8{},
});
const install_test_bench_merkle_gindex = b.addInstallArtifact(test_bench_merkle_gindex, .{});
const tls_install_test_bench_merkle_gindex = b.step("build-test:bench_merkle_gindex", "Install the bench_merkle_gindex test");
tls_install_test_bench_merkle_gindex.dependOn(&install_test_bench_merkle_gindex.step);
const run_test_bench_merkle_gindex = b.addRunArtifact(test_bench_merkle_gindex);
const tls_run_test_bench_merkle_gindex = b.step("test:bench_merkle_gindex", "Run the bench_merkle_gindex test");
tls_run_test_bench_merkle_gindex.dependOn(&run_test_bench_merkle_gindex.step);
tls_run_test.dependOn(&run_test_bench_merkle_gindex.step);
const test_bench_merkle_node = b.addTest(.{
.name = "bench_merkle_node",
.root_module = module_bench_merkle_node,
.filters = b.option([][]const u8, "bench_merkle_node.filters", "bench_merkle_node test filters") orelse &[_][]const u8{},
});
const install_test_bench_merkle_node = b.addInstallArtifact(test_bench_merkle_node, .{});
const tls_install_test_bench_merkle_node = b.step("build-test:bench_merkle_node", "Install the bench_merkle_node test");
tls_install_test_bench_merkle_node.dependOn(&install_test_bench_merkle_node.step);
const run_test_bench_merkle_node = b.addRunArtifact(test_bench_merkle_node);
const tls_run_test_bench_merkle_node = b.step("test:bench_merkle_node", "Run the bench_merkle_node test");
tls_run_test_bench_merkle_node.dependOn(&run_test_bench_merkle_node.step);
tls_run_test.dependOn(&run_test_bench_merkle_node.step);
const test_bench_hashing = b.addTest(.{
.name = "bench_hashing",
.root_module = module_bench_hashing,
.filters = b.option([][]const u8, "bench_hashing.filters", "bench_hashing test filters") orelse &[_][]const u8{},
});
const install_test_bench_hashing = b.addInstallArtifact(test_bench_hashing, .{});
const tls_install_test_bench_hashing = b.step("build-test:bench_hashing", "Install the bench_hashing test");
tls_install_test_bench_hashing.dependOn(&install_test_bench_hashing.step);
const run_test_bench_hashing = b.addRunArtifact(test_bench_hashing);
const tls_run_test_bench_hashing = b.step("test:bench_hashing", "Run the bench_hashing test");
tls_run_test_bench_hashing.dependOn(&run_test_bench_hashing.step);
tls_run_test.dependOn(&run_test_bench_hashing.step);
const test_bench_process_block = b.addTest(.{
.name = "bench_process_block",
.root_module = module_bench_process_block,
.filters = b.option([][]const u8, "bench_process_block.filters", "bench_process_block test filters") orelse &[_][]const u8{},
});
const install_test_bench_process_block = b.addInstallArtifact(test_bench_process_block, .{});
const tls_install_test_bench_process_block = b.step("build-test:bench_process_block", "Install the bench_process_block test");
tls_install_test_bench_process_block.dependOn(&install_test_bench_process_block.step);
const run_test_bench_process_block = b.addRunArtifact(test_bench_process_block);
const tls_run_test_bench_process_block = b.step("test:bench_process_block", "Run the bench_process_block test");
tls_run_test_bench_process_block.dependOn(&run_test_bench_process_block.step);
tls_run_test.dependOn(&run_test_bench_process_block.step);
const test_bench_process_epoch = b.addTest(.{
.name = "bench_process_epoch",
.root_module = module_bench_process_epoch,
.filters = b.option([][]const u8, "bench_process_epoch.filters", "bench_process_epoch test filters") orelse &[_][]const u8{},
});
const install_test_bench_process_epoch = b.addInstallArtifact(test_bench_process_epoch, .{});
const tls_install_test_bench_process_epoch = b.step("build-test:bench_process_epoch", "Install the bench_process_epoch test");
tls_install_test_bench_process_epoch.dependOn(&install_test_bench_process_epoch.step);
const run_test_bench_process_epoch = b.addRunArtifact(test_bench_process_epoch);
const tls_run_test_bench_process_epoch = b.step("test:bench_process_epoch", "Run the bench_process_epoch test");
tls_run_test_bench_process_epoch.dependOn(&run_test_bench_process_epoch.step);
tls_run_test.dependOn(&run_test_bench_process_epoch.step);
const module_int = b.createModule(.{
.root_source_file = b.path("test/int/era/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("int"), module_int) catch @panic("OOM");
const test_int = b.addTest(.{
.name = "int",
.root_module = module_int,
.filters = b.option([][]const u8, "int.filters", "int test filters") orelse &[_][]const u8{},
});
const install_test_int = b.addInstallArtifact(test_int, .{});
const tls_install_test_int = b.step("build-test:int", "Install the int test");
tls_install_test_int.dependOn(&install_test_int.step);
const run_test_int = b.addRunArtifact(test_int);
const tls_run_test_int = b.step("test:int", "Run the int test");
tls_run_test_int.dependOn(&run_test_int.step);
tls_run_test.dependOn(&run_test_int.step);
const module_spec_tests = b.createModule(.{
.root_source_file = b.path("test/spec/root.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("spec_tests"), module_spec_tests) catch @panic("OOM");
const test_spec_tests = b.addTest(.{
.name = "spec_tests",
.root_module = module_spec_tests,
.filters = b.option([][]const u8, "spec_tests.filters", "spec_tests test filters") orelse &[_][]const u8{},
});
const install_test_spec_tests = b.addInstallArtifact(test_spec_tests, .{});
const tls_install_test_spec_tests = b.step("build-test:spec_tests", "Install the spec_tests test");
tls_install_test_spec_tests.dependOn(&install_test_spec_tests.step);
const run_test_spec_tests = b.addRunArtifact(test_spec_tests);
const tls_run_test_spec_tests = b.step("test:spec_tests", "Run the spec_tests test");
tls_run_test_spec_tests.dependOn(&run_test_spec_tests.step);
tls_run_test.dependOn(&run_test_spec_tests.step);
const module_ssz_generic_spec_tests = b.createModule(.{
.root_source_file = b.path("test/spec/ssz/generic_tests.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("ssz_generic_spec_tests"), module_ssz_generic_spec_tests) catch @panic("OOM");
const test_ssz_generic_spec_tests = b.addTest(.{
.name = "ssz_generic_spec_tests",
.root_module = module_ssz_generic_spec_tests,
.filters = b.option([][]const u8, "ssz_generic_spec_tests.filters", "ssz_generic_spec_tests test filters") orelse &[_][]const u8{},
});
const install_test_ssz_generic_spec_tests = b.addInstallArtifact(test_ssz_generic_spec_tests, .{});
const tls_install_test_ssz_generic_spec_tests = b.step("build-test:ssz_generic_spec_tests", "Install the ssz_generic_spec_tests test");
tls_install_test_ssz_generic_spec_tests.dependOn(&install_test_ssz_generic_spec_tests.step);
const run_test_ssz_generic_spec_tests = b.addRunArtifact(test_ssz_generic_spec_tests);
const tls_run_test_ssz_generic_spec_tests = b.step("test:ssz_generic_spec_tests", "Run the ssz_generic_spec_tests test");
tls_run_test_ssz_generic_spec_tests.dependOn(&run_test_ssz_generic_spec_tests.step);
tls_run_test.dependOn(&run_test_ssz_generic_spec_tests.step);
const module_ssz_static_spec_tests = b.createModule(.{
.root_source_file = b.path("test/spec/ssz/static_tests.zig"),
.target = target,
.optimize = optimize,
});
b.modules.put(b.dupe("ssz_static_spec_tests"), module_ssz_static_spec_tests) catch @panic("OOM");
const test_ssz_static_spec_tests = b.addTest(.{
.name = "ssz_static_spec_tests",
.root_module = module_ssz_static_spec_tests,
.filters = b.option([][]const u8, "ssz_static_spec_tests.filters", "ssz_static_spec_tests test filters") orelse &[_][]const u8{},
});
const install_test_ssz_static_spec_tests = b.addInstallArtifact(test_ssz_static_spec_tests, .{});
const tls_install_test_ssz_static_spec_tests = b.step("build-test:ssz_static_spec_tests", "Install the ssz_static_spec_tests test");
tls_install_test_ssz_static_spec_tests.dependOn(&install_test_ssz_static_spec_tests.step);
const run_test_ssz_static_spec_tests = b.addRunArtifact(test_ssz_static_spec_tests);
const tls_run_test_ssz_static_spec_tests = b.step("test:ssz_static_spec_tests", "Run the ssz_static_spec_tests test");
tls_run_test_ssz_static_spec_tests.dependOn(&run_test_ssz_static_spec_tests.step);
tls_run_test.dependOn(&run_test_ssz_static_spec_tests.step);
module_config.addImport("build_options", options_module_build_options);
module_config.addImport("preset", module_preset);
module_config.addImport("consensus_types", module_consensus_types);
module_config.addImport("hex", module_hex);
module_config.addImport("constants", module_constants);
module_consensus_types.addImport("build_options", options_module_build_options);
module_consensus_types.addImport("ssz", module_ssz);
module_consensus_types.addImport("constants", module_constants);
module_consensus_types.addImport("preset", module_preset);
module_era.addImport("consensus_types", module_consensus_types);
module_era.addImport("config", module_config);
module_era.addImport("fork_types", module_fork_types);
module_era.addImport("preset", module_preset);
module_era.addImport("state_transition", module_state_transition);
module_era.addImport("snappy", dep_snappy.module("snappy"));
module_era.addImport("persistent_merkle_tree", module_persistent_merkle_tree);
module_hashing.addImport("build_options", options_module_build_options);
module_hashing.addImport("hex", module_hex);
module_hashing.addImport("hashtree", dep_hashtree.module("hashtree"));
module_fork_types.addImport("consensus_types", module_consensus_types);
module_fork_types.addImport("config", module_config);
module_fork_types.addImport("persistent_merkle_tree", module_persistent_merkle_tree);
module_fork_types.addImport("preset", module_preset);
module_fork_types.addImport("ssz", module_ssz);
module_persistent_merkle_tree.addImport("build_options", options_module_build_options);
module_persistent_merkle_tree.addImport("hex", module_hex);
module_persistent_merkle_tree.addImport("hashing", module_hashing);
module_preset.addImport("build_options", options_module_build_options);
module_preset.addImport("constants", module_constants);
module_ssz.addImport("build_options", options_module_build_options);
module_ssz.addImport("hex", module_hex);
module_ssz.addImport("hashing", module_hashing);
module_ssz.addImport("persistent_merkle_tree", module_persistent_merkle_tree);
module_state_transition.addImport("build_options", options_module_build_options);
module_state_transition.addImport("ssz", module_ssz);
module_state_transition.addImport("config", module_config);
module_state_transition.addImport("consensus_types", module_consensus_types);
module_state_transition.addImport("blst", dep_blst.module("blst"));
module_state_transition.addImport("fork_types", module_fork_types);
module_state_transition.addImport("preset", module_preset);
module_state_transition.addImport("constants", module_constants);
module_state_transition.addImport("hex", module_hex);
module_state_transition.addImport("persistent_merkle_tree", module_persistent_merkle_tree);
module_state_transition.addImport("metrics", dep_metrics.module("metrics"));
module_download_era_files.addImport("download_era_options", options_module_download_era_options);
module_metrics_era.addImport("consensus_types", module_consensus_types);
module_metrics_era.addImport("state_transition", module_state_transition);
module_metrics_era.addImport("download_era_options", options_module_download_era_options);
module_metrics_era.addImport("era", module_era);
module_metrics_era.addImport("config", module_config);
module_metrics_era.addImport("preset", module_preset);
module_metrics_era.addImport("httpz", dep_httpz.module("httpz"));
module_download_spec_tests.addImport("spec_test_options", options_module_spec_test_options);
module_write_spec_tests.addImport("spec_test_options", options_module_spec_test_options);
module_write_spec_tests.addImport("config", module_config);
module_write_spec_tests.addImport("preset", module_preset);
module_write_spec_tests.addImport("consensus_types", module_consensus_types);
module_write_spec_tests.addImport("state_transition", module_state_transition);
module_write_ssz_generic_spec_tests.addImport("spec_test_options", options_module_spec_test_options);
module_write_ssz_static_spec_tests.addImport("spec_test_options", options_module_spec_test_options);
module_bench_ssz_attestation.addImport("consensus_types", module_consensus_types);
module_bench_ssz_attestation.addImport("ssz", module_ssz);
module_bench_ssz_attestation.addImport("zbench", dep_zbench.module("zbench"));
module_bench_ssz_block.addImport("consensus_types", module_consensus_types);
module_bench_ssz_block.addImport("ssz", module_ssz);
module_bench_ssz_block.addImport("zbench", dep_zbench.module("zbench"));
module_bench_ssz_state.addImport("consensus_types", module_consensus_types);
module_bench_ssz_state.addImport("ssz", module_ssz);
module_bench_ssz_state.addImport("zbench", dep_zbench.module("zbench"));
module_bench_merkle_gindex.addImport("hashing", module_hashing);
module_bench_merkle_gindex.addImport("persistent_merkle_tree", module_persistent_merkle_tree);
module_bench_merkle_gindex.addImport("zbench", dep_zbench.module("zbench"));
module_bench_merkle_node.addImport("hashing", module_hashing);
module_bench_merkle_node.addImport("zbench", dep_zbench.module("zbench"));
module_bench_hashing.addImport("hashing", module_hashing);