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:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user