Sign in
pigweed
/
third_party
/
github
/
bazelbuild
/
rules_rust
/
8b8150db501869d45bbcc46f100da1862ac45eec
/
.
/
examples
/
wasm_bindgen
/
main.rs
blob: 8703ad30001b8664b866740fabcf45f52490bdd0 [
file
] [
log
] [
blame
]
use
wasm_bindgen
::
prelude
::*;
#[
wasm_bindgen
]
pub
fn
double
(
i
:
i32
)
->
i32
{
i
*
2
}
#[
allow
(
dead_code
)]
fn
main
()
{
println
!(
"Hello {}"
,
double
(
2
));
}