Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status of gRPC library for Unity #661

Closed
mayuki opened this issue Jun 26, 2023 · 7 comments
Closed

Status of gRPC library for Unity #661

mayuki opened this issue Jun 26, 2023 · 7 comments
Labels
area-Unity stale stale not updated issue & pr

Comments

@mayuki
Copy link
Member

mayuki commented Jun 26, 2023

We are currently testing and experimenting with a solution to use grpc-dotnet (Grpc.Net.Client) on Unity.
This includes Unity Editor support on Apple Silicon, which is currently lacking in the C-core gRPC library.

We apologize that we cannot announce this right now, but if all goes well, we expect to release a preview within a few months.

Update: July 28, 2023

Today, we have released a preview of the HTTP/2 handler that enables the use of grpc-dotnet.
https://github.com/Cysharp/YetAnotherHttpHandler

Although this project is still in its early stages and rough around the edges, we believe it is an important step forward.
Please try out this library, and we look forward to receiving your feedback.

When using Grpc.Net.Client with MagicOnion, please define the build constant USE_GRPC_NET_CLIENT. If you don't use C-core, also define USE_GRPC_NET_CLIENT_ONLY.

@labyte
Copy link

labyte commented Jul 17, 2023

Can I use your chatapp example first and then sync the new solution later

@mayuki
Copy link
Member Author

mayuki commented Jul 28, 2023

Today, we have released a preview of the HTTP/2 handler that enables the use of grpc-dotnet.
https://github.com/Cysharp/YetAnotherHttpHandler

Although this project is still in its early stages and rough around the edges, we believe it is an important step forward.
Please try out this library, and we look forward to receiving your feedback.

When using Grpc.Net.Client with MagicOnion, please define the build constant USE_GRPC_NET_CLIENT. If you don't use C-core, also define USE_GRPC_NET_CLIENT_ONLY.

@bdovaz
Copy link

bdovaz commented Aug 15, 2023

@mayuki bugs related to protobuf-net + protobuf-net.gRPC affecting IL2CPP reported by me recently.

These libraries are used to follow a code first pattern without .proto files.

I see MagicOnion doesn't use them and I don't know if it is possible to use them but just in case I mention these threads:

https://forum.unity.com/threads/impossible-to-build-using-il2cpp-with-protobuf-net-grpc-library.1470681/

https://forum.unity.com/threads/unsupported-internal-call-for-il2cpp-parameterinfo-gettypemodifiers.1157522/#post-9204273

@mayuki
Copy link
Member Author

mayuki commented Aug 16, 2023

Thank you for the information.

The former seems to be a problem due to IL2CPP code generation related to Volatile.Write, and the latter due to unsupported IL related to required or init. MagicOnion does not use these, so there are currently no affected parts.

@Rurouni
Copy link

Rurouni commented Dec 8, 2023

@mayuki Master is now quite ahead of 5.1 branch. Are there any plans to release all those changes soon? Thank you!

@mayuki
Copy link
Member Author

mayuki commented Dec 11, 2023

Currently, we are incorporating updates for YetAnotherHttpHandler, and as soon as that stabilizes, we plan to release this library.

Copy link
Contributor

github-actions bot commented Jun 9, 2024

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale stale not updated issue & pr label Jun 9, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Unity stale stale not updated issue & pr
Projects
None yet
Development

No branches or pull requests

4 participants