Skip to content

Commit

Permalink
Merge pull request rustwasm#93 from jasondavies/readme
Browse files Browse the repository at this point in the history
Fix indentation in README.
  • Loading branch information
ashleygwilliams authored Apr 19, 2018
2 parents a4d0e35 + 8f2d1cb commit 4bd93cc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ if you want to publish packages, you'll also need an account on [npm] and have
2. add `wasm-bindgen` to your `Cargo.toml`:
```toml
[lib]
crate-type = ["cdylib"]
[lib]
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2"
[dependencies]
wasm-bindgen = "0.2"
```
3. add this to the top of your `src/lib.rs`:

```rust
#![feature(proc_macro, wasm_import_module, wasm_custom_section)]
#![feature(proc_macro, wasm_import_module, wasm_custom_section)]

extern crate wasm_bindgen;
extern crate wasm_bindgen;

use wasm_bindgen::prelude::*;
use wasm_bindgen::prelude::*;
```

4. annotate your public functions with `#[wasm_bindgen]`, for example:
Expand Down

0 comments on commit 4bd93cc

Please sign in to comment.