Skip to content

Commit

Permalink
Release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 3, 2019
1 parent eec0706 commit 83460ce
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "watt"
version = "0.2.1"
version = "0.3.0"
authors = ["David Tolnay <[email protected]>"]
license = "MIT OR Apache-2.0"
description = "Runtime for executing Rust procedural macros compiled as WebAssembly."
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Watt is a runtime for executing Rust procedural macros compiled as WebAssembly.

```toml
[dependencies]
watt = "0.2"
watt = "0.3"
```

*Compiler support: requires rustc 1.35+*
Expand Down Expand Up @@ -110,7 +110,7 @@ bytes into the Watt runtime. In a new Cargo.toml, put:
proc-macro = true

[dependencies]
watt = "0.2"
watt = "0.3"
```

And in its src/lib.rs put:
Expand Down
2 changes: 1 addition & 1 deletion demo/wa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ publish = false
proc-macro = true

[dependencies]
watt = "0.2"
watt = "0.3"
2 changes: 1 addition & 1 deletion proc-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::rc::Rc;
use std::collections::HashSet;
use std::mem;

#[link(wasm_import_module = "watt-0.2")]
#[link(wasm_import_module = "watt-0.3")]
extern "C" {
fn token_stream_serialize(stream: u32) -> handle::Bytes;
fn token_stream_deserialize(ptr: *const u8, len: usize) -> u32;
Expand Down
2 changes: 1 addition & 1 deletion src/interpret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn extern_vals(module: &Module, store: &mut Store) -> Vec<ExternVal> {

fn mk_host_func(import: Import, store: &mut Store) -> ExternVal {
let (module, name, ref sig) = import;
assert_eq!(module, "watt-0.2", "Wasm import from unknown module");
assert_eq!(module, "watt-0.3", "Wasm import from unknown module");
let func = match sig {
Extern::Func(func) => func,
Extern::Table(_) | Extern::Memory(_) | Extern::Global(_) => {
Expand Down
2 changes: 1 addition & 1 deletion src/jit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn mk_host_func(import: &ImportType, store: &Store) -> HostFunc {
// TODO: assert `import` is a function import
assert_eq!(
import.module(),
"watt-0.2",
"watt-0.3",
"Wasm import from unknown module"
);
import::host_func(import.name(), store)
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
//! proc-macro = true
//!
//! [dependencies]
//! watt = "0.2"
//! watt = "0.3"
//! ```
//!
//! And in its src/lib.rs put:
Expand Down

0 comments on commit 83460ce

Please sign in to comment.