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