summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-03-05 16:16:57 -0500
committerJesse Luehrs <doy@tozt.net>2022-03-05 16:16:57 -0500
commit0a36ee5f441260f13beda17eb5482e6bd0f9eb8c (patch)
treef3bb6a3ae6cb60b6d8b1e53ec8bf8a59d12aa0be /Makefile
parent9739d754e72d82248c93e7d54d9b7f0cac669c28 (diff)
downloadnbsh-0a36ee5f441260f13beda17eb5482e6bd0f9eb8c.tar.gz
nbsh-0a36ee5f441260f13beda17eb5482e6bd0f9eb8c.zip
add tokio-console support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f5641f2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+build:
+ cargo build
+.PHONY: build
+
+run:
+ cargo run
+.PHONY: run
+
+console:
+ RUSTFLAGS="--cfg tokio_unstable --cfg nbsh_tokio_console" cargo run
+.PHONY: console
+
+release:
+ cargo build --release
+.PHONY: release
+
+run-release:
+ cargo run --release
+.PHONY: run-release
+
+console-release:
+ RUSTFLAGS="--cfg tokio_unstable --cfg nbsh_tokio_console" cargo run --release
+.PHONY: console-release