diff --git a/ci/build-examples.sh b/ci/build-examples.sh index 072d88ffeca..2bc3f56b184 100755 --- a/ci/build-examples.sh +++ b/ci/build-examples.sh @@ -24,12 +24,13 @@ for path in examples/*; do # shellcheck disable=SC2164 cd "$path" dist_dir="$output/$example" + export RUSTFLAGS="--cfg nightly_yew" if [[ "$example" == "boids" || "$example" == "password_strength" ]]; then # works around issue rust-lang/rust#96486 # where the compiler forgets to link some symbols connected to const_eval # only an issue on nightly and with build-std enabled which we do for code size # this deoptimizes only the examples that otherwise fail to build - export RUSTFLAGS="-Zshare-generics=n -Clto=thin" + export RUSTFLAGS="-Zshare-generics=n -Clto=thin $RUSTFLAGS" fi trunk build --release --dist "$dist_dir" --public-url "$PUBLIC_URL_PREFIX$example" diff --git a/packages/yew/src/lib.rs b/packages/yew/src/lib.rs index 72636369e9e..878eda98d7d 100644 --- a/packages/yew/src/lib.rs +++ b/packages/yew/src/lib.rs @@ -2,10 +2,7 @@ #![doc(html_logo_url = "https://yew.rs/img/logo.png")] #![cfg_attr(documenting, feature(doc_cfg))] #![cfg_attr(documenting, feature(doc_auto_cfg))] -#![cfg_attr( - nightly_yew, - feature(fn_traits, async_closure, unboxed_closures) -)] +#![cfg_attr(nightly_yew, feature(fn_traits, async_closure, unboxed_closures))] //! # Yew Framework - API Documentation //!