From 0704b256cb471cc7cd15dc2f6d73852edc3a7def Mon Sep 17 00:00:00 2001 From: Umut Date: Mon, 23 Sep 2024 18:07:42 +0300 Subject: [PATCH] Introduce `install-release` and `install-release-watched` Make targets --- Cargo.toml | 1 + Makefile | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 032c4ad0..3808cdfa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,3 +29,4 @@ panic = 'abort' [package.metadata.scripts] install = "pip install -e ." +install-release = "pip install ." diff --git a/Makefile b/Makefile index 53f1a190..65c9b4b9 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,14 @@ install: install-watched: cargo watch -x 'run-script install' +# Build the latest changes in the rust bindings in release mode and install it to the active environment. +install-release: + pip install . + +# Build the latest changes in the rust bindings in release mode and install it to the active environment automatically when rust crate changes. +install-release-watched: + cargo watch -x 'run-script install-release' + # Run pre-commit checks. pcc: pre-commit run --all-files