Skip to content

Commit

Permalink
Introduce install-watched Make target
Browse files Browse the repository at this point in the history
  • Loading branch information
umut-sahin authored and brandonwillard committed Sep 24, 2024
1 parent c39600f commit a7a00e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ lto = true
codegen-units = 1
strip = true
panic = 'abort'

[package.metadata.scripts]
install = "pip install -e ."
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ venv:

# Setup the active virtual environment for development.
setup:
cargo install --force cargo-watch
cargo install --force cargo-run-script
pip install -e .[test]

# Build the latest changes in the rust bindings and install it to the active environment.
install:
pip install -e .

# Build the latest changes in the rust bindings and install it to the active environment automatically when rust crate changes.
install-watched:
cargo watch -x 'run-script install'

# Run pre-commit checks.
pcc:
pre-commit run --all-files
Expand Down

0 comments on commit a7a00e1

Please sign in to comment.