Skip to content

feat(rust-crane): add testFlagsExtra to interface - #1095

Draft
snpschaaf wants to merge 1 commit into
nix-community:mainfrom
snpschaaf:rust-crane-testFlagsExtra
Draft

feat(rust-crane): add testFlagsExtra to interface#1095
snpschaaf wants to merge 1 commit into
nix-community:mainfrom
snpschaaf:rust-crane-testFlagsExtra

Conversation

@snpschaaf

Copy link
Copy Markdown

I extended the interface to access cranes setting cargoTestExtraArgs . Users can do so now via testFlagsExtra (named like testFlags does for cargoTestFlags).

Signed-off-by: Philippe Schaaf <philippe.schaaf@secunet.com>
@snpschaaf
snpschaaf force-pushed the rust-crane-testFlagsExtra branch from abf9e89 to 80ab9ca Compare March 14, 2025 13:24
@snpschaaf
snpschaaf marked this pull request as draft March 14, 2025 13:32
testFlagsExtra = {
type = t.str;
description = "additional flags to be passed in the cargoTestCommand invocation";
default = "--no-run";

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO:FIXME: this default should not be streamlined.

crane expect a string here. Without default everyone needs to set it. With some default some crane default would be overwritten. Make this interface optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants