summaryrefslogtreecommitdiffstats
path: root/rust-crates
diff options
context:
space:
mode:
authorPavel Vinogradov2018-10-22 19:55:34 -0400
committerPavel Vinogradov2018-10-22 19:55:34 -0400
commit9460a05d478a9d7279abd7cb50eeae1408594173 (patch)
treee7dd0ea3fc04768c52cab67bc7f79b155c5ed97e /rust-crates
parent5e9ce3c04fb91b0b5a7717e26979b95e405b0cdf (diff)
rust-crates/FUNCTIONS: new section for Rust crates
Diffstat (limited to 'rust-crates')
-rwxr-xr-xrust-crates/FUNCTIONS20
1 files changed, 20 insertions, 0 deletions
diff --git a/rust-crates/FUNCTIONS b/rust-crates/FUNCTIONS
new file mode 100755
index 0000000000..bf7fb8c9f3
--- /dev/null
+++ b/rust-crates/FUNCTIONS
@@ -0,0 +1,20 @@
+#-------------------------------------------------------------------------
+## Section-default build script.
+#-------------------------------------------------------------------------
+function default_build_cargo() {
+ cargo build
+}
+
+#-------------------------------------------------------------------------
+## Section-default install script.
+#-------------------------------------------------------------------------
+function default_install_cargo() {
+ cargo install --root "${INSTALL_ROOT}/usr"
+}
+
+function default_build() {
+ default_build_cargo
+}
+function default_install() {
+ default_install_cargo
+}