target / lorri

Your project's nix-env
Apache License 2.0
993 stars 69 forks source link

Set up cargo plugins #44

Open Profpatsch opened 5 years ago

Profpatsch commented 5 years ago

@Profpatsch writes:

Plugins like cargo audit provide helpful functionality to the project.

We cannot add them toCargo.toml’s [dev-dependencies], because that requires their dependencie’s versions to align with the versions of our other dependencies. They need to be installed with cargo install and then provided to the project somehow.

Ideally, we could integrate them into our shell.nix environment, by ways of carnix for example.

@shlevy writes:

Does upstream consider this a deficiency in the cargo spec?

@Profpatsch writes:

I don’t know.

They might just assume users will set it up globally with cargo install somehow.

@Profpatsch writes:

There is a new rust->nix tool on the block: https://github.com/kolloch/crate2nix It might be nicer to use than carnix.

kolloch commented 5 years ago

@Profpatsch I'd really love feedback on what you consider necessary for a 1.0 release (https://github.com/kolloch/crate2nix/issues/8) and what your needs are. Let me know!