Skip to content

Commit 452db26

Browse files
committed
feat!: rename feature nightly to specific feature_impl_trait_in_assoc_type
1 parent f0387a4 commit 452db26

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

packages/frender-render-with/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ hooks = { version = "3.0.0-alpha", default-features = false, features = [
2525
csr = ["dep:frender-csr"]
2626

2727
# Also requires csr
28-
nightly = []
28+
feature_impl_trait_in_assoc_type = []

packages/frender-render-with/src/csr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ use frender_csr::{
88
pub trait RenderHtml: experimental::RenderHtml {}
99
impl<T: ?Sized + experimental::RenderHtml> RenderHtml for T {}
1010

11-
#[cfg(feature = "nightly")]
11+
#[cfg(feature = "feature_impl_trait_in_assoc_type")]
1212
mod nightly_impl;
1313

14-
#[cfg(not(feature = "nightly"))]
14+
#[cfg(not(feature = "feature_impl_trait_in_assoc_type"))]
1515
mod not_nightly_impl;
1616

1717
/// This struct is a wrapper for render context so that it can only be used with

packages/frender-render-with/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#![cfg_attr(feature = "nightly", feature(impl_trait_in_assoc_type))]
1+
#![cfg_attr(
2+
feature = "feature_impl_trait_in_assoc_type",
3+
feature(impl_trait_in_assoc_type)
4+
)]
25

36
#[cfg(feature = "csr")]
47
pub use self::csr::{

packages/frender/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ default = [
6868
"KeyedElements",
6969
"Memo",
7070
]
71-
nightly = ["frender-render-with?/nightly"]
71+
feature_impl_trait_in_assoc_type = [
72+
"frender-render-with?/feature_impl_trait_in_assoc_type",
73+
]
7274
html = ["csr"] # TODO: remove
7375
html-components = ["html", "frender-html/components"]
7476
either = [

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ cargo test -p frender-style --features web
2020
. ./scripts/test/frender-hooks-ext.sh
2121

2222
cargo test -p frender-render-with --features csr
23-
cargo +nightly test -p frender-render-with --features csr,nightly
23+
cargo +nightly test -p frender-render-with --features csr,feature_impl_trait_in_assoc_type

0 commit comments

Comments
 (0)