[PR #133] [CLOSED] Compile and "function" under wasi #325

Closed
opened 2026-06-08 11:27:10 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bootandy/dust/pull/133
Author: @jcaesar
Created: 1/18/2021
Status: Closed

Base: masterHead: wasi


📝 Commits (2)

📊 Changes

6 files changed (+188 additions, -69 deletions)

View changed files

📝 Cargo.lock (+46 -4)
📝 Cargo.toml (+6 -2)
build.rs (+9 -0)
📝 src/main.rs (+2 -0)
📝 src/utils/mod.rs (+113 -63)
📝 src/utils/platform.rs (+12 -0)

📄 Description

Sorry for the noise: This is a PR I expect you not to merge, but to close.

Reasons being

  • It requires some unpublished / unmerged changes to lscolors and terminal-size
  • Getting util to function in an environment without threads, without slowing down all other "proper" platforms, requires somewhat nasty code changes
  • Some wasi implementations expose incorrect / 0 values for dev/inode, so the results may be incorrect
  • wasi doesn't expose a block size, so the results are definitely incorrect / always in apparent-size mode

The reasons I'm still making this PR are that

  1. To show that somebody was "bored" enough to do it. ;)
  2. To avoid anybody else getting the same idea, checking the issues for wasm/wasi, and not finding this
  3. In the off case that you're super-enthusiastic about wasm/wasi, you can tell me and I will reopen this once the dependency changes have been merged and published.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bootandy/dust/pull/133 **Author:** [@jcaesar](https://github.com/jcaesar) **Created:** 1/18/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `wasi` --- ### 📝 Commits (2) - [`3ec1d4a`](https://github.com/bootandy/dust/commit/3ec1d4acf5a1b49b49358f84b65e130cdae8b675) Compile and "function" under wasi - [`dbc0c2e`](https://github.com/bootandy/dust/commit/dbc0c2e8d62db4b1befa16245d8e783cb412be01) Shut up clippy ### 📊 Changes **6 files changed** (+188 additions, -69 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+46 -4) 📝 `Cargo.toml` (+6 -2) ➕ `build.rs` (+9 -0) 📝 `src/main.rs` (+2 -0) 📝 `src/utils/mod.rs` (+113 -63) 📝 `src/utils/platform.rs` (+12 -0) </details> ### 📄 Description Sorry for the noise: This is a PR I expect you not to merge, but to close. Reasons being * It requires some unpublished ~~/ unmerged~~ changes to lscolors ~~and terminal-size~~ * Getting `util` to function in an environment without threads, without slowing down all other "proper" platforms, requires somewhat nasty code changes * Some wasi implementations expose incorrect / 0 values for dev/inode, so the results may be incorrect * wasi doesn't expose a block size, so the results are definitely incorrect / always in apparent-size mode The reasons I'm still making this PR are that 1. To show that somebody was "bored" enough to do it. ;) 2. To avoid anybody else getting the same idea, checking the issues for wasm/wasi, and not finding this 3. In the off case that you're super-enthusiastic about wasm/wasi, you can tell me and I will reopen this once the dependency changes have been merged and published. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-06-08 11:27:10 +03:00
zhus closed this issue 2026-06-08 11:27:11 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#325