-
Notifications
You must be signed in to change notification settings - Fork 199
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
Restrict generate!
paths to paths within crate boundaries
#555
Comments
Note, that the fix enabling |
Thanks for the report! I'm not sure if there's much that can be done within this crate, though, about that? |
The proposal here is to disallow
|
I'm not sure that disallowing outside-root paths is a way to handle this, though, since not all crates will make their way to crates.io which would cause this to be an issue. Personally I feel like it's better to be more flexible with the macro, but still have facilities available for those publishing to crates.io. |
Well, this does not break the crates being published, rather it breaks all downstream consumers of these crates using the standard |
I don't think I quite agree with that because if a crate was I don't dispute that the vendor use case is broken, but what I'm saying is that I don't think it's the right solution to require all uses to be vendor-ready. It should definitely be possible to be vendor-ready, but I don't think it's worthwhile to require that of everyone. |
Crates using
generate!
with paths leading outside the crate boundary cannot be dependent upon incargo vendor
use cases.E.g. see https://github.com/rvolosatovs/wasi-vendor-repro for a reproducer
Refs bytecodealliance/preview2-prototyping#133
A draft PR will follow
The text was updated successfully, but these errors were encountered: