Skip to content

Commit

Permalink
feat: declare the use-template feature in the Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Mar 8, 2024
1 parent 7c634c8 commit 0bb41e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ with-raf = ["sauron-core/with-raf"]
with-interning = ["sauron-core/with-interning"]
with-jss = ["sauron-macro", "with-lookup"] #enable use of jss (css style in json format)
prediff = ["sauron-core/prediff"]
use-template = ["sauron-core/use-template"] # enable the use of template lookup

# shows telemetry such as duration it took to update the dom
with-measure = ["sauron-core/with-measure"]
Expand Down
1 change: 1 addition & 0 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ with-ric = [] # use of request_idle_callback in javascript
with-raf = [] # use of request_animation_frame in javascript
with-interning = [] # use caching of strings when crossing rust to js, for faster transfer
use-cached-elements = [] # use caching of common elements
use-template = [] # enable the use of template lookup
custom_element = [] # use of register_custom_element, adding this will add the js snippets
prediff = [] # diffing optimization

Expand Down
2 changes: 1 addition & 1 deletion examples/experimentals/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ crate-type = ["cdylib"]
[dependencies]
console_error_panic_hook = "0.1"
js-sys = "0.3"
sauron = { path = "../../", features = ["log-patches"] }
sauron = { path = "../../", features = ["log-patches", "use-template"] }
log = "0.4"
console_log = "0.2"
2 changes: 1 addition & 1 deletion examples/js-performance-benchmark-sauron/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]
rand = { version = "0.8.5", features = ["small_rng"] }
getrandom = { version = "0.2.7", features = ["js"] }
#sauron = { version = "0.60.7", features = ["with-debug", "with-measure"] }
sauron = { path = "../../../sauron", features = ["with-debug", "with-measure"] }
sauron = { path = "../../../sauron", features = ["with-debug", "with-measure", "use-template"] }
console_log = "0.2"

[profile.release]
Expand Down

0 comments on commit 0bb41e3

Please sign in to comment.