minot-cli 0.15.0__tar.gz → 0.15.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. {minot_cli-0.15.0 → minot_cli-0.15.2}/Cargo.lock +16 -15
  2. {minot_cli-0.15.0 → minot_cli-0.15.2}/Cargo.toml +14 -14
  3. {minot_cli-0.15.0 → minot_cli-0.15.2}/PKG-INFO +1 -1
  4. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/app.rs +67 -70
  5. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/coord.rs +1 -1
  6. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/gen_c.rs +14 -14
  7. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/minot.rs +16 -13
  8. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/ui.rs +38 -38
  9. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_bagread/src/lib.rs +34 -38
  10. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_coord/src/lib.rs +15 -14
  11. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/minot/remote_file.rs +0 -1
  12. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/storage/cache.rs +4 -1
  13. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_log/src/tests.rs +6 -2
  14. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_mtc/src/lib.rs +11 -11
  15. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_net/src/image.rs +4 -3
  16. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_net/src/lib.rs +0 -1
  17. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/Cargo.toml +6 -3
  18. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/README.md +1 -1
  19. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/examples/sub.rs +1 -1
  20. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/src/lib.rs +64 -12
  21. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/src/peer.rs +10 -3
  22. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/src/quic.rs +25 -2
  23. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/src/quic_shm.rs +38 -8
  24. minot_cli-0.15.2/mt_pubsub/src/transfer.rs +29 -0
  25. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_sea/src/claim.rs +4 -1
  26. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_sea/src/client.rs +227 -128
  27. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_sea/src/coordinator.rs +3 -1
  28. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_sea/src/lib.rs +8 -2
  29. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_sea/src/network.rs +3 -6
  30. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_sea/src/ship.rs +34 -20
  31. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_service/examples/basic_service_server.rs +1 -1
  32. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_service/src/lib.rs +8 -22
  33. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_wind/src/mt_pubsub.rs +42 -18
  34. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/Cargo.toml +0 -0
  35. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/README.md +0 -0
  36. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/build.rs +0 -0
  37. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/event.rs +0 -0
  38. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/gen_c.rs.patch +0 -0
  39. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/gen_c.rs.patch2 +0 -0
  40. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/gen_c_tests.rs +0 -0
  41. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/handler.rs +0 -0
  42. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/runner.rs +0 -0
  43. {minot_cli-0.15.0 → minot_cli-0.15.2}/minot/src/tui.rs +0 -0
  44. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_bagread/Cargo.toml +0 -0
  45. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_bagread/README.md +0 -0
  46. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_bagread/examples/stream_probe.rs +0 -0
  47. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_bagread/src/camera.rs +0 -0
  48. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_bagread/src/camera_tests.rs +0 -0
  49. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_bagread/src/end_of_stream_tests.rs +0 -0
  50. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_bagread/src/qos.rs +0 -0
  51. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_bagread/test/metadata-v5.yml +0 -0
  52. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_bagread/test/metadata-v9.yml +0 -0
  53. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_coord/Cargo.toml +0 -0
  54. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_coord/README.md +0 -0
  55. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/Cargo.toml +0 -0
  56. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/default.rl +0 -0
  57. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/cleanup.rs +0 -0
  58. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/core/marina.rs +0 -0
  59. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/core/mod.rs +0 -0
  60. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/io/bag.rs +0 -0
  61. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/io/db3_transform.rs +0 -0
  62. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/io/mcap_transform.rs +0 -0
  63. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/io/mod.rs +0 -0
  64. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/io/pack.rs +0 -0
  65. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/io/transform_progress.rs +0 -0
  66. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/lib.rs +0 -0
  67. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/model/bag_ref.rs +0 -0
  68. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/model/mod.rs +0 -0
  69. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/progress.rs +0 -0
  70. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/driver.rs +0 -0
  71. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/folder.rs +0 -0
  72. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/gdrive.rs +0 -0
  73. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/gdrive_auth.rs +0 -0
  74. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/http.rs +0 -0
  75. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/minot/block_store.rs +0 -0
  76. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/minot/mod.rs +0 -0
  77. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/minot/protocol.rs +0 -0
  78. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/mod.rs +0 -0
  79. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/ssh.rs +0 -0
  80. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/stub.rs +0 -0
  81. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/registry/transfer_progress.rs +0 -0
  82. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/storage/config.rs +0 -0
  83. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_dataset/src/storage/mod.rs +0 -0
  84. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_flow/Cargo.toml +0 -0
  85. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_flow/src/lib.rs +0 -0
  86. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_log/Cargo.toml +0 -0
  87. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_log/README.md +0 -0
  88. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_log/src/buffer.rs +0 -0
  89. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_log/src/format.rs +0 -0
  90. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_log/src/init.rs +0 -0
  91. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_log/src/lib.rs +0 -0
  92. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_log/src/logger.rs +0 -0
  93. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_log/src/pane.rs +0 -0
  94. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_mtc/Cargo.toml +0 -0
  95. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_mtc/README.md +0 -0
  96. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_net/Cargo.toml +0 -0
  97. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_net/README.md +0 -0
  98. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_net/examples/c_interop_layout.rs +0 -0
  99. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_net/examples/c_interop_pc2.rs +0 -0
  100. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_net/examples/c_interop_test.rs +0 -0
  101. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_net/src/bin_layout.rs +0 -0
  102. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_net/src/c_interop_test.rs +0 -0
  103. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_net/src/image/tests.rs +0 -0
  104. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/examples/be_node.rs +0 -0
  105. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/examples/be_sub.rs +0 -0
  106. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/examples/be_sub_drop.rs +0 -0
  107. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/examples/be_sub_error.rs +0 -0
  108. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/examples/blackout.rs +0 -0
  109. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/examples/pub.rs +0 -0
  110. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/examples/smol.rs +0 -0
  111. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/examples/transfer.rs +0 -0
  112. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/src/coordinated.rs +0 -0
  113. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/src/quic_plain.rs +0 -0
  114. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_pubsub/src/quic_stream.rs +0 -0
  115. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_scope/Cargo.toml +0 -0
  116. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_scope/README.md +0 -0
  117. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_scope/examples/test.rs +0 -0
  118. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_scope/src/lib.rs +0 -0
  119. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_sea/Cargo.toml +0 -0
  120. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_sea/README.md +0 -0
  121. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_sea/src/net.rs +0 -0
  122. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_service/Cargo.toml +0 -0
  123. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_service/README.md +0 -0
  124. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_service/examples/bad_service_client.rs +0 -0
  125. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_service/examples/basic_service_client.rs +0 -0
  126. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_service/examples/basic_service_client2.rs +0 -0
  127. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_wind/Cargo.toml +0 -0
  128. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_wind/README.md +0 -0
  129. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_wind/src/hiroz.rs +0 -0
  130. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_wind/src/lib.rs +0 -0
  131. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_wind/src/ros1.rs +0 -0
  132. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_wind/src/ros2.rs +0 -0
  133. {minot_cli-0.15.0 → minot_cli-0.15.2}/mt_wind/src/ros2_r2r.rs +0 -0
  134. {minot_cli-0.15.0 → minot_cli-0.15.2}/pyproject.toml +0 -0
