CARVIEW |
Select Language
HTTP/2 200
date: Sun, 20 Jul 2025 05:46:12 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/aeron-io/simple-binary-encoding.git
etag: W/"cc52a14cdca8eee10415e23fe75f7f6e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=fCKErSHkbE1u6zaDZ71aPhMNCHM6reZ7JMEaMBgYox9Ke7aaPokhcXYN6QqMng3tnHP4dJyDtdD4KwF03m%2Bv6A8cJvxbDM%2Figy%2BgDr%2BWqeCWyjGsvpN29mjoEIitZZhaNkWnUF1Wm%2B0gPHABCpRVylxHs16K5AEPhZZsJEQCjTUHH09Cq9sQkXAX%2BqOq2Zkrkqz8tZOj%2B5BQkRC8tK60%2BfbRwzgssG0sUcv0vJlfF%2BcTBq4yLAXaYgvkRjSjSQLKRFXBrJsK37dMpOHkQvh%2Fgw%3D%3D--F06P%2BYv8ZaNX3uN3--ZT%2BIFUrLLE%2F%2F0DNQoGntVw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.175826853.1752990371; Path=/; Domain=github.com; Expires=Mon, 20 Jul 2026 05:46:11 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 20 Jul 2026 05:46:11 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A120:0A65:691736:8BB26A:687C82A3
[Rust] update how "use declarations" are generated, now deriving Defa… · aeron-io/simple-binary-encoding@c0dae9e · GitHub


authored
Copy file name to clipboardExpand all lines: rust/benches/car_benchmark.rs
Copy file name to clipboardExpand all lines: rust/benches/md_benchmark.rs
Copy file name to clipboardExpand all lines: rust/tests/baseline_test.rs
Copy file name to clipboardExpand all lines: rust/tests/big_endian_test.rs
Copy file name to clipboardExpand all lines: rust/tests/extension_test.rs
Copy file name to clipboardExpand all lines: rust/tests/issue_895_test.rs
Copy file name to clipboardExpand all lines: sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/LibRsDef.java
Copy file name to clipboardExpand all lines: sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java
Copy file name to clipboardExpand all lines: sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustUtil.java
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 542
Commit c0dae9e

