We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa40dad commit 9839d72Copy full SHA for 9839d72
4 files changed
gen_large.py
@@ -0,0 +1,26 @@
1
+start = 1025
2
+end = 5000
3
+skip_list = [2048, 4096]
4
+
5
+print("//! do not edit, auto generated by:\n//!\tpython gen_large.py > src/sizes/auto_gen.rs\n")
6
+print("use super::{impl_array_sizes, impl_array_sizes_with_import, uint};\n")
7
8
+# first we implement the missing ArraySizes up to 1024
9
+print("impl_array_sizes_with_import! {")
10
+for i in range(513, 1024):
11
+ if i%16 == 0:
12
+ continue
13
+ print(" " + str(i) + " => " + "U" + str(i) + ",")
14
+print("}\n")
15
16
+for i in range(start, end):
17
+ if i in skip_list:
18
19
+ print("pub type U" + str(i) + " = uint!(" + " ".join(bin(i)[2:][::-1]) + ");")
20
21
+print("impl_array_sizes! {")
22
23
24
25
26
+print("}")
0 commit comments