@@ -3800,7 +3800,7 @@ dependencies = [
3800
3800
 
3801
3801
  [[package]]
3802
3802
  name = "minot"
3803
- version = "0.15.0"
3803
+ version = "0.15.2"
3804
3804
  dependencies = [
3805
3805
  "anyhow",
3806
3806
  "bytesize",
@@ -3937,7 +3937,7 @@ dependencies = [
3937
3937
 
3938
3938
  [[package]]
3939
3939
  name = "mt_action"
3940
- version = "0.15.0"
3940
+ version = "0.15.2"
3941
3941
  dependencies = [
3942
3942
  "anyhow",
3943
3943
  "log",
@@ -3952,7 +3952,7 @@ dependencies = [
3952
3952
 
3953
3953
  [[package]]
3954
3954
  name = "mt_bagread"
3955
- version = "0.15.0"
3955
+ version = "0.15.2"
3956
3956
  dependencies = [
3957
3957
  "anyhow",
3958
3958
  "camino",
@@ -3973,7 +3973,7 @@ dependencies = [
3973
3973
 
3974
3974
  [[package]]
3975
3975
  name = "mt_coord"
3976
- version = "0.15.0"
3976
+ version = "0.15.2"
3977
3977
  dependencies = [
3978
3978
  "anyhow",
3979
3979
  "fs2",
@@ -3987,7 +3987,7 @@ dependencies = [
3987
3987
 
3988
3988
  [[package]]
3989
3989
  name = "mt_dataset"
3990
- version = "0.15.0"
3990
+ version = "0.15.2"
3991
3991
  dependencies = [
3992
3992
  "anyhow",
3993
3993
  "async-trait",
@@ -4030,7 +4030,7 @@ dependencies = [
4030
4030
 
4031
4031
  [[package]]
4032
4032
  name = "mt_flow"
4033
- version = "0.15.0"
4033
+ version = "0.15.2"
4034
4034
  dependencies = [
4035
4035
  "anyhow",
4036
4036
  "env_logger",
@@ -4044,7 +4044,7 @@ dependencies = [
4044
4044
 
4045
4045
  [[package]]
4046
4046
  name = "mt_log"
4047
- version = "0.15.0"
4047
+ version = "0.15.2"
4048
4048
  dependencies = [
4049
4049
  "env_filter 2.0.0",
4050
4050
  "env_logger",
@@ -4057,7 +4057,7 @@ dependencies = [
4057
4057
 
4058
4058
  [[package]]
4059
4059
  name = "mt_mtc"
4060
- version = "0.15.0"
4060
+ version = "0.15.2"
4061
4061
  dependencies = [
4062
4062
  "anyhow",
4063
4063
  "ariadne",
@@ -4070,7 +4070,7 @@ dependencies = [
4070
4070
 
4071
4071
  [[package]]
4072
4072
  name = "mt_net"
4073
- version = "0.15.0"
4073
+ version = "0.15.2"
4074
4074
  dependencies = [
4075
4075
  "anyhow",
4076
4076
  "image",
@@ -4081,7 +4081,7 @@ dependencies = [
4081
4081
 
4082
4082
  [[package]]
4083
4083
  name = "mt_pubsub"
4084
- version = "0.15.0"
4084
+ version = "0.15.2"
4085
4085
  dependencies = [
4086
4086
  "anyhow",
4087
4087
  "bytes",
@@ -4091,6 +4091,7 @@ dependencies = [
4091
4091
  "mt_coord",
4092
4092
  "mt_net",
4093
4093
  "mt_sea",
4094
+ "pin-project-lite",
4094
4095
  "quinn",
4095
4096
  "quinn-proto",
4096
4097
  "rcgen",
@@ -4107,7 +4108,7 @@ dependencies = [
4107
4108
 
4108
4109
  [[package]]
4109
4110
  name = "mt_rat"
4110
- version = "0.15.0"
4111
+ version = "0.15.2"
4111
4112
  dependencies = [
4112
4113
  "anyhow",
4113
4114
  "log",
@@ -4121,7 +4122,7 @@ dependencies = [
4121
4122
 
4122
4123
  [[package]]
4123
4124
  name = "mt_scope"
4124
- version = "0.15.0"
4125
+ version = "0.15.2"
4125
4126
  dependencies = [
4126
4127
  "anyhow",
4127
4128
  "env_logger",
@@ -4134,7 +4135,7 @@ dependencies = [
4134
4135
 
4135
4136
  [[package]]
4136
4137
  name = "mt_sea"
4137
- version = "0.15.0"
4138
+ version = "0.15.2"
4138
4139
  dependencies = [
4139
4140
  "anyhow",
4140
4141
  "async-trait",
@@ -4153,7 +4154,7 @@ dependencies = [
4153
4154
 
4154
4155
  [[package]]
4155
4156
  name = "mt_service"
4156
- version = "0.15.0"
4157
+ version = "0.15.2"
4157
4158
  dependencies = [
4158
4159
  "anyhow",
4159
4160
  "log",
@@ -4167,7 +4168,7 @@ dependencies = [
4167
4168
 
4168
4169
  [[package]]
4169
4170
  name = "mt_wind"
4170
- version = "0.15.0"
4171
+ version = "0.15.2"
4171
4172
  dependencies = [
4172
4173
  "anyhow",
4173
4174
  "async-trait",
@@ -4,7 +4,7 @@ members = ["minot", "mt_pubsub", "mt_coord", "mt_bagread", "mt_mtc", "mt_sea", "
4
4
  resolver = "3"
5
5
 
6
6
  [workspace.package]
7
- version = "0.15.0"
7
+ version = "0.15.2"
8
8
  keywords = ["robotics"]
9
9
  license = "MIT OR Apache-2.0"
10
10
  repository = "https://codeberg.org/stelzo/minot.git"
@@ -27,19 +27,19 @@ exclude = [
27
27
  ]
28
28
 
29
29
  [workspace.dependencies]
30
- mt_sea = { path = "mt_sea", version = "0.15.0", default-features = false }
31
- mt_coord = { path = "mt_coord", version = "0.15.0", default-features = false }
32
- mt_pubsub = { path = "mt_pubsub", version = "0.15.0", default-features = false }
33
- mt_service = { path = "mt_service", version = "0.15.0", default-features = false }
34
- mt_action = { path = "mt_action", version = "0.15.0", default-features = false }
35
- mt_scope = { path = "mt_scope", version = "0.15.0", default-features = false }
36
- mt_bagread = { path = "mt_bagread", version = "0.15.0", default-features = false }
37
- mt_net = { path = "mt_net", version = "0.15.0", default-features = false }
38
- mt_flow = { path = "mt_flow", version = "0.15.0", default-features = false }
39
- mt_dataset = { path = "mt_dataset", version = "0.15.0", default-features = false }
40
- mt_wind = { path = "mt_wind", version = "0.15.0", default-features = false }
41
- mt_mtc = { path = "mt_mtc", version = "0.15.0", default-features = false }
42
- mt_log = { path = "mt_log", version = "0.15.0", default-features = false }
30
+ mt_sea = { path = "mt_sea", version = "0.15.2", default-features = false }
31
+ mt_coord = { path = "mt_coord", version = "0.15.2", default-features = false }
32
+ mt_pubsub = { path = "mt_pubsub", version = "0.15.2", default-features = false }
33
+ mt_service = { path = "mt_service", version = "0.15.2", default-features = false }
34
+ mt_action = { path = "mt_action", version = "0.15.2", default-features = false }
35
+ mt_scope = { path = "mt_scope", version = "0.15.2", default-features = false }
36
+ mt_bagread = { path = "mt_bagread", version = "0.15.2", default-features = false }
37
+ mt_net = { path = "mt_net", version = "0.15.2", default-features = false }
38
+ mt_flow = { path = "mt_flow", version = "0.15.2", default-features = false }
39
+ mt_dataset = { path = "mt_dataset", version = "0.15.2", default-features = false }
40
+ mt_wind = { path = "mt_wind", version = "0.15.2", default-features = false }
41
+ mt_mtc = { path = "mt_mtc", version = "0.15.2", default-features = false }
42
+ mt_log = { path = "mt_log", version = "0.15.2", default-features = false }
43
43
 
44
44
  # Tools
45
45
  anyhow = "1.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: minot-cli
3
- Version: 0.15.0
3
+ Version: 0.15.2
4
4
  Classifier: Intended Audience :: Developers
5
5
  Classifier: Intended Audience :: Science/Research
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -460,33 +460,30 @@ impl History {
460
460
  if let Some(sel) = current_buff
461
461
  .iter()
462
462
  .position(|el| matches!(el.state, MatSelectState::Diff))
463
+ && sel + 1 < current_buff.len()
463
464
  {
464
- if sel + 1 < current_buff.len() {
465
- current_buff[sel].state = MatSelectState::Hidden;
466
- current_buff[sel + 1].state = MatSelectState::Diff;
467
- }
465
+ current_buff[sel].state = MatSelectState::Hidden;
466
+ current_buff[sel + 1].state = MatSelectState::Diff;
468
467
  }
469
468
  }
470
469
  VerticalDirection::Down => {
471
470
  if let Some(sel) = current_buff
472
471
  .iter()
473
472
  .position(|el| matches!(el.state, MatSelectState::Diff))
473
+ && sel - 1 > 0
474
474
  {
475
- if sel - 1 > 0 {
476
- current_buff[sel].state = MatSelectState::Hidden;
477
- current_buff[sel - 1].state = MatSelectState::Diff;
478
- }
475
+ current_buff[sel].state = MatSelectState::Hidden;
476
+ current_buff[sel - 1].state = MatSelectState::Diff;
479
477
  }
480
478
  }
481
479
  VerticalDirection::Row(idx) => {
482
480
  if let Some(sel) = current_buff
483
481
  .iter()
484
482
  .position(|el| matches!(el.state, MatSelectState::Diff))
483
+ && idx < current_buff.len()
485
484
  {
486
- if idx < current_buff.len() {
487
- current_buff[sel].state = MatSelectState::Hidden;
488
- current_buff[idx].state = MatSelectState::Diff;
489
- }
485
+ current_buff[sel].state = MatSelectState::Hidden;
486
+ current_buff[idx].state = MatSelectState::Diff;
490
487
  }
491
488
  }
492
489
  }
@@ -525,66 +522,66 @@ impl History {
525
522
  }
526
523
 
527
524
  pub fn scroll_history(&mut self, direction: HorizontalDirection) {
528
- if let Some(curr_cursor) = self.cursor.as_ref() {
529
- if let Some(idx) = self.history.iter().position(|(k, _)| k == curr_cursor) {
530
- let new_idx = match direction {
531
- HorizontalDirection::Left => {
532
- if idx == 0 {
533
- idx
534
- } else {
535
- idx - 1
536
- }
525
+ if let Some(curr_cursor) = self.cursor.as_ref()
526
+ && let Some(idx) = self.history.iter().position(|(k, _)| k == curr_cursor)
527
+ {
528
+ let new_idx = match direction {
529
+ HorizontalDirection::Left => {
530
+ if idx == 0 {
531
+ idx
532
+ } else {
533
+ idx - 1
537
534
  }
538
- HorizontalDirection::Right => {
539
- if idx == self.history.len() - 1 {
540
- idx
541
- } else {
542
- idx + 1
543
- }
535
+ }
536
+ HorizontalDirection::Right => {
537
+ if idx == self.history.len() - 1 {
538
+ idx
539
+ } else {
540
+ idx + 1
544
541
  }
545
- HorizontalDirection::Col(idx) => idx,
546
- };
547
-
548
- self.cursor = Some(
549
- self.history
550
- .get(new_idx)
551
- .expect("new history idx not checked correctly")
552
- .clone()
553
- .0,
554
- );
542
+ }
543
+ HorizontalDirection::Col(idx) => idx,
544
+ };
555
545
 
556
- // enable the first entries from the newly focused buffer if there are none in there
557
- let new_ref = self.key_of_ref();
558
- let new_diff = self.key_of_diff();
546
+ self.cursor = Some(
547
+ self.history
548
+ .get(new_idx)
549
+ .expect("new history idx not checked correctly")
550
+ .clone()
551
+ .0,
552
+ );
559
553
 
560
- match (new_ref, new_diff) {
561
- (None, None) => {
562
- let mut next_buff = self.history[new_idx].1.lock().unwrap();
554
+ // enable the first entries from the newly focused buffer if there are none in there
555
+ let new_ref = self.key_of_ref();
556
+ let new_diff = self.key_of_diff();
563
557
 
564
- if let Some(next_ref) = next_buff.first_mut() {
565
- next_ref.state = MatSelectState::Focused;
566
- }
558
+ match (new_ref, new_diff) {
559
+ (None, None) => {
560
+ let mut next_buff = self.history[new_idx].1.lock().unwrap();
567
561
 
568
- if let Some(next_diff) = next_buff.get_mut(2) {
569
- next_diff.state = MatSelectState::Diff;
570
- }
562
+ if let Some(next_ref) = next_buff.first_mut() {
563
+ next_ref.state = MatSelectState::Focused;
571
564
  }
572
- (None, Some(_diff_idx)) => {
573
- unreachable!("Diff exists but no ref");
565
+
566
+ if let Some(next_diff) = next_buff.get_mut(2) {
567
+ next_diff.state = MatSelectState::Diff;
574
568
  }
575
- (Some(_ref_idx), None) => {
576
- let mut next_buff = self.history[new_idx].1.lock().unwrap();
577
-
578
- // find next best non-focused hentry
579
- if let Some(n) = next_buff
580
- .iter_mut()
581
- .find(|hentry| !matches!(hentry.state, MatSelectState::Focused))
582
- {
583
- n.state = MatSelectState::Diff;
584
- }
569
+ }
570
+ (None, Some(_diff_idx)) => {
571
+ unreachable!("Diff exists but no ref");
572
+ }
573
+ (Some(_ref_idx), None) => {
574
+ let mut next_buff = self.history[new_idx].1.lock().unwrap();
575
+
576
+ // find next best non-focused hentry
577
+ if let Some(n) = next_buff
578
+ .iter_mut()
579
+ .find(|hentry| !matches!(hentry.state, MatSelectState::Focused))
580
+ {
581
+ n.state = MatSelectState::Diff;
585
582
  }
586
- (Some(_ref_idx), Some(_diff_idx)) => {}
587
583
  }
584
+ (Some(_ref_idx), Some(_diff_idx)) => {}
588
585
  }
589
586
  }
590
587
  }
@@ -675,7 +672,7 @@ impl Display for Coordinator {
675
672
  fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
676
673
  match self.locked {
677
674
  false => f.write_str(&self.state),
678
- true => f.write_fmt(format_args!("🔒{}", &self.state)),
675
+ true => f.write_fmt(format_args!("🔒{}", self.state)),
679
676
  }
680
677
  }
681
678
  }
@@ -1780,7 +1777,7 @@ impl App {
1780
1777
  None => {
1781
1778
  error!(
1782
1779
  "Received Dyn Wind request for {} but no data available.",
1783
- &var
1780
+ var
1784
1781
  );
1785
1782
  continue;
1786
1783
  }
@@ -1961,7 +1958,7 @@ impl App {
1961
1958
  for (_, msg) in bagmsgs.messages.iter() {
1962
1959
  *wc.replayed.entry(msg.topic.clone()).or_default() += 1;
1963
1960
  }
1964
- report_ended_streams(&mut wc, &kind);
1961
+ report_ended_streams(&mut wc, kind);
1965
1962
  format_replayed(&wc.replayed)
1966
1963
  };
1967
1964
 
@@ -2608,11 +2605,11 @@ impl App {
2608
2605
  }
2609
2606
 
2610
2607
  pub fn wind_toggle_zen(&mut self) {
2611
- if self.wind_mode() {
2612
- if let Mode::Wind { hide_compare } = self.mode {
2613
- self.mode = Mode::Wind {
2614
- hide_compare: !hide_compare,
2615
- }
2608
+ if self.wind_mode()
2609
+ && let Mode::Wind { hide_compare } = self.mode
2610
+ {
2611
+ self.mode = Mode::Wind {
2612
+ hide_compare: !hide_compare,
2616
2613
  }
2617
2614
  }
2618
2615
  }
@@ -29,7 +29,7 @@ pub fn get_clients(eval: &Evaluated) -> anyhow::Result<HashSet<String>> {
29
29
  let mut clients = HashSet::new();
30
30
 
31
31
  // ships from rules
32
- for (_, inner_clients) in eval.rules.raw().iter() {
32
+ for inner_clients in eval.rules.raw().values() {
33
33
  inner_clients.iter().for_each(|client| {
34
34
  if let Some(strat) = &client.strategy {
35
35
  match strat {
@@ -229,10 +229,11 @@ fn resolve_minot_repo_root() -> Result<PathBuf> {
229
229
  let manifest_parent = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
230
230
  .parent()
231
231
  .map(PathBuf::from);
232
- if let Some(root) = manifest_parent {
233
- if root.join("mt_pubsub").exists() && root.join("mt_sea").exists() {
234
- return Ok(root);
235
- }
232
+ if let Some(root) = manifest_parent
233
+ && root.join("mt_pubsub").exists()
234
+ && root.join("mt_sea").exists()
235
+ {
236
+ return Ok(root);
236
237
  }
237
238
  bail!(
238
239
  "Could not find minot repo root with mt_pubsub and mt_sea. Run from repo root or set MINOT_REPO_ROOT."
@@ -2112,10 +2113,10 @@ impl Resolver {
2112
2113
 
2113
2114
  fn find_struct(file: &File, name: &str) -> Option<syn::ItemStruct> {
2114
2115
  for item in &file.items {
2115
- if let Item::Struct(st) = item {
2116
- if st.ident == name {
2117
- return Some(st.clone());
2118
- }
2116
+ if let Item::Struct(st) = item
2117
+ && st.ident == name
2118
+ {
2119
+ return Some(st.clone());
2119
2120
  }
2120
2121
  }
2121
2122
  None
@@ -2228,12 +2229,11 @@ fn is_vec(ty: &Type) -> Option<&Type> {
2228
2229
  match ty {
2229
2230
  Type::Path(TypePath { path, .. }) => {
2230
2231
  let last = path.segments.last()?.ident.to_string();
2231
- if last == "Vec" {
2232
- if let syn::PathArguments::AngleBracketed(args) = &path.segments.last()?.arguments {
2233
- if let Some(syn::GenericArgument::Type(inner_ty)) = args.args.first() {
2234
- return Some(inner_ty);
2235
- }
2236
- }
2232
+ if last == "Vec"
2233
+ && let syn::PathArguments::AngleBracketed(args) = &path.segments.last()?.arguments
2234
+ && let Some(syn::GenericArgument::Type(inner_ty)) = args.args.first()
2235
+ {
2236
+ return Some(inner_ty);
2237
2237
  }
2238
2238
  None
2239
2239
  }
@@ -37,7 +37,7 @@ const EMBED_HIROZ_TURBINE_NAME: &'static str = "embedded_hiroz_turbine";
37
37
  #[cfg(feature = "embed-ros1-turbine")]
38
38
  const EMBED_ROS1_TURBINE_NAME: &'static str = "embedded_ros1_turbine";
39
39
  #[cfg(feature = "embed-mt-pubsub-turbine")]
40
- const EMBED_RATPUB_TURBINE_NAME: &'static str = "embedded_ratpub_turbine";
40
+ const EMBED_RATPUB_TURBINE_NAME: &str = "embedded_ratpub_turbine";
41
41
 
42
42
  #[derive(Debug, Clone, Subcommand)]
43
43
  pub enum ServeCommand {}
@@ -63,9 +63,11 @@ pub(crate) struct Args {
63
63
  pub no_shm: bool,
64
64
 
65
65
  /// Size of the shared memory buffer pool (e.g., "16MiB", "64MiB", "1GiB").
66
+ /// Without it the pool takes 16MiB, at most half of the memory lock limit
67
+ /// (`ulimit -l`), because Zenoh locks its shared memory.
66
68
  #[cfg(feature = "shm")]
67
- #[arg(long, global = true, default_value = "16MiB", value_parser = parse_bytesize)]
68
- pub shm_size: ByteSize,
69
+ #[arg(long, global = true, value_parser = parse_bytesize)]
70
+ pub shm_size: Option<ByteSize>,
69
71
 
70
72
  /// Minimum payload size for SHM transport.
71
73
  #[cfg(feature = "shm")]
@@ -294,7 +296,7 @@ pub(crate) enum Commands {
294
296
 
295
297
  async fn tui(args: TuiArgs) -> Result<(), Box<dyn std::error::Error>> {
296
298
  let path = args.file;
297
- println!("Compiling {:#?}", &path.canonicalize()?);
299
+ println!("Compiling {:#?}", path.canonicalize()?);
298
300
  let eval = mt_mtc::compile_file(&path, None, None)?;
299
301
  // remove compile feebback
300
302
  print!("\x1b[1A");
@@ -346,7 +348,7 @@ async fn tui(args: TuiArgs) -> Result<(), Box<dyn std::error::Error>> {
346
348
  #[cfg(feature = "embed-mt-pubsub-turbine")]
347
349
  {
348
350
  let wind_name =
349
- mt_wind::get_env_or_default("ratpub_wind_name", &EMBED_RATPUB_TURBINE_NAME)?;
351
+ mt_wind::get_env_or_default("ratpub_wind_name", EMBED_RATPUB_TURBINE_NAME)?;
350
352
 
351
353
  tokio::spawn(async move {
352
354
  let (tx, rx) = tokio::sync::oneshot::channel();
@@ -373,7 +375,7 @@ async fn tui(args: TuiArgs) -> Result<(), Box<dyn std::error::Error>> {
373
375
  .canonicalize()
374
376
  .expect("Should have failed in prev compilation.");
375
377
  let joined = cfg_parent.join(cfpath);
376
- println!("Compiling separate wind {:#?}", &joined);
378
+ println!("Compiling separate wind {:#?}", joined);
377
379
 
378
380
  mt_mtc::compile_file(&joined, None, None)?
379
381
  }
@@ -414,7 +416,7 @@ async fn tui(args: TuiArgs) -> Result<(), Box<dyn std::error::Error>> {
414
416
  #[cfg(feature = "embed-mt-pubsub-turbine")]
415
417
  {
416
418
  let wind_name =
417
- mt_wind::get_env_or_default("wind_ratpub_name", &EMBED_RATPUB_TURBINE_NAME)?;
419
+ mt_wind::get_env_or_default("wind_ratpub_name", EMBED_RATPUB_TURBINE_NAME)?;
418
420
  if mt_wind::mt_pubsub::publisher_registers()? {
419
421
  clients.insert(wind_name.clone() + "_pub");
420
422
  }
@@ -988,8 +990,7 @@ async fn async_play(
988
990
 
989
991
  #[cfg(feature = "embed-mt-pubsub-turbine")]
990
992
  {
991
- let wind_name =
992
- mt_wind::get_env_or_default("ratpub_wind_name", &EMBED_RATPUB_TURBINE_NAME)?;
993
+ let wind_name = mt_wind::get_env_or_default("ratpub_wind_name", EMBED_RATPUB_TURBINE_NAME)?;
993
994
  if mt_wind::mt_pubsub::publisher_registers()? {
994
995
  clients.insert(wind_name.clone() + "_pub");
995
996
  }
@@ -1486,7 +1487,7 @@ async fn serve(args: ServeArgs) -> Result<(), Box<dyn std::error::Error>> {
1486
1487
  .canonicalize()
1487
1488
  .expect("Should have failed in prev compilation.");
1488
1489
  let joined = cfg_parent.join(cfpath);
1489
- println!("Compiling separate wind {:#?}", &joined);
1490
+ println!("Compiling separate wind {:#?}", joined);
1490
1491
 
1491
1492
  mt_mtc::compile_file(&joined, None, None)?
1492
1493
  }
@@ -1536,7 +1537,7 @@ async fn serve(args: ServeArgs) -> Result<(), Box<dyn std::error::Error>> {
1536
1537
  {
1537
1538
  let wind_name = mt_wind::get_env_or_default(
1538
1539
  "wind_ratpub_name",
1539
- &EMBED_RATPUB_TURBINE_NAME,
1540
+ EMBED_RATPUB_TURBINE_NAME,
1540
1541
  )?;
1541
1542
  if mt_wind::mt_pubsub::publisher_registers()? {
1542
1543
  clients.insert(wind_name.clone() + "_pub");
@@ -1560,7 +1561,7 @@ async fn serve(args: ServeArgs) -> Result<(), Box<dyn std::error::Error>> {
1560
1561
  let ratpub_ready_rx = {
1561
1562
  let wind_name = mt_wind::get_env_or_default(
1562
1563
  "ratpub_wind_name",
1563
- &EMBED_RATPUB_TURBINE_NAME,
1564
+ EMBED_RATPUB_TURBINE_NAME,
1564
1565
  )?;
1565
1566
 
1566
1567
  let (ready_tx, ready_rx) = tokio::sync::oneshot::channel();
@@ -2094,7 +2095,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
2094
2095
  if args.no_shm {
2095
2096
  std::env::set_var("MINOT_SHM_DISABLED", "1");
2096
2097
  }
2097
- std::env::set_var("MINOT_SHM_SIZE", args.shm_size.as_u64().to_string());
2098
+ if let Some(size) = args.shm_size {
2099
+ std::env::set_var("MINOT_SHM_SIZE", size.as_u64().to_string());
2100
+ }
2098
2101
  std::env::set_var(
2099
2102
  "MINOT_SHM_THRESHOLD",
2100
2103
  args.shm_threshold.as_u64().to_string(),
@@ -164,48 +164,48 @@ pub fn render(app: &mut App, frame: &mut Frame) {
164
164
  } as usize;
165
165
 
166
166
  // render reference
167
- if curr_history.shows_ref() {
168
- if let Some((_key, lmat)) = app.compare.left.as_ref() {
169
- let ltable = lmat.render(precision).unwrap();
170
- if let Some(ltable) = ltable {
171
- let ltable = ltable
172
- .cell_highlight_style(selected_style)
173
- .highlight_spacing(HighlightSpacing::Always)
174
- .block(
175
- Block::new()
176
- .border_type(BorderType::Plain)
177
- .borders(Borders::RIGHT)
178
- .padding(Padding::horizontal(1)),
179
- );
180
- frame.render_stateful_widget(
181
- ltable,
182
- client_base_area,
183
- &mut app.compare.left_state,
167
+ if curr_history.shows_ref()
168
+ && let Some((_key, lmat)) = app.compare.left.as_ref()
169
+ {
170
+ let ltable = lmat.render(precision).unwrap();
171
+ if let Some(ltable) = ltable {
172
+ let ltable = ltable
173
+ .cell_highlight_style(selected_style)
174
+ .highlight_spacing(HighlightSpacing::Always)
175
+ .block(
176
+ Block::new()
177
+ .border_type(BorderType::Plain)
178
+ .borders(Borders::RIGHT)
179
+ .padding(Padding::horizontal(1)),
184
180
  );
185
- }
186
- };
187
- }
181
+ frame.render_stateful_widget(
182
+ ltable,
183
+ client_base_area,
184
+ &mut app.compare.left_state,
185
+ );
186
+ }
187
+ };
188
188
 
189
189
  // render diff
190
- if curr_history.shows_diff() {
191
- if let Some((_key, rmat)) = app.compare.right.as_ref() {
192
- let rtable = rmat.render(precision).unwrap();
193
- if let Some(rtable) = rtable {
194
- let rtable = rtable
195
- .cell_highlight_style(selected_style)
196
- .highlight_spacing(HighlightSpacing::Always)
197
- .block(
198
- Block::new()
199
- .border_type(BorderType::Plain)
200
- .borders(Borders::LEFT)
201
- .padding(Padding::horizontal(2)),
202
- );
203
- frame.render_stateful_widget(
204
- rtable,
205
- client_diff_area,
206
- &mut app.compare.right_state,
190
+ if curr_history.shows_diff()
191
+ && let Some((_key, rmat)) = app.compare.right.as_ref()
192
+ {
193
+ let rtable = rmat.render(precision).unwrap();
194
+ if let Some(rtable) = rtable {
195
+ let rtable = rtable
196
+ .cell_highlight_style(selected_style)
197
+ .highlight_spacing(HighlightSpacing::Always)
198
+ .block(
199
+ Block::new()
200
+ .border_type(BorderType::Plain)
201
+ .borders(Borders::LEFT)
202
+ .padding(Padding::horizontal(2)),
207
203
  );
208
- }
204
+ frame.render_stateful_widget(
205
+ rtable,
206
+ client_diff_area,
207
+ &mut app.compare.right_state,
208
+ );
209
209
  }
210
210
  }
211
211