-
Notifications
You must be signed in to change notification settings - Fork 0
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
More flexible Rust<>Cairo types interface #6
Comments
@damip please share your thoughts about this: Let's focus on the use of a proto file to describe the interface between rust and On the
Points 1 and 2 can be filled by https://docs.rs/micropb/0.1.0/micropb/ (and integration is almost complete). On the |
OK For the rust side. We need to check how proto works on the cairo side. https://github.com/reilabs/cairo-hints In particular, here is the cairo proto codegen they use, conveniently written as a rust crate: https://github.com/reilabs/cairo-hints/tree/main/cairo-proto-build but let's make sure it generates the right version of cairo |
@damip Something related to the visibility rules changed between edition // module mod1
struct A {
a: u8,
} // module main
mod mod1;
use mod1::A;
fn main2() -> bool {
let x = A { a: 1 };
x.a == 1
} This code builds in edition // module mod1
pub struct A {
pub a: u8,
} |
Added an issue to cairo-hints project reilabs/cairo-hints#35 |
@bilboquet could we work on a fork and propose a PR upstream ? To avoid blocking our progress |
From Ariel Elperin
The text was updated successfully, but these errors were encountered: