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
If you import auth.proto as well as google annotations in sample.proto, what's the correct way the build.rs and lib.rs supposed to look like?
syntax = "proto3';
packagesample;
import"b/b1/b2/auth.proto";
// many more local importsimport"c/c1/c2/c3/foo.proto";
// ...import"google/protobuf/timestamp.proto";
import"google/protobuf/duration.proto";
I'm getting a bunch of file not found for various locally imported protos so not sure what I'm doing wrong. The error messages weren't super intuitive as to where it was trying to look for the protos.
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,
I've seen other issues and tried googling a bunch but don't see much on the correct structure for this kind of issue.
Say you have a bunch of protos in different directories ie:
If you import auth.proto as well as google annotations in sample.proto, what's the correct way the build.rs and lib.rs supposed to look like?
I'm getting a bunch of file not found for various locally imported protos so not sure what I'm doing wrong. The error messages weren't super intuitive as to where it was trying to look for the protos.
Beta Was this translation helpful? Give feedback.
All reactions