-
Notifications
You must be signed in to change notification settings - Fork 81
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
Candid to Rust binding #255
Labels
enhancement
New feature or request
Comments
3 tasks
ninegua
pushed a commit
to ninegua/candid
that referenced
this issue
Apr 22, 2022
* lerna.json enable authentication-demo * fix lerna bootstrap -> prepare for authentication-demo
This was referenced May 11, 2022
This is a very nice feature, that we're looking forward to using. 🙂 So far, the following issues are blockers for us:
Not blockers but still useful things:
CC: @przydatek |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no one-to-one mapping between Candid and Rust types.
vec record { text; int }
can map toVec<(String, Int)>
,HashMap<&str, Int>
, or even&[Box<(Cow<str>, Arc<i128>)>]
.As a starting point, we can generate a simple binding with default types and let the users to adjust the binding by hand. To automate the customization, we can design a builder similar to https://docs.rs/prost-build/0.7.0/prost_build/struct.Config.html
TODO:
The text was updated successfully, but these errors were encountered: