selmeci / dgraph-tonic

Async/Sync gRPC client for Dgraph DB
MIT License
83 stars 8 forks source link

Expose a few classes so we can set up type definitions #6

Closed lhr0909 closed 4 years ago

lhr0909 commented 4 years ago

I managed to get a type definition out in the lib and got it to work. Should resolve #5 for me. Please let me know if there are better ways to do it. Happy to work with you together on the project. I would like to ramp up on Rust myself.

lhr0909 commented 4 years ago

https://github.com/xanthous-tech/dgraph-js-native/blob/91c38cda5a0a6c898737555235ef2113e108b65d/native/src/lib.rs#L12

selmeci commented 4 years ago

Hi, I don't thing that expose these internal structures is the best way. I suggest to use generic parameters instead of it.