-
Notifications
You must be signed in to change notification settings - Fork 222
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
add support for cross-crate schema imports #233
Comments
Re: (1), it looks like there's a consensus on the solution and this is just waiting on someone to do the work. Re: (2), the go implementation does something similar, and it's worked out adequately. |
I have gotten around the problem by having a checked out version of sandstorm-rust for calling capnpc so the schema files could be found. And the crate problem can be solved with I actually did some work on DEP_FOO_KEY in cargo and got something hacked together but when the cargo tests failed for some reason I but it down and haven't looked at it since. |
Relates to capnproto#411 and capnproto#233 This api is quite awkward but I'm intending it as a stopgap until cargo supports non-linking DEP environment variables. But it allows people to use generated code in external crates without us needing to add an annotation to the external `.capnp` file. This is important because without the change to cargo it would be awkward to require users use a modified `json.capnp`.
Relates to capnproto#411 and capnproto#233 This api is quite awkward but I'm intending it as a stopgap until cargo supports non-linking DEP environment variables. But it allows people to use generated code in external crates without us needing to add an annotation to the external `.capnp` file. This is important because without the change to cargo it would be awkward to require users use a modified `json.capnp`.
See https://groups.google.com/g/sandstorm-dev/c/hdTrPu6gndY/m/heRh-ns1AgAJ
Currently, if someone wants to define schema files that depend on the sandstorm schema files, then they cannot take advantage of the sandstorm-rust crate. To make that work, we need:
The text was updated successfully, but these errors were encountered: