Skip to content

Commit

Permalink
Update README for publication to crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 6, 2018
1 parent f58c436 commit 69e5798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ First up, let's install the tools we need

```
$ rustup target add wasm32-unknown-unknown
$ cargo install --git https://github.com/alexcrichton/wasm-bindgen
$ cargo install wasm-bindgen-cli
```

The first command here installs the wasm target so you can compile to it, and
Expand All @@ -73,7 +73,7 @@ configuring our build output:
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = { git = 'https://github.com/alexcrichton/wasm-bindgen' }
wasm-bindgen = "0.1"
```

Next up our actual code! We'll write this in `src/lib.rs`:
Expand Down Expand Up @@ -425,7 +425,7 @@ impls, and foreign modules. Impls can only contain functions, and the attribute
cannot be attached to functions in an impl block or functions in a foreign
module. No lifetime parameters or type parameters are allowed on any of these
types. Foreign modules must have the `"C"` abi (or none listed). Free functions
with `#[wasm_bindgen]` might no have the `"C"` abi or none listed and also not
with `#[wasm_bindgen]` might no have the `"C"` abi or none listed and also not
needed to annotate with the `#[no_mangle]` attribute.

All structs referenced through arguments to functions should be defined in the
Expand Down

0 comments on commit 69e5798

Please sign in to comment.