5 ms·
Update 2: Gave up on MSYS2 and just used rustup. Managed to compile and run, but exit() doesn't work. Also I just realized the executable contains the compilati
by mehrdadn 7y ago
Update 2: Gave up on MSYS2 and just used rustup. Managed to compile and run, but exit() doesn't work. Also I just realized the executable contains the compilation path, which leaks private information? Makes it hard to compile and redistribute stuff, but otherwise I'd be very excited about the project.
__________________________________________________
Update: Still can't get it to work. Also, the tool seems to download random third-party packages that aren't documented?
> pyoxidizer run
no existing PyOxidizer artifacts found
processing config file pyoxidizer.toml
resolving Python distribution...
downloading https://github.com/indygreg/python-build-standalone/releases/download/{...}/cpython-{...}.tar.zst
...
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-pc-windows-msvc` target may not be installed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `rand_core`.
error: cargo build failed
__________________________________________________
I ran 'cargo install pyoxidizer' and got
cargo install pyoxidizer
Updating registry `https://github.com/rust-lang/crates.io-index`
error: failed to parse manifest at `%USERPROFILE%\.cargo\registry\src\github.com-1ecc6299db9ec823\pyoxidizer-0.1.1\Cargo.toml`
Caused by:
editions are unstable
Caused by:
feature `edition` is required
this Cargo does not support nightly features, but if you switch to nightly channel you can add `cargo-features = ["edition"]` to enable this feature
Not sure where to go next... I'm not a Rust programmer and frustratingly I never seem to get Rust programs working on the first try. Do I have to download another version of Rust now? Why can't Rust just install the package?
Edit: Would be nice if someone could also explain how this is a manifest parsing error?
- codetrotter 7y agoSounds like you might be using an old version of the Rust toolchain, from before the edition feature was in the stable channel. Try this: rustup update And then try again cargo install pyoxidizer Edit: That is, assuming you installed the Rust toolchain via https://rustup.rs/ https://rustup.rs/, which you should -- the official package repos of most distros are sure to contain really old outdated versions of the Rust toolchain.
- mehrdadn 7y agoHuh I see. There's no rustup anywhere to be found. Rust just from MSYS2 in Oct. 2018, just 8 months ago. Updated it now and now it's installing fine, thanks. Here's what I had: $ pacboy -Qi rust:x Name : mingw-w64-x86_64-rust Version : 1.29.2-1 Build Date : Sun, Oct 28, 2018 9:43:06 PM ... Now I have 1.35.0-1 which seems to be the most recent version (with rustup still nowhere to be found).
- codetrotter 7y agoYeah I realized after commenting that that you might not have installed it via rustup.rs. Glad to hear that you were able to get a new enough version after updating. 8 months might not seem like a long time but quite a few things have happened in that time, including some features having become stabilized. https://github.com/rust-lang/rust/blob/master/RELEASES.md https://github.com/rust-lang/rust/blob/master/RELEASES.md 1.35.0 is the current stable Rust toolchain indeed.
- mehrdadn 7y agoYup, updated my post. Would you know how to prevent Rust from embedding absolute file paths into the binary?