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

Revert "core: don't include_str extension js code (#10786)" #14614

Merged
merged 2 commits into from
May 15, 2022

Conversation

AaronO
Copy link
Contributor

@AaronO AaronO commented May 15, 2022

This reverts commit 10e50a1

Alternative to #13217, IMO the tradeoffs made by #10786 aren't worth it.

It breaks abstractions (crates being self-contained, deno_core without snapshotting etc...) and causes pain points / gotchas for both embedders & devs for a relatively minimal gain in incremental build time ...

Closes #11030

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AaronO
Copy link
Contributor Author

AaronO commented May 15, 2022

webgpu/src changes seems unrelated. https://github.com/denoland/deno/pull/14614/files#diff-924b4b7acc08e4f385a8158fcef447fc3006dd533da7a6dc6b2039d3ab818e28

It's not, we either need to move the files (as I did) or change the include path to add ../, this happens because when https://github.com/gfx-rs ingested deno_webgpu they restored a src/ folder in the crate (unlike our pattern) but didn't move the JS files into thus breaking our assumption that JS files live alongside rust files.

So yeah, we'll have to patch/change that upstream

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andreubotella
Copy link
Contributor

This PR closes #11030.

@AaronO AaronO merged commit f5c31b5 into denoland:main May 15, 2022
@AaronO AaronO deleted the revert/10786 branch May 15, 2022 11:27
sigmaSd pushed a commit to sigmaSd/deno that referenced this pull request May 29, 2022
…enoland#14614)

This reverts commit 10e50a1

Alternative to denoland#13217, IMO the tradeoffs made by denoland#10786 aren't worth it.

It breaks abstractions (crates being self-contained, deno_core without snapshotting etc...) and causes pain points / gotchas for both embedders & devs for a relatively minimal gain in incremental build time ...

Closes denoland#11030
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

Successfully merging this pull request may close these issues.

deno_core prints cargo related stuff if used as a dependency
3 participants