Skip to content
Sign upLog in
Profile icon

Connor Mooneyhan

@ConnorMooneyhan
Repls
Community
ConnorMooneyhan
ConnorMooneyhan
shared a Post
10 months ago
2
How do I add a nix file to a repl in another language?
I'm trying to use nix to install a package (rustup) in my Rust repl and I've tried adding a replit.nix file with the following code: { pkgs }: {
SixBeeps
SixBeeps
RoBlockHead is completely correct, but I can explain it a little more. Currently, there are two types of Repls. There are the Repls that run on a Docker image called Polygott, and there are the Repls which use Nix. Before Nix, everything was on Polygott. Replit eventually plans on transferring everything over to Nix iirc. Since Rust Repls run on Polygott, Nix isn't supported on them. However, if you were to set up a Nix Repl, then you'd be able to use it.10 months ago
RoBlockHead
RoBlockHead
Nix files only work on Nix repls and certain other languages.10 months ago
ConnorMooneyhan
ConnorMooneyhan
shared a Post
10 months ago
1
I'm trying to compile to x8664-pc-windows-gnu, which already shows up in my target list when I enter rustc --print target-list, but when I run cargo b
directory_cli
Rust
ConnorMooneyhan
ConnorMooneyhan
shared a Post
10 months ago
1
Hello all! When I use cargo build (or cargo build --release), there is no contact.exe file produced in the target/debug (or target/release) folder, bu
directory_cli
Rust
19ecal
19ecal
That is an executable. It's just a Linux executable, which tend to have no extensions, as opposed to Windows ones which have .exe. You won't be able to run it (the one with no extension) on Windows (or vice versa), but to run it here on replit, you can go to the shell and type ./target/release/contact. The reason it is generating a Linux executable is because your repl is actually on a Linux system.10 months ago