Skip to content

nxrs/cargo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 10, 2024
cd4fc28 · May 10, 2024

History

64 Commits
Jul 5, 2021
May 8, 2024
May 10, 2024
May 8, 2024
Jul 5, 2021
May 8, 2024
May 10, 2024
May 8, 2024
May 8, 2024
Jul 5, 2021
Jul 8, 2021
Jul 8, 2021
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
May 8, 2024
Oct 2, 2023

Repository files navigation

@nxrs/cargo

npm version

This is a WIP plugin for @nrwl/nx adding support for Rust applications and libraries.

Generators

# @nxrs/cargo:bin also works
> nx generate @nxrs/cargo:app my-rust-app
> nx generate @nxrs/cargo:lib my-rust-lib

Executors

# Build a library or binary
> nx build my-rust-app

# Run unit tests in a library
> nx test my-rust-lib

# Check a Rust project with `clippy`
> nx lint my-rust-app
# Don't fail on warnings:
> nx lint my-rust-app --fail-on-warnings false

Options

The executors accept most of the same CLI args as the corresponding cargo commands. When in doubt, run with the --help flag to see all options with descriptions:

> nx build my-rust-app --help