You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First of all sorry if it is a dumb question, but I am new to rust.
I am building a project and created a proto file and was able to reference it as per the example listed in the readme.
pub mod items {
include!(concat!(env!("OUT_DIR"), "/snazzy.items.rs"));
}
But coming from Java / Python world; you usually keep the code generated proto files as part of your project (or import them as a dependency depending on project setup), however, here the generated code is referenced directly from the target folder.
Does this mean in rust you only keep the the original proto definition in your project and never the code bindings ?
Or did I miss something from the demo project ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
First of all sorry if it is a dumb question, but I am new to rust.
I am building a project and created a proto file and was able to reference it as per the example listed in the readme.
But coming from Java / Python world; you usually keep the code generated proto files as part of your project (or import them as a dependency depending on project setup), however, here the generated code is referenced directly from the target folder.
Does this mean in rust you only keep the the original proto definition in your project and never the code bindings ?
Or did I miss something from the demo project ?
Thanks for any insight you can provide.
Beta Was this translation helpful? Give feedback.
All reactions