René's URL Explorer Experiment


Title: Extract capability-scoped WASI host into a shared crate by youknowdot · Pull Request #9869 · RustPython/RustPython · GitHub

Open Graph Title: Extract capability-scoped WASI host into a shared crate by youknowdot · Pull Request #9869 · RustPython/RustPython

X Title: Extract capability-scoped WASI host into a shared crate by youknowdot · Pull Request #9869 · RustPython/RustPython

Description: Scope Extract the capability-scoped WASI host from the no-JS example into rustpython-wasi-host, implementing the shared-core prerequisite in #9853. This is independent of the errno alignment in #9868 and does not close #9853. Move the existing descriptor table, preopen rights checks, confined UTF-8 path handling, and file operations into a workspace crate depending only on cap-std and std. Separate generic guest-memory decoding/validation from the Rust-valued operations. Keep Wasmer bindings in the example runner. Move the existing capability tests into the workspace crate, so existing workspace test jobs exercise them without compiling Wasmer. Preserve the invalid guest range / non-consumption test using an in-memory adapter. Preserve missing-memory versus invalid-length error precedence. No syscall additions, changed rights, global descriptor tables, or native ambient-I/O checks. The core implementation is token-identical after removing runtime imports and changing visibility. The adapter uses static dispatch, not a trait object. The VM does not depend on the new crate yet; native host_io, stdio lending, browser integration, and additional syscall/importlib work remain separate stages. Validation cargo test --locked -p rustpython-wasi-host: 8 tests passed. cargo clippy --locked -p rustpython-wasi-host --all-targets -- -D warnings: passed. Example Wasmer runtime cargo check --locked and cargo build --locked: passed (dependency proc-macro-error2 future-incompatibility warning). cargo check --locked -p rustpython-wasi-host --all-targets --target x86_64-pc-windows-gnu: passed (cross-compilation, not Windows execution). Actual Wasmer WAT contract exercised all ten imported operations, read/write/seek/truncate/sync/close, confined paths, invalid UTF-8 and out-of-bounds memory. A separate start-function contract checks missing-memory error precedence. Both contracts passed on original-main and extracted runners in dev and release builds. Formatting, changed-file hooks and git diff --check: passed. The pre-existing per-iovec allocations remain unchanged: the 64 KiB transfer limit is not an aggregate allocation limit. This extraction does not claim to resolve that resource-budget question. A narrow release microbenchmark (10 million fd_fdstat_get calls, 4 ABBA blocks, 8 samples per version after warmup) measured baseline median 0.5109 s versus candidate 0.4938 s. This is not a claimed speedup or a general Python performance result. The dev-profile probe was slower (0.8077 s versus 0.9069 s for 1 million calls), so dev-mode overhead is not hidden. Release executable text/data/bss grew by 4,152 bytes (~0.023%); the native VM's dependency graph and execution path are unchanged. Full VM/CAPI/workspace tests and full Python cross-mode contracts have not been run locally. CI results are not a claim that the remaining #9853 backends are implemented. Assisted-by: Codex (model version unavailable).

Open Graph Description: Scope Extract the capability-scoped WASI host from the no-JS example into rustpython-wasi-host, implementing the shared-core prerequisite in #9853. This is independent of the errno alignment in #98...

X Description: Scope Extract the capability-scoped WASI host from the no-JS example into rustpython-wasi-host, implementing the shared-core prerequisite in #9853. This is independent of the errno alignment in #98...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9869

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:87520aa8-0634-ee1e-ed48-7db337151dfc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCF08:31E99C:2F0D5CB:3EC5DD4:6B01DE27
html-safe-noncea489fa5108f3c6eb82ac683d5a3ed30e39b80a13f82469f3067c77c4a437d3a1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjA4OjMxRTk5QzoyRjBENUNCOjNFQzVERDQ6NkIwMURFMjciLCJ2aXNpdG9yX2lkIjoiMjE1MjIxNjg0ODc2MjA1NjA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac667e146ce0f66a8262def7b98d7fff70dcd2510ca04c442bf496c7f33a6c11a7
hovercard-subject-tagpull_request:5331025521
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9869/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altScope Extract the capability-scoped WASI host from the no-JS example into rustpython-wasi-host, implementing the shared-core prerequisite in #9853. This is independent of the errno alignment in #98...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9869/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9869%2Ffiles
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%2Fpull%2F9869%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9869/files
Reloadhttps://github.com/RustPython/RustPython/pull/9869/files
Reloadhttps://github.com/RustPython/RustPython/pull/9869/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)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
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:refactor/shared-wasi-hosthttps://github.com/youknowdot/RustPython/tree/refactor/shared-wasi-host
Conversation 2 https://github.com/RustPython/RustPython/pull/9869
Commits 1 https://github.com/RustPython/RustPython/pull/9869/commits
Checks 27 https://github.com/RustPython/RustPython/pull/9869/checks
Files changed https://github.com/RustPython/RustPython/pull/9869/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9869/files
Extract capability-scoped WASI host into a shared crate https://github.com/RustPython/RustPython/pull/9869/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/9869/files
43b7cb2 Extract capability-scoped WASI host into a shared crate youknowdot Nov 16, 2026 https://github.com/RustPython/RustPython/pull/9869/commits/43b7cb2b33b597c0df111b8eb3002fa3c9b6cca6
Clear filters https://github.com/RustPython/RustPython/pull/9869/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9869/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9869/files
Cargo.lock https://github.com/RustPython/RustPython/pull/9869/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
Cargo.toml https://github.com/RustPython/RustPython/pull/9869/files#diff-9b73960c20a8f66d514a76bdb9e4f39eecb4e58dcfb1eba915f3f53296f1d9dd
guest_memory.rs https://github.com/RustPython/RustPython/pull/9869/files#diff-4847f8f3b46c9b905b697e12bc872090a96bc63e24903ddaf6778dd9ff7c0abe
lib.rs https://github.com/RustPython/RustPython/pull/9869/files#diff-f8a7fc1e454eb0fe77abcb77f752994049a81af3934c2a93e0357329a829f7a4
README.md https://github.com/RustPython/RustPython/pull/9869/files#diff-236d7b7ce9ac6398e2360aa48107fa02020bc5e571d0162ecb81f42623b1607d
Cargo.lock https://github.com/RustPython/RustPython/pull/9869/files#diff-b756563c93eb9ca83f594410fc29919155f89ed3417ec915df59f7c61bac80ef
Cargo.toml https://github.com/RustPython/RustPython/pull/9869/files#diff-9637925062d545fec7127d2596c9382cd42e4cc4012ecd669e158550c422db73
wasi.rs https://github.com/RustPython/RustPython/pull/9869/files#diff-7d536dd4a1407fd53692a3e770181c18556289429e51f990ce3fee9ad41faca4
Cargo.lockhttps://github.com/RustPython/RustPython/pull/9869/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
View file https://github.com/youknowdot/RustPython/blob/43b7cb2b33b597c0df111b8eb3002fa3c9b6cca6/Cargo.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9869/files
crates/wasi_host/Cargo.tomlhttps://github.com/RustPython/RustPython/pull/9869/files#diff-9b73960c20a8f66d514a76bdb9e4f39eecb4e58dcfb1eba915f3f53296f1d9dd
View file https://github.com/youknowdot/RustPython/blob/43b7cb2b33b597c0df111b8eb3002fa3c9b6cca6/crates/wasi_host/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9869/{{ revealButtonHref }}
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9869/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9869/files
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

Viewport: width=device-width


URLs of crawlers that visited me.