minot-cli 0.15.1__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.
- {minot_cli-0.15.1 → minot_cli-0.15.2}/Cargo.lock +15 -15
- {minot_cli-0.15.1 → minot_cli-0.15.2}/Cargo.toml +14 -14
- {minot_cli-0.15.1 → minot_cli-0.15.2}/PKG-INFO +1 -1
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/minot.rs +7 -3
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/Cargo.toml +4 -3
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/README.md +1 -1
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/src/lib.rs +1 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/src/peer.rs +8 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/src/quic.rs +25 -2
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/src/quic_shm.rs +38 -8
- minot_cli-0.15.2/mt_pubsub/src/transfer.rs +29 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_sea/src/client.rs +197 -111
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/README.md +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/build.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/app.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/coord.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/event.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/gen_c.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/gen_c.rs.patch +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/gen_c.rs.patch2 +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/gen_c_tests.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/handler.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/runner.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/tui.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/minot/src/ui.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_bagread/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_bagread/README.md +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_bagread/examples/stream_probe.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_bagread/src/camera.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_bagread/src/camera_tests.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_bagread/src/end_of_stream_tests.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_bagread/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_bagread/src/qos.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_bagread/test/metadata-v5.yml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_bagread/test/metadata-v9.yml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_coord/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_coord/README.md +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_coord/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/default.rl +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/cleanup.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/core/marina.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/core/mod.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/io/bag.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/io/db3_transform.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/io/mcap_transform.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/io/mod.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/io/pack.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/io/transform_progress.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/model/bag_ref.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/model/mod.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/progress.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/driver.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/folder.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/gdrive.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/gdrive_auth.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/http.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/minot/block_store.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/minot/mod.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/minot/protocol.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/minot/remote_file.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/mod.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/ssh.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/stub.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/registry/transfer_progress.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/storage/cache.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/storage/config.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_dataset/src/storage/mod.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_flow/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_flow/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_log/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_log/README.md +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_log/src/buffer.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_log/src/format.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_log/src/init.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_log/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_log/src/logger.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_log/src/pane.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_log/src/tests.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_mtc/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_mtc/README.md +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_mtc/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_net/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_net/README.md +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_net/examples/c_interop_layout.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_net/examples/c_interop_pc2.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_net/examples/c_interop_test.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_net/src/bin_layout.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_net/src/c_interop_test.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_net/src/image/tests.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_net/src/image.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_net/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/examples/be_node.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/examples/be_sub.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/examples/be_sub_drop.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/examples/be_sub_error.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/examples/blackout.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/examples/pub.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/examples/smol.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/examples/sub.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/examples/transfer.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/src/coordinated.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/src/quic_plain.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_pubsub/src/quic_stream.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_scope/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_scope/README.md +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_scope/examples/test.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_scope/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_sea/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_sea/README.md +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_sea/src/claim.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_sea/src/coordinator.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_sea/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_sea/src/net.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_sea/src/network.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_sea/src/ship.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_service/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_service/README.md +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_service/examples/bad_service_client.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_service/examples/basic_service_client.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_service/examples/basic_service_client2.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_service/examples/basic_service_server.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_service/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_wind/Cargo.toml +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_wind/README.md +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_wind/src/hiroz.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_wind/src/lib.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_wind/src/mt_pubsub.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_wind/src/ros1.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_wind/src/ros2.rs +0 -0
- {minot_cli-0.15.1 → minot_cli-0.15.2}/mt_wind/src/ros2_r2r.rs +0 -0
- {minot_cli-0.15.1 → 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
4084
|
+
version = "0.15.2"
|
|
4085
4085
|
dependencies = [
|
|
4086
4086
|
"anyhow",
|
|
4087
4087
|
"bytes",
|
|
@@ -4108,7 +4108,7 @@ dependencies = [
|
|
|
4108
4108
|
|
|
4109
4109
|
[[package]]
|
|
4110
4110
|
name = "mt_rat"
|
|
4111
|
-
version = "0.15.
|
|
4111
|
+
version = "0.15.2"
|
|
4112
4112
|
dependencies = [
|
|
4113
4113
|
"anyhow",
|
|
4114
4114
|
"log",
|
|
@@ -4122,7 +4122,7 @@ dependencies = [
|
|
|
4122
4122
|
|
|
4123
4123
|
[[package]]
|
|
4124
4124
|
name = "mt_scope"
|
|
4125
|
-
version = "0.15.
|
|
4125
|
+
version = "0.15.2"
|
|
4126
4126
|
dependencies = [
|
|
4127
4127
|
"anyhow",
|
|
4128
4128
|
"env_logger",
|
|
@@ -4135,7 +4135,7 @@ dependencies = [
|
|
|
4135
4135
|
|
|
4136
4136
|
[[package]]
|
|
4137
4137
|
name = "mt_sea"
|
|
4138
|
-
version = "0.15.
|
|
4138
|
+
version = "0.15.2"
|
|
4139
4139
|
dependencies = [
|
|
4140
4140
|
"anyhow",
|
|
4141
4141
|
"async-trait",
|
|
@@ -4154,7 +4154,7 @@ dependencies = [
|
|
|
4154
4154
|
|
|
4155
4155
|
[[package]]
|
|
4156
4156
|
name = "mt_service"
|
|
4157
|
-
version = "0.15.
|
|
4157
|
+
version = "0.15.2"
|
|
4158
4158
|
dependencies = [
|
|
4159
4159
|
"anyhow",
|
|
4160
4160
|
"log",
|
|
@@ -4168,7 +4168,7 @@ dependencies = [
|
|
|
4168
4168
|
|
|
4169
4169
|
[[package]]
|
|
4170
4170
|
name = "mt_wind"
|
|
4171
|
-
version = "0.15.
|
|
4171
|
+
version = "0.15.2"
|
|
4172
4172
|
dependencies = [
|
|
4173
4173
|
"anyhow",
|
|
4174
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.
|
|
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.
|
|
31
|
-
mt_coord = { path = "mt_coord", version = "0.15.
|
|
32
|
-
mt_pubsub = { path = "mt_pubsub", version = "0.15.
|
|
33
|
-
mt_service = { path = "mt_service", version = "0.15.
|
|
34
|
-
mt_action = { path = "mt_action", version = "0.15.
|
|
35
|
-
mt_scope = { path = "mt_scope", version = "0.15.
|
|
36
|
-
mt_bagread = { path = "mt_bagread", version = "0.15.
|
|
37
|
-
mt_net = { path = "mt_net", version = "0.15.
|
|
38
|
-
mt_flow = { path = "mt_flow", version = "0.15.
|
|
39
|
-
mt_dataset = { path = "mt_dataset", version = "0.15.
|
|
40
|
-
mt_wind = { path = "mt_wind", version = "0.15.
|
|
41
|
-
mt_mtc = { path = "mt_mtc", version = "0.15.
|
|
42
|
-
mt_log = { path = "mt_log", version = "0.15.
|
|
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"
|
|
@@ -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,
|
|
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")]
|
|
@@ -2093,7 +2095,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
|
2093
2095
|
if args.no_shm {
|
|
2094
2096
|
std::env::set_var("MINOT_SHM_DISABLED", "1");
|
|
2095
2097
|
}
|
|
2096
|
-
|
|
2098
|
+
if let Some(size) = args.shm_size {
|
|
2099
|
+
std::env::set_var("MINOT_SHM_SIZE", size.as_u64().to_string());
|
|
2100
|
+
}
|
|
2097
2101
|
std::env::set_var(
|
|
2098
2102
|
"MINOT_SHM_THRESHOLD",
|
|
2099
2103
|
args.shm_threshold.as_u64().to_string(),
|
|
@@ -34,14 +34,15 @@ socket2.workspace = true
|
|
|
34
34
|
futures-lite = { workspace = true, optional = true }
|
|
35
35
|
|
|
36
36
|
[target.'cfg(all(unix, not(any(target_os = "ios", target_os = "android"))))'.dependencies]
|
|
37
|
-
rustix
|
|
38
|
-
memmap2
|
|
37
|
+
rustix = { workspace = true, optional = true }
|
|
38
|
+
memmap2 = { workspace = true, optional = true }
|
|
39
39
|
|
|
40
40
|
[features]
|
|
41
41
|
default = ["image", "zenoh-defaults"]
|
|
42
42
|
zenoh-defaults = ["mt_sea/zenoh-defaults"]
|
|
43
43
|
image = ["mt_net/image"]
|
|
44
|
-
|
|
44
|
+
# Shared memory between processes on one machine, for Zenoh and QUIC alike.
|
|
45
|
+
shm = ["mt_sea/shm", "dep:rustix", "dep:memmap2"]
|
|
45
46
|
smol = ["dep:futures-lite"]
|
|
46
47
|
|
|
47
48
|
[dev-dependencies]
|
|
@@ -5,6 +5,7 @@ mod quic;
|
|
|
5
5
|
mod quic_plain;
|
|
6
6
|
mod quic_shm;
|
|
7
7
|
mod quic_stream;
|
|
8
|
+
mod transfer;
|
|
8
9
|
/// Shared memory use of the QUIC peer transport: samples (sent, received).
|
|
9
10
|
pub use quic_shm::shm_samples as peer_shm_samples;
|
|
10
11
|
pub use quic_stream::{BudgetScope, QuicStats, SamplePolicy};
|
|
@@ -428,8 +428,14 @@ impl<T: Sendable> PeerPublisher<T> {
|
|
|
428
428
|
rkyv::api::high::to_bytes_in::<_, rkyv::rancor::Error>(&sample, buffer)
|
|
429
429
|
.context("Cannot serialize pub/sub message")?,
|
|
430
430
|
);
|
|
431
|
+
let len = buffer.len();
|
|
431
432
|
let bytes = ZBytes::from(bytes::Bytes::from_owner(SharedBuffer(buffer.clone())));
|
|
432
433
|
let result = self.send(bytes).await;
|
|
434
|
+
// Peer mode sends every sample over the network, so the transfer report
|
|
435
|
+
// shows it as network traffic, in the same format as QUIC.
|
|
436
|
+
if result.is_ok() {
|
|
437
|
+
crate::transfer::network_sent(len);
|
|
438
|
+
}
|
|
433
439
|
// Zenoh copies the sample into its batches while sending, so the buffer
|
|
434
440
|
// is normally ours again. It is not while a retained copy or a local
|
|
435
441
|
// subscriber still holds it; the next publish then allocates.
|
|
@@ -662,11 +668,13 @@ impl<T: Sendable> PeerSubscriber<T> {
|
|
|
662
668
|
},
|
|
663
669
|
result = subscriber.recv_async() => {
|
|
664
670
|
let Ok(sample) = result else { break; };
|
|
671
|
+
crate::transfer::zenoh_received(sample.payload());
|
|
665
672
|
if let Err(error) = enqueue(&mut scratch, sample.payload().slices(), qos, &mut seen, &tx, &quit).await { log::warn!("Peer sample rejected: {error}"); break; }
|
|
666
673
|
},
|
|
667
674
|
result = queryable.recv_async() => {
|
|
668
675
|
let Ok(query) = result else { break; };
|
|
669
676
|
if let Some(bytes) = query.payload() {
|
|
677
|
+
crate::transfer::zenoh_received(bytes);
|
|
670
678
|
match enqueue(&mut scratch, bytes.slices(), qos, &mut seen, &tx, &quit).await {
|
|
671
679
|
Ok(_) => { let _ = query.reply(reader_key.clone(), Vec::<u8>::new()).await; },
|
|
672
680
|
Err(error) => { let _ = query.reply_err(error.to_string()).await; }
|
|
@@ -24,6 +24,7 @@ use crate::peer::{
|
|
|
24
24
|
};
|
|
25
25
|
use crate::quic_shm as shm;
|
|
26
26
|
use crate::quic_stream::{self as stream, QuicStats, Sample, SamplePolicy, SampleStreams, bump};
|
|
27
|
+
use crate::transfer;
|
|
27
28
|
use anyhow::{Context, Result, anyhow, bail, ensure};
|
|
28
29
|
use bytes::{BufMut, Bytes, BytesMut};
|
|
29
30
|
use mt_sea::{ArchivedMessage, Qos, Reliability, Sendable};
|
|
@@ -450,6 +451,7 @@ impl Inner {
|
|
|
450
451
|
/// A datagram: topic hash, then the sample.
|
|
451
452
|
fn deliver_datagram(&self, bytes: &Bytes) {
|
|
452
453
|
if bytes.len() > 8 {
|
|
454
|
+
transfer::network_received(bytes.len() - 8);
|
|
453
455
|
let hash = u64::from_le_bytes(bytes[..8].try_into().unwrap());
|
|
454
456
|
self.deliver_lossy(hash, &bytes.slice(8..));
|
|
455
457
|
}
|
|
@@ -690,6 +692,7 @@ impl Inner {
|
|
|
690
692
|
let read = stream::unix_ns();
|
|
691
693
|
bump(&node.counters.received);
|
|
692
694
|
node.counters.received_bytes.fetch_add(bytes.len() as u64, Ordering::Relaxed);
|
|
695
|
+
transfer::network_received(bytes.len().saturating_sub(8));
|
|
693
696
|
if bytes.len() > 8 {
|
|
694
697
|
let hash = u64::from_le_bytes(bytes[..8].try_into().unwrap());
|
|
695
698
|
if stream::trace().is_some() {
|
|
@@ -902,6 +905,7 @@ impl Inner {
|
|
|
902
905
|
ensure!(len as usize <= MAX_SAMPLE, "oversized sample");
|
|
903
906
|
let mut bytes = BytesMut::zeroed(len as usize);
|
|
904
907
|
recv.read_exact(&mut bytes).await?;
|
|
908
|
+
transfer::network_received(bytes.len());
|
|
905
909
|
bytes.freeze()
|
|
906
910
|
};
|
|
907
911
|
let accepted = self.deliver_ordered(hash, &bytes, ack).await;
|
|
@@ -1267,14 +1271,21 @@ impl<T: Sendable> QuicPublisher<T> {
|
|
|
1267
1271
|
datagram.put_slice(&bytes);
|
|
1268
1272
|
datagram.freeze()
|
|
1269
1273
|
});
|
|
1270
|
-
|
|
1274
|
+
if conn.send_datagram(datagram.clone()).is_ok() {
|
|
1275
|
+
transfer::network_sent(bytes.len());
|
|
1276
|
+
}
|
|
1271
1277
|
continue;
|
|
1272
1278
|
}
|
|
1273
1279
|
if let Some(link) = link {
|
|
1280
|
+
let worth = shm::worth_sharing(bytes.len());
|
|
1281
|
+
if worth {
|
|
1282
|
+
transfer::shm_send_attempt();
|
|
1283
|
+
}
|
|
1274
1284
|
match link.lossy(state.hash, &mut shared) {
|
|
1275
1285
|
// Passed, or dropped for a subscriber that is behind.
|
|
1276
1286
|
Ok(()) => continue,
|
|
1277
1287
|
Err(error) if error.kind() == std::io::ErrorKind::WouldBlock => continue,
|
|
1288
|
+
Err(_) if worth => transfer::shm_send_fallback(),
|
|
1278
1289
|
Err(_) => {}
|
|
1279
1290
|
}
|
|
1280
1291
|
}
|
|
@@ -1284,6 +1295,7 @@ impl<T: Sendable> QuicPublisher<T> {
|
|
|
1284
1295
|
SampleStreams::new(inner.id, inner.samples, Arc::clone(&inner.counters))
|
|
1285
1296
|
});
|
|
1286
1297
|
streams.offer(Sample::new(conn, peer, state.hash, bytes.clone(), sequence));
|
|
1298
|
+
transfer::network_sent(bytes.len());
|
|
1287
1299
|
}
|
|
1288
1300
|
return Ok(());
|
|
1289
1301
|
}
|
|
@@ -1313,7 +1325,17 @@ impl<T: Sendable> QuicPublisher<T> {
|
|
|
1313
1325
|
}
|
|
1314
1326
|
let channel = channels.get_mut(peer).unwrap();
|
|
1315
1327
|
let token = match link {
|
|
1316
|
-
Some(link) =>
|
|
1328
|
+
Some(link) => {
|
|
1329
|
+
let worth = shm::worth_sharing(bytes.len());
|
|
1330
|
+
if worth {
|
|
1331
|
+
transfer::shm_send_attempt();
|
|
1332
|
+
}
|
|
1333
|
+
let token = link.ordered(state.hash, &mut shared).await.ok();
|
|
1334
|
+
if worth && token.is_none() {
|
|
1335
|
+
transfer::shm_send_fallback();
|
|
1336
|
+
}
|
|
1337
|
+
token
|
|
1338
|
+
}
|
|
1317
1339
|
None => None,
|
|
1318
1340
|
};
|
|
1319
1341
|
if let Some(token) = token {
|
|
@@ -1324,6 +1346,7 @@ impl<T: Sendable> QuicPublisher<T> {
|
|
|
1324
1346
|
header[..4].copy_from_slice(&(bytes.len() as u32).to_le_bytes());
|
|
1325
1347
|
channel.send.write_all(&header).await?;
|
|
1326
1348
|
channel.send.write_all(&bytes).await?;
|
|
1349
|
+
transfer::network_sent(bytes.len());
|
|
1327
1350
|
}
|
|
1328
1351
|
anyhow::Ok(())
|
|
1329
1352
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
//! Shared memory between QUIC peers on one host
|
|
1
|
+
//! Shared memory between QUIC peers on one host, with the `shm` feature as for
|
|
2
|
+
//! Zenoh. Without it, every sample goes over QUIC.
|
|
2
3
|
//!
|
|
3
4
|
//! A large sample is written once into an anonymous memory object, and its
|
|
4
5
|
//! file descriptor is passed to every subscriber on the same host over a Unix
|
|
@@ -17,9 +18,14 @@
|
|
|
17
18
|
//! everything else, including order and acknowledgements of reliable samples;
|
|
18
19
|
//! see `quic.rs`.
|
|
19
20
|
|
|
20
|
-
// Without shared memory the
|
|
21
|
+
// Without shared memory, which needs the `shm` feature and a Unix other than
|
|
22
|
+
// iOS and Android, the settings and counters below go unused.
|
|
21
23
|
#![cfg_attr(
|
|
22
|
-
not(all(
|
|
24
|
+
not(all(
|
|
25
|
+
feature = "shm",
|
|
26
|
+
unix,
|
|
27
|
+
not(any(target_os = "ios", target_os = "android"))
|
|
28
|
+
)),
|
|
23
29
|
allow(dead_code)
|
|
24
30
|
)]
|
|
25
31
|
|
|
@@ -47,13 +53,25 @@ pub fn shm_samples() -> (u64, u64) {
|
|
|
47
53
|
)
|
|
48
54
|
}
|
|
49
55
|
|
|
50
|
-
#[cfg(all(
|
|
56
|
+
#[cfg(all(
|
|
57
|
+
feature = "shm",
|
|
58
|
+
unix,
|
|
59
|
+
not(any(target_os = "ios", target_os = "android"))
|
|
60
|
+
))]
|
|
51
61
|
pub(crate) use unix::{Hub, Lazy, Link};
|
|
52
62
|
|
|
53
|
-
#[cfg(not(all(
|
|
63
|
+
#[cfg(not(all(
|
|
64
|
+
feature = "shm",
|
|
65
|
+
unix,
|
|
66
|
+
not(any(target_os = "ios", target_os = "android"))
|
|
67
|
+
)))]
|
|
54
68
|
pub(crate) use none::{Hub, Lazy, Link};
|
|
55
69
|
|
|
56
|
-
#[cfg(all(
|
|
70
|
+
#[cfg(all(
|
|
71
|
+
feature = "shm",
|
|
72
|
+
unix,
|
|
73
|
+
not(any(target_os = "ios", target_os = "android"))
|
|
74
|
+
))]
|
|
57
75
|
mod unix {
|
|
58
76
|
use super::disabled;
|
|
59
77
|
use bytes::Bytes;
|
|
@@ -184,7 +202,7 @@ mod unix {
|
|
|
184
202
|
let bytes = self.bytes;
|
|
185
203
|
self.made
|
|
186
204
|
.get_or_insert_with(|| {
|
|
187
|
-
let worth =
|
|
205
|
+
let worth = super::worth_sharing(bytes.len());
|
|
188
206
|
let file = worth.then(|| anonymous().and_then(|fd| fill(fd, bytes)))?;
|
|
189
207
|
file.inspect_err(|error| log::debug!("no shared memory for sample: {error}"))
|
|
190
208
|
.ok()
|
|
@@ -280,6 +298,7 @@ mod unix {
|
|
|
280
298
|
held.push_back((Instant::now(), Arc::clone(file)));
|
|
281
299
|
}
|
|
282
300
|
super::SENT.fetch_add(1, Ordering::Relaxed);
|
|
301
|
+
crate::transfer::shm_sent(len);
|
|
283
302
|
Ok(())
|
|
284
303
|
}
|
|
285
304
|
|
|
@@ -438,6 +457,7 @@ mod unix {
|
|
|
438
457
|
let len = usize::try_from(len).map_err(|_| other("oversized shared sample"))?;
|
|
439
458
|
let bytes = map(fd.ok_or_else(|| other("frame without descriptor"))?, len)?;
|
|
440
459
|
super::RECEIVED.fetch_add(1, Ordering::Relaxed);
|
|
460
|
+
crate::transfer::shm_received(len);
|
|
441
461
|
match frame[0] {
|
|
442
462
|
LOSSY => deliver(hash, bytes),
|
|
443
463
|
ORDERED => {
|
|
@@ -549,9 +569,19 @@ fn threshold() -> usize {
|
|
|
549
569
|
/// The transport's own limit for one sample.
|
|
550
570
|
const MAX: usize = 1 << 30;
|
|
551
571
|
|
|
572
|
+
/// Whether a sample of `len` bytes goes through shared memory when its peer
|
|
573
|
+
/// shares memory with this process. Smaller samples stay on QUIC.
|
|
574
|
+
pub(crate) fn worth_sharing(len: usize) -> bool {
|
|
575
|
+
len >= threshold() && len <= MAX
|
|
576
|
+
}
|
|
577
|
+
|
|
552
578
|
/// Windows, and phones, where apps are sandboxed from each other: everything
|
|
553
579
|
/// stays on the network.
|
|
554
|
-
#[cfg(not(all(
|
|
580
|
+
#[cfg(not(all(
|
|
581
|
+
feature = "shm",
|
|
582
|
+
unix,
|
|
583
|
+
not(any(target_os = "ios", target_os = "android"))
|
|
584
|
+
)))]
|
|
555
585
|
mod none {
|
|
556
586
|
use bytes::Bytes;
|
|
557
587
|
use std::{io, sync::Arc, time::Duration};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//! Payload transfer counters of the QUIC transport. They are the ones Zenoh
|
|
2
|
+
//! feeds as well, see [`mt_sea::client::shm_transfer_stats`], so the transfer
|
|
3
|
+
//! report reads the same for both. Without the `shm` feature none are kept.
|
|
4
|
+
|
|
5
|
+
#[cfg(feature = "shm")]
|
|
6
|
+
pub(crate) use mt_sea::client::transfer::*;
|
|
7
|
+
|
|
8
|
+
#[cfg(not(feature = "shm"))]
|
|
9
|
+
mod off {
|
|
10
|
+
pub fn shm_send_attempt() {}
|
|
11
|
+
pub fn shm_send_fallback() {}
|
|
12
|
+
pub fn network_sent(_: usize) {}
|
|
13
|
+
pub fn network_received(_: usize) {}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
#[cfg(not(feature = "shm"))]
|
|
17
|
+
pub(crate) use off::*;
|
|
18
|
+
|
|
19
|
+
/// Counts a sample Zenoh delivered, through shared memory or the network.
|
|
20
|
+
pub(crate) fn zenoh_received(payload: &zenoh::bytes::ZBytes) {
|
|
21
|
+
#[cfg(feature = "shm")]
|
|
22
|
+
if payload.as_shm().is_some() {
|
|
23
|
+
shm_received(payload.len());
|
|
24
|
+
} else {
|
|
25
|
+
network_received(payload.len());
|
|
26
|
+
}
|
|
27
|
+
#[cfg(not(feature = "shm"))]
|
|
28
|
+
let _ = payload;
|
|
29
|
+
}
|