Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for "package" argument #33

Merged
merged 1 commit into from
May 5, 2024
Merged

Conversation

dannymcgee
Copy link
Contributor

With this update, all @nxrs/cargo executors will correctly handle a package key added to the options. This can be useful if (for some reason) you want your Nx project name and your Cargo package name to be different.

For example, given the following project configuration:

# packages/foo/Cargo.toml
[package]
name = "foo-rs"
# ...
# /Cargo.toml
[workspace]
members = ["packages/foo"]
// packages/foo/project.json
{
  "root": "packages/foo",
  // ...
  "targets": {
    "test": {
      "executor": "@nxrs/cargo:test",
      "options": {
        "package": "foo-rs"
        // ...
      }
    }
    // ...
  }
}

Running npx nx test foo should now execute cargo test -p foo-rs

@dannymcgee dannymcgee merged commit d4c5b10 into main May 5, 2024
@dannymcgee dannymcgee deleted the support-package-argument branch May 5, 2024 21:00
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.

1 participant