starpc 0.44.0 → 0.46.0

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 (58) hide show
  1. package/dist/echo/echo.pb.js +1 -1
  2. package/dist/mock/mock.pb.js +1 -1
  3. package/dist/rpcstream/rpcstream.pb.js +1 -1
  4. package/dist/srpc/rpcproto.pb.js +1 -1
  5. package/echo/Cargo.toml +0 -4
  6. package/echo/echo.pb.go +1 -1
  7. package/echo/echo.pb.rs +9 -0
  8. package/echo/echo.pb.ts +1 -1
  9. package/echo/echo_e2e_test.cpp +793 -34
  10. package/echo/echo_srpc.pb.cpp +1 -1
  11. package/echo/echo_srpc.pb.go +1 -1
  12. package/echo/echo_srpc.pb.hpp +3 -1
  13. package/echo/echo_srpc.pb.rs +312 -0
  14. package/echo/gen/mod.rs +15 -2
  15. package/echo/main.rs +9 -0
  16. package/go.mod +4 -3
  17. package/go.sum +8 -6
  18. package/mock/mock.pb.go +1 -1
  19. package/mock/mock.pb.rs +9 -0
  20. package/mock/mock.pb.ts +1 -1
  21. package/mock/mock_srpc.pb.cpp +1 -1
  22. package/mock/mock_srpc.pb.go +1 -1
  23. package/mock/mock_srpc.pb.hpp +3 -1
  24. package/mock/mock_srpc.pb.rs +103 -0
  25. package/package.json +5 -4
  26. package/srpc/Cargo.toml +1 -2
  27. package/srpc/client-rpc.cpp +20 -18
  28. package/srpc/client-rpc.hpp +14 -11
  29. package/srpc/client.cpp +11 -15
  30. package/srpc/client.hpp +17 -25
  31. package/srpc/common-rpc.cpp +12 -13
  32. package/srpc/common-rpc.hpp +13 -11
  33. package/srpc/errors.hpp +33 -20
  34. package/srpc/handler.hpp +3 -3
  35. package/srpc/invoker.hpp +26 -29
  36. package/srpc/lib.rs +1 -0
  37. package/srpc/message.hpp +4 -6
  38. package/srpc/msg-stream.hpp +13 -11
  39. package/srpc/mux.cpp +18 -17
  40. package/srpc/mux.hpp +15 -14
  41. package/srpc/packet.cpp +24 -26
  42. package/srpc/packet.hpp +14 -17
  43. package/srpc/proto.rs +5 -0
  44. package/srpc/rpcproto.pb.go +1 -1
  45. package/srpc/rpcproto.pb.rs +62 -0
  46. package/srpc/rpcproto.pb.ts +1 -1
  47. package/srpc/rpcstream/mod.rs +38 -0
  48. package/srpc/rpcstream/proto.rs +286 -0
  49. package/srpc/rpcstream/stream.rs +517 -0
  50. package/srpc/rpcstream/writer.rs +150 -0
  51. package/srpc/server-rpc.cpp +21 -21
  52. package/srpc/server-rpc.hpp +15 -13
  53. package/srpc/starpc.hpp +1 -1
  54. package/srpc/stream.hpp +18 -16
  55. package/srpc/writer.hpp +15 -12
  56. package/echo/build.rs +0 -15
  57. package/srpc/build.rs +0 -15
  58. package/srpc/proto/mod.rs +0 -10
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es-lite unknown with parameter "ts_nocheck=false,target=ts"
1
+ // @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false"
2
2
  // @generated from file github.com/aperturerobotics/starpc/echo/echo.proto (package echo, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { createMessageType, ScalarType } from '@aptre/protobuf-es-lite';
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es-lite unknown with parameter "ts_nocheck=false,target=ts"
1
+ // @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false"
2
2
  // @generated from file github.com/aperturerobotics/starpc/mock/mock.proto (package e2e.mock, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { createMessageType, ScalarType } from '@aptre/protobuf-es-lite';
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es-lite unknown with parameter "ts_nocheck=false,target=ts"
1
+ // @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false"
2
2
  // @generated from file github.com/aperturerobotics/starpc/rpcstream/rpcstream.proto (package rpcstream, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { createMessageType, ScalarType } from '@aptre/protobuf-es-lite';
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es-lite unknown with parameter "ts_nocheck=false,target=ts"
1
+ // @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false"
2
2
  // @generated from file github.com/aperturerobotics/starpc/srpc/rpcproto.proto (package srpc, syntax proto3)
3
3
  /* eslint-disable */
4
4
  import { createMessageType, ScalarType } from '@aptre/protobuf-es-lite';
package/echo/Cargo.toml CHANGED
@@ -15,7 +15,3 @@ starpc = { workspace = true }
15
15
  prost = { workspace = true }
16
16
  tokio = { version = "1", features = ["full"] }
17
17
  async-trait = { workspace = true }
18
-
19
- [build-dependencies]
20
- starpc-build = { workspace = true }
21
- prost-build = { workspace = true }
package/echo/echo.pb.go CHANGED
@@ -1,5 +1,5 @@
1
1
  // Code generated by protoc-gen-go-lite. DO NOT EDIT.
2
- // protoc-gen-go-lite version: v0.12.0
2
+ // protoc-gen-go-lite version: v0.12.1
3
3
  // source: github.com/aperturerobotics/starpc/echo/echo.proto
4
4
 
5
5
  package echo
@@ -0,0 +1,9 @@
1
+ // @generated
2
+ // This file is @generated by prost-build.
3
+ /// EchoMsg is the message body for Echo.
4
+ #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5
+ pub struct EchoMsg {
6
+ #[prost(string, tag="1")]
7
+ pub body: ::prost::alloc::string::String,
8
+ }
9
+ // @@protoc_insertion_point(module)
package/echo/echo.pb.ts CHANGED
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es-lite unknown with parameter "ts_nocheck=false,target=ts"
1
+ // @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false"
2
2
  // @generated from file github.com/aperturerobotics/starpc/echo/echo.proto (package echo, syntax proto3)
3
3
  /* eslint-disable */
4
4