René's URL Explorer Experiment


Title: wasm build: publish the bundler glue and/or an eval-free build (extensions and other no-eval environments) · Issue #9990 · RustPython/RustPython · GitHub

Open Graph Title: wasm build: publish the bundler glue and/or an eval-free build (extensions and other no-eval environments) · Issue #9990 · RustPython/RustPython

X Title: wasm build: publish the bundler glue and/or an eval-free build (extensions and other no-eval environments) · Issue #9990 · RustPython/RustPython

Description: Context We embed RustPython (rustpython_wasm@0.1.0-pre-alpha.2) in Chrome extensions, where the application layer is Python. Two packaging facts make that hard, and both look fixable upstream: 1. No glue module in the package. The ESM en...

Open Graph Description: Context We embed RustPython (rustpython_wasm@0.1.0-pre-alpha.2) in Chrome extensions, where the application layer is Python. Two packaging facts make that hard, and both look fixable upstream: 1. N...

X Description: Context We embed RustPython (rustpython_wasm@0.1.0-pre-alpha.2) in Chrome extensions, where the application layer is Python. Two packaging facts make that hard, and both look fixable upstream: 1. N...

Opengraph URL: https://github.com/RustPython/RustPython/issues/9990

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"wasm build: publish the bundler glue and/or an eval-free build (extensions and other no-eval environments)","articleBody":"## Context\n\nWe embed RustPython (`rustpython_wasm@0.1.0-pre-alpha.2`) in Chrome extensions, where\nthe application layer is Python. Two packaging facts make that hard, and both look\nfixable upstream:\n\n**1. No glue module in the package.** The ESM entry does\n`import * as wasm from \"./rustpython_wasm_bg\"`, but the package ships only\n`rustpython_wasm.js`, `.d.ts` and `_bg.wasm`. That expects WebAssembly ESM\nintegration (importing a `.wasm` as a module), which browsers still gate behind a\nflag. We worked around it by patching the ESM to accept an instance — the wasm's\n80 imports come from that same module (`./rustpython_wasm`), so it closes — but that\nis us maintaining a fork of generated code, which nobody should have to do. Shipping\nthe `_bg.js` from a `--target bundler`/`--target web` build would fix it.\n\n**2. The glue requires `eval`.** The generated code compiles strings with `eval`\n(Emscripten \"asm consts\"). Chrome extension pages cannot enable `unsafe-eval` — the\npolicy is fixed by the platform — so the only way to run RustPython is to host it in\na manifest **sandbox** page. That works (we ship it), but it costs us an opaque\norigin: no `chrome.*` APIs, no access to the page, every DOM op proxied through\n`postMessage`. For a 5 MB interpreter that is a lot of tax.\n\n## Ask\n\nEither of these would remove the sandbox requirement:\n\n- **a build without eval**: wasm-bindgen/Emscripten can often avoid `Function`/`eval`\n  (static imports for the known `asm consts`, or `-sDYNAMIC_EXECUTION=0` style\n  settings). Even a partial reduction that covers the paths a plain `pyEval` uses\n  would let us run in a normal extension page.\n- **a documented bundling recipe** for browsers without wasm ESM integration, so\n  consumers are not hand-patching generated glue.\n\n## Why it matters beyond us\n\nExtensions, desktop shells and other environments that treat \"no eval\" as a hard\nrequirement (CSP, app-store review, embedded webviews) currently cannot use\nRustPython at all without a sandbox hop. A build flag is the difference between\n\"usable\" and \"not usable\" for that whole class of consumer.\n\nHappy to test a build and report results — our harness runs real Chromium and\nasserts the interpreter boots and reaches the DOM, so we can verify quickly.\n","author":{"url":"https://github.com/ShyftXero","@type":"Person","name":"ShyftXero"},"datePublished":"2026-11-22T07:20:56Z","url":"https://github.com/RustPython/RustPython/issues/9990"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3a73d28a-4651-45fd-1957-97cd3bcae223
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC454:1293AE:928581:BE3EA1:6B06324A
html-safe-noncea5a08c683094e4d6508995857f292e925d3210ac201bc9e1a0ce43659bbab5e3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDU0OjEyOTNBRTo5Mjg1ODE6QkUzRUExOjZCMDYzMjRBIiwidmlzaXRvcl9pZCI6IjczMTg4OTU4MjM0ODY4NTc4MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd1286e1882033c02a7f5044d6a6ffa3e1e97e7d7801da5c973a543cef22e8540
hovercard-subject-tagissue:6539757258
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RustPython/RustPython/9990/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c2fddb202fbd9367eb90d8d3ea7b89cd4a6946a705294298daa3e30187b91224/RustPython/RustPython/issues/9990
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c2fddb202fbd9367eb90d8d3ea7b89cd4a6946a705294298daa3e30187b91224/RustPython/RustPython/issues/9990
og:image:altContext We embed RustPython (rustpython_wasm@0.1.0-pre-alpha.2) in Chrome extensions, where the application layer is Python. Two packaging facts make that hard, and both look fixable upstream: 1. N...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameShyftXero
hostnamegithub.com
expected-hostnamegithub.com
Nonec3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0
turbo-cache-controlno-preview
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9eb3bb1597d09170a5f282cd38ae376dee1a5ec1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/RustPython/RustPython/issues/9990#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fissues%2F9990
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fissues%2F9990
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/issues/9990
Reloadhttps://github.com/RustPython/RustPython/issues/9990
Reloadhttps://github.com/RustPython/RustPython/issues/9990
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues197 (197)https://github.com/RustPython/RustPython/issues
Pull requests144 (144)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
https://github.com/RustPython/RustPython
New issuehttps://github.com/login?return_to=https://github.com/RustPython/RustPython/issues/9990
New issuehttps://github.com/login?return_to=https://github.com/RustPython/RustPython/issues/9990
wasm build: publish the bundler glue and/or an eval-free build (extensions and other no-eval environments)https://github.com/RustPython/RustPython/issues/9990#top
https://github.com/ShyftXero
ShyftXerohttps://github.com/ShyftXero
on Nov 22, 2026https://github.com/RustPython/RustPython/issues/9990#issue-6539757258
Sign up for freehttps://github.com/signup?return_to=https://github.com/RustPython/RustPython/issues/9990
Sign in to commenthttps://github.com/login?return_to=https://github.com/RustPython/RustPython/issues/9990
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.