[Rust] update how "use declarations" are generated, now deriving Defaults for enums (#952)
* Fixed several issues:
#1: LibRsDef explicitly us crate:: to disambiguate from built in mods like bool
#2: Added acting_version field to Composite structs to fix compilation errors when using Composite structs. This is an incomplete implementation because the parent doesn't pass the acting_version to the composite because you need to change the signature of wrap(parent, offset) to include the acting_version, so this version just ensures that if the acting_version isn't set on the composite, it disregards the version check.
#3: fixed primitiveArrayDecoder to return an empty array of the right size if less than version required.
* [Rust] removed 'acting_version' field from SubGroup decoder
* [Rust] updated RustGenerator::generateEnum() to support derive "Default" instead of generating impl
* fixed formatting issue
* [Rust] updated how 'use declarations' are generated to prevent "ambiguous glob re-exports" warnings from rust compiler
---------
Co-authored-by: Adam Krieg <adam@talostrading.com>
Co-authored-by: Michael Ward <mward@drw.com>1 parent 060031c commit c0dae9eCopy full SHA for c0dae9e
File tree
Expand file treeCollapse file tree
12 files changed
+64
-42
lines changedFilter options
- rust
- benches
- tests
- sbe-tool/src
- main/java/uk/co/real_logic/sbe/generation/rust
- test/java/uk/co/real_logic/sbe/generation/rust
Expand file treeCollapse file tree
12 files changed
+64
-42
lines changed+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
|
rust/benches/car_benchmark.rs
Copy file name to clipboardExpand all lines: rust/benches/car_benchmark.rs+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
|
rust/benches/md_benchmark.rs
Copy file name to clipboardExpand all lines: rust/benches/md_benchmark.rs+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
|
rust/tests/baseline_test.rs
Copy file name to clipboardExpand all lines: rust/tests/baseline_test.rs+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
|
rust/tests/big_endian_test.rs
Copy file name to clipboardExpand all lines: rust/tests/big_endian_test.rs+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
|
rust/tests/extension_test.rs
Copy file name to clipboardExpand all lines: rust/tests/extension_test.rs+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
|
rust/tests/issue_895_test.rs
Copy file name to clipboardExpand all lines: rust/tests/issue_895_test.rs+8-6Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 |
| |
3 | 7 |
| |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
| 8 | + | |
| 9 | + | |
8 | 10 |
| |
9 | 11 |
| |
10 | 12 |
| |
| |||
72 | 74 |
| |
73 | 75 |
| |
74 | 76 |
| |
75 |
| - | |
| 77 | + |
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/LibRsDef.java
Copy file name to clipboardExpand all lines: sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/LibRsDef.java+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 |
| - | |
| 84 | + | |
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
|
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java
Copy file name to clipboardExpand all lines: sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java+45-29Lines changed: 45 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
18 | 19 |
| |
19 | 20 |
| |
20 | 21 |
| |
| |||
119 | 120 |
| |
120 | 121 |
| |
121 | 122 |
| |
122 |
| - | |
| 123 | + | |
123 | 124 |
| |
124 | 125 |
| |
125 | 126 |
| |
| |||
151 | 152 |
| |
152 | 153 |
| |
153 | 154 |
| |
154 |
| - | |
155 |
| - | |
| 155 | + | |
| 156 | + | |
156 | 157 |
| |
157 | 158 |
| |
158 | 159 |
| |
| |||
274 | 275 |
| |
275 | 276 |
| |
276 | 277 |
| |
277 |
| - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
278 | 290 |
| |
279 | 291 |
| |
280 | 292 |
| |
| |||
553 | 565 |
| |
554 | 566 |
| |
555 | 567 |
| |
556 |
| - | |
| 568 | + | |
557 | 569 |
| |
558 | 570 |
| |
559 | 571 |
| |
| |||
587 | 599 |
| |
588 | 600 |
| |
589 | 601 |
| |
590 |
| - | |
| 602 | + | |
591 | 603 |
| |
592 | 604 |
| |
593 | 605 |
| |
| |||
647 | 659 |
| |
648 | 660 |
| |
649 | 661 |
| |
650 |
| - | |
| 662 | + | |
651 | 663 |
| |
652 | 664 |
| |
653 | 665 |
| |
| |||
756 | 768 |
| |
757 | 769 |
| |
758 | 770 |
| |
759 |
| - | |
| 771 | + | |
760 | 772 |
| |
761 | 773 |
| |
762 | 774 |
| |
| |||
809 | 821 |
| |
810 | 822 |
| |
811 | 823 |
| |
812 |
| - | |
| 824 | + | |
813 | 825 |
| |
814 | 826 |
| |
815 | 827 |
| |
| |||
897 | 909 |
| |
898 | 910 |
| |
899 | 911 |
| |
900 |
| - | |
901 |
| - | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
902 | 923 |
| |
| 924 | + | |
903 | 925 |
| |
904 | 926 |
| |
905 | 927 |
| |
| |||
910 | 932 |
| |
911 | 933 |
| |
912 | 934 |
| |
913 |
| - | |
914 |
| - | |
915 |
| - | |
| 935 | + | |
916 | 936 |
| |
917 | 937 |
| |
918 | 938 |
| |
919 | 939 |
| |
920 | 940 |
| |
921 | 941 |
| |
922 |
| - | |
923 |
| - | |
924 |
| - | |
| 942 | + | |
925 | 943 |
| |
926 | 944 |
| |
927 | 945 |
| |
| |||
958 | 976 |
| |
959 | 977 |
| |
960 | 978 |
| |
961 |
| - | |
| 979 | + | |
| 980 | + | |
962 | 981 |
| |
963 | 982 |
| |
964 | 983 |
| |
| |||
973 | 992 |
| |
974 | 993 |
| |
975 | 994 |
| |
976 |
| - | |
| 995 | + | |
| 996 | + | |
977 | 997 |
| |
978 | 998 |
| |
979 | 999 |
| |
| |||
992 | 1012 |
| |
993 | 1013 |
| |
994 | 1014 |
| |
995 |
| - | |
| 1015 | + | |
| 1016 | + | |
996 | 1017 |
| |
997 | 1018 |
| |
998 | 1019 |
| |
| |||
1199 | 1220 |
| |
1200 | 1221 |
| |
1201 | 1222 |
| |
1202 |
| - | |
| 1223 | + | |
1203 | 1224 |
| |
1204 | 1225 |
| |
1205 | 1226 |
| |
| |||
1216 | 1237 |
| |
1217 | 1238 |
| |
1218 | 1239 |
| |
| 1240 | + | |
1219 | 1241 |
| |
1220 | 1242 |
| |
1221 | 1243 |
| |
1222 | 1244 |
| |
1223 |
| - | |
1224 |
| - | |
1225 |
| - | |
1226 |
| - | |
1227 |
| - | |
1228 |
| - | |
1229 | 1245 |
| |
1230 | 1246 |
| |
1231 | 1247 |
| |
| |||
1271 | 1287 |
| |
1272 | 1288 |
| |
1273 | 1289 |
| |
1274 |
| - | |
1275 |
| - | |
| 1290 | + | |
| 1291 | + | |
1276 | 1292 |
| |
1277 | 1293 |
| |
1278 | 1294 |
| |
|
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustUtil.java
Copy file name to clipboardExpand all lines: sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustUtil.java+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
260 | 260 |
| |
261 | 261 |
| |
262 | 262 |
| |
263 |
| - | |
| 263 | + | |
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
| |||
310 | 310 |
| |
311 | 311 |
| |
312 | 312 |
| |
313 |
| - | |
| 313 | + | |
314 | 314 |
| |
315 | 315 |
| |
316 | 316 |
| |
|
You can’t perform that action at this time.
0 commit comments