Comments (1)
Turns out that nix isn't supported under WASI. https://docs.rs/wasi/0.10.2+wasi-snapshot-preview1/wasi/index.html also suggests that WASI has no execv()
equivalent. Farthest this could go is to break the search code out into its own crate and make sure that can be compiled by WASI.
❯ cargo build --target wasm32-wasi --release
Compiling python-launcher v1.0.0 (/Users/brettcannon/Repositories/brettcannon/python-launcher)
error[E0432]: unresolved import `nix::unistd`
--> src/main.rs:38:5
|
38 | use nix::unistd;
| ^^^^^^^^^^^ no `unistd` in the root
error[E0433]: failed to resolve: could not find `errno` in `nix`
--> src/main.rs:72:54
|
72 | .map_err(|message| log_exit(nix::errno::errno(), message))
| ^^^^^ could not find `errno` in `nix`
error[E0433]: failed to resolve: could not find `errno` in `nix`
--> src/main.rs:79:50
|
79 | .map_err(|message| log_exit(nix::errno::errno(), message))
| ^^^^^ could not find `errno` in `nix`
error[E0412]: cannot find type `Result` in crate `nix`
--> src/main.rs:93:52
|
93 | fn run(executable: &Path, args: &[String]) -> nix::Result<()> {
| ^^^^^^ not found in `nix`
from python-launcher.
Related Issues (20)
- Replace control flow diagram with Mermaid
- Bump serial_test_derive from 0.5.1 to 0.6.0 HOT 2
- Find a replacement for stderrlog HOT 6
- Have `rustfmt` group `use` statements HOT 2
- $PY_PYTHON is not being honoring on a brew installed py on macOS HOT 1
- Use `std::hint::black_box` with the benchmarks
- Create a logo HOT 8
- Automate the execution of cog via `justfile`
- Document the release process
- Add a FAQ entry about how to turn off `.venv` usage HOT 1
- No configurations support (or undocumentd) aka py.ini
- Manpage wording around `--list` and virtual environments confusing HOT 5
- Manpage typos HOT 3
- Local virtualenv not found on WSL2 HOT 2
- Support PEP 723
- Update `docs/requirements.txt`
- Add Repology badge to website
- Update installation instructions for NixOS package
- Docs point to mousebender HOT 1
- Clarify how interpreters are found on PATH HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-launcher.