1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Improve some feature flags

This commit is contained in:
Emil Ernerfeldt
2022-01-31 19:17:49 +01:00
parent 2183e9fdea
commit b5aaa5fa6f
6 changed files with 25 additions and 13 deletions

View File

@@ -42,13 +42,14 @@ rm -f docs/${CRATE_NAME}_bg.wasm
echo "Building rust…"
BUILD=release
cargo build \
-p ${CRATE_NAME} \
--release \
--lib \
--target wasm32-unknown-unknown \
--no-default-features \
--features ${FEATURES}
(cd $CRATE_NAME &&
cargo build \
--release \
--lib \
--target wasm32-unknown-unknown \
--no-default-features \
--features ${FEATURES}
)
# Get the output directory (in the workspace it is in another location)
TARGET=`cargo metadata --format-version=1 | jq --raw-output .target_directory`