Sign in
pigweed
/
third_party
/
github
/
bazelbuild
/
rules_rust
/
05d54a46b1c7d58ec352c7881fb13b8935931b4e
/
.
/
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
));
}