Replies: 1 comment 2 replies
-
Hey @jonmmease, I think we have two options:
I am not sure if everyone that uses the rust feedstock would prefer to not share their cargo cache ... so I am a bit unsure. We'll for sure work on adding environment variable support in pixi though. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm working on moving my VegaFusion project to pixi. This is a project with a Rust core and wrappers in Python, wasm / JavaScript, and Java. The current development setup is a bit of a hassle involving the system installation of rust/cargo, node, protobuf, and conda/conda.lock. I'd like to see if I can isolate all of this with pixi, as conda-forge already provides rust/cargo, node, and protobuf.
This seems to be working out pretty well so far (it's still a WIP), but I had one idea that I think would improve the situation a bit. I noticed that the rust installation from conda-forge still creates a
~/.cargo
directory for the cargo cache and it places any globally installed executables in~/.cargo/bin
. It would be great to have a clean way to put this.cargo
directory inside the.pixi
folder, and to add the.cargo/bin
directory to the path for use in tasks and inpixi shell
. This would make it possible to build a rust project without a system installation of rust, and without leaving any traces of Rust configuration outside of the project's pixi directory.As a side note, the reason I need
.cargo/bin
on the path is because I'm usingcargo
to installwasm-pack
, which doesn't seem to be available on conda-forge at this point.Here's one approach that comes to mind. It's possible to move the
.cargo
directory by setting theCARGO_HOME
environment variable, so if there was a way to set environment variables inpixi.toml
that would be used across tasks and inpixi shell
, that would make it possible to move the.cargo
directory to.pixi/.cargo
. And if it were possible to add additional directories inside.pixi
to the PATH, then it would be possible to add.pixi/.cargo/bin
to the path for use in tasks andpixi shell
.Beta Was this translation helpful? Give feedback.
All reactions