Skip to content

Commit

Permalink
Merge pull request #200 from DioxusLabs/jk/no-more-buildrs
Browse files Browse the repository at this point in the history
fix: remove code generation entirely
  • Loading branch information
jkelleyrtp authored Feb 4, 2022
2 parents 8e2a95e + b4391a3 commit 6f10af0
Show file tree
Hide file tree
Showing 12 changed files with 98 additions and 1,320 deletions.
9 changes: 6 additions & 3 deletions examples/todomvc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,18 @@ pub fn todo_entry<'a>(cx: Scope<'a, TodoEntryProps<'a>>) -> Element {

rsx!(cx, li {
class: "{completed} {editing}",
onclick: move |_| set_is_editing(true),
onfocusout: move |_| set_is_editing(false),
div { class: "view",
input { class: "toggle", r#type: "checkbox", id: "cbg-{todo.id}", checked: "{todo.checked}",
onchange: move |evt| {
cx.props.set_todos.make_mut()[&cx.props.id].checked = evt.value.parse().unwrap();
}
}
label { r#for: "cbg-{todo.id}", pointer_events: "none", "{todo.contents}" }
label {
r#for: "cbg-{todo.id}",
onclick: move |_| set_is_editing(true),
onfocusout: move |_| set_is_editing(false),
"{todo.contents}"
}
}
is_editing.then(|| rsx!{
input {
Expand Down
8 changes: 8 additions & 0 deletions packages/interpreter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ keywords = ["dom", "ui", "gui", "react", "wasm"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
wasm-bindgen = { version = "0.2.79", optional = true }
js-sys = { version = "0.3.56", optional = true }
web-sys = { version = "0.3.56", optional = true, features = ["Element", "Node"] }


[features]
default = []
web = ["wasm-bindgen", "js-sys", "web-sys"]
16 changes: 0 additions & 16 deletions packages/interpreter/build.rs

This file was deleted.

Loading

0 comments on commit 6f10af0

Please sign in to comment.