From 71f24d827125eb3eadb51468325b51635c9baa5e Mon Sep 17 00:00:00 2001 From: wllenyj Date: Thu, 12 May 2022 20:58:48 +0800 Subject: [PATCH] dragonball: add Makefile. Currently supported: build, clippy, check, format, test, clean Fixes: #4257 Signed-off-by: wllenyj --- src/dragonball/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/dragonball/Makefile diff --git a/src/dragonball/Makefile b/src/dragonball/Makefile new file mode 100644 index 0000000000..8acd29de57 --- /dev/null +++ b/src/dragonball/Makefile @@ -0,0 +1,29 @@ +# Copyright (c) 2019-2022 Alibaba Cloud. All rights reserved. +# Copyright (c) 2019-2022 Ant Group. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +default: build + +build: + # FIXME: This line will be removed when we solve the vm-memory dependency problem in Dragonball Sandbox + cargo update -p vm-memory:0.8.0 --precise 0.7.0 + cargo build --all-features + +check: clippy format + +clippy: + @echo "INFO: cargo clippy..." + cargo clippy --all-targets --all-features \ + -- \ + -D warnings + +format: + @echo "INFO: cargo fmt..." + cargo fmt -- --check + +clean: + cargo clean + +test: + @echo "INFO: testing dragonball for development build" + cargo test --all-features -- --nocapture