Minor improvements
This commit is contained in:
parent
fac7851cdd
commit
28646a7f97
|
@ -10,6 +10,11 @@ edition = "2018"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
codegen-units = 1
|
||||||
|
opt-level = 3 # 3 => fast, s/z => small
|
||||||
|
|
||||||
|
[package.metadata.wasm-pack.profile.release]
|
||||||
|
wasm-opt = ["-O4"] # O4 => fast, Oz/Os => small
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
|
@ -10,6 +10,11 @@ edition = "2018"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
codegen-units = 1
|
||||||
|
opt-level = 3 # 3 => fast, s/z => small
|
||||||
|
|
||||||
|
[package.metadata.wasm-pack.profile.release]
|
||||||
|
wasm-opt = ["-O4"] # O4 => fast, Oz/Os => small
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
|
@ -10,6 +10,11 @@ edition = "2018"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
codegen-units = 1
|
||||||
|
opt-level = 3 # 3 => fast, s/z => small
|
||||||
|
|
||||||
|
[package.metadata.wasm-pack.profile.release]
|
||||||
|
wasm-opt = ["-O4"] # O4 => fast, Oz/Os => small
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
|
@ -10,6 +10,11 @@ edition = "2018"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
codegen-units = 1
|
||||||
|
opt-level = 3 # 3 => fast, s/z => small
|
||||||
|
|
||||||
|
[package.metadata.wasm-pack.profile.release]
|
||||||
|
wasm-opt = ["-O4"] # O4 => fast, Oz/Os => small
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
|
@ -457,7 +457,7 @@ impl<A> DomBuilder<A> {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn apply<F>(self, f: F) -> Self where F: FnOnce(Self) -> Self {
|
pub fn apply<F>(self, f: F) -> Self where F: FnOnce(Self) -> Self {
|
||||||
self.apply_if(true, f)
|
f(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
@ -485,6 +485,7 @@ impl<A> DomBuilder<A> where A: Clone {
|
||||||
f(self, element)
|
f(self, element)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[deprecated(since = "0.5.20", note = "Use the with_node macro instead")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn before_inserted<F>(self, f: F) -> Self where F: FnOnce(A) {
|
pub fn before_inserted<F>(self, f: F) -> Self where F: FnOnce(A) {
|
||||||
let element = self.element.clone();
|
let element = self.element.clone();
|
||||||
|
|
Loading…
Reference in New Issue