Skip to content
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

Warn if filepath is outside the crate #3

Open
Morganamilo opened this issue Jan 26, 2024 · 1 comment
Open

Warn if filepath is outside the crate #3

Morganamilo opened this issue Jan 26, 2024 · 1 comment

Comments

@Morganamilo
Copy link

We have a workspace that contains .mdd files and a bunch of crates. The crates reference these files via mermaid!() which works but as soon as we try to publish these crates it then errors because the crate is uploaded individually and can't access files outside the crate.

I would be nice if this can be detected and warned about/error before hand instead of this bubbling up on publish.

I've been trying to think of how this could be done and I don't think it can be without converting this to a proc macro which would add a ton of complexity. I've opened the issue anyway incase there's any ideas and to mention the problem.

@glueball
Copy link
Owner

I'll investigate. Maybe could find/create some replacement for include_str and "proc-macro" only that part, since that problem might be more general than mermaid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants