Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update sauron to version 0.28.0 #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions bin/src/framework_card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,13 @@ impl Component for FrameworkCard {
input()
.attribute("type", "checkbox")
.tx_on("click", tx.contra_map(|_| In::ToggleEnabled))
.rx_checked(self.is_enabled, rx.branch_filter_map(|msg| match msg {
Out::IsEnabled(is_enabled) => {
Some(*is_enabled)
}
_ => { None }
}))
.rx_checked(
self.is_enabled,
rx.branch_filter_map(|msg| match msg {
Out::IsEnabled(is_enabled) => Some(*is_enabled),
_ => None,
}),
),
),
)
.with(td().with(
Expand Down Expand Up @@ -277,7 +278,7 @@ pub fn all_cards() -> Vec<FrameworkCard> {
"frameworks/sauron/index.html",
&[
("language", "rust"),
("version", "0.20.3"),
("version", "0.28.0"),
("has vdom", "yes"),
],
true,
Expand Down
2 changes: 1 addition & 1 deletion frameworks/sauron/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<script src='pkg/todomvc.js'></script>
<script type=module>
window.wasm_bindgen('pkg/todomvc_bg.wasm')
wasm_bindgen('pkg/todomvc_bg.wasm')
.catch(console.error);
</script>
</body>
Expand Down
22 changes: 18 additions & 4 deletions frameworks/sauron/pkg/todomvc.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
/* tslint:disable */
/* eslint-disable */
/**
*/
export function main(): void;

export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

export interface InitOutput {
readonly memory: WebAssembly.Memory;
readonly main: () => void;
readonly __wbindgen_malloc: (a: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hce3b2007688595d2: (a: number, b: number, c: number) => void;
readonly __wbindgen_exn_store: (a: number) => void;
readonly __wbindgen_start: () => void;
}

/**
* If `module_or_path` is {RequestInfo}, makes a request and
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
* for everything else, calls `WebAssembly.instantiate` directly.
*
* @param {RequestInfo | BufferSource | WebAssembly.Module} module_or_path
* @param {InitInput | Promise<InitInput>} module_or_path
*
* @returns {Promise<any>}
* @returns {Promise<InitOutput>}
*/
export default function init (module_or_path: RequestInfo | BufferSource | WebAssembly.Module): Promise<any>;
export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;

Loading