Skip to content
/ watt Public

Commit d29917a

Browse files
committed
Release 0.4.0
1 parent 3067c4f commit d29917a

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "watt"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["David Tolnay <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
description = "Runtime for executing Rust procedural macros compiled as WebAssembly."

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Watt is a runtime for executing Rust procedural macros compiled as WebAssembly.
1010

1111
```toml
1212
[dependencies]
13-
watt = "0.3"
13+
watt = "0.4"
1414
```
1515

1616
*Compiler support: requires rustc 1.35+*
@@ -113,7 +113,7 @@ a new Cargo.toml, put:
113113
proc-macro = true
114114

115115
[dependencies]
116-
watt = "0.3"
116+
watt = "0.4"
117117
```
118118

119119
And in its src/lib.rs, define real proc macros corresponding to each of the ones

demo/wa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ publish = false
99
proc-macro = true
1010

1111
[dependencies]
12-
watt = "0.3"
12+
watt = "0.4"

proc-macro/src/ffi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::marker::PhantomData;
44
use std::panic::{self, PanicInfo};
55
use std::sync::Once;
66

7-
#[link(wasm_import_module = "watt-0.3")]
7+
#[link(wasm_import_module = "watt-0.4")]
88
extern "C" {
99
fn token_stream_serialize(stream: u32) -> handle::Bytes;
1010
fn token_stream_deserialize(ptr: *const u8, len: usize) -> u32;

src/interpret.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fn extern_vals(module: &Module, store: &mut Store) -> Vec<ExternVal> {
119119

120120
fn mk_host_func(import: Import, store: &mut Store) -> ExternVal {
121121
let (module, name, ref sig) = import;
122-
assert_eq!(module, "watt-0.3", "Wasm import from unknown module");
122+
assert_eq!(module, "watt-0.4", "Wasm import from unknown module");
123123
let func = match sig {
124124
Extern::Func(func) => func,
125125
Extern::Table(_) | Extern::Memory(_) | Extern::Global(_) => {

src/jit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fn mk_host_func(import: &ImportType, store: &Store) -> Func {
136136
// TODO: assert `import` is a function import
137137
assert_eq!(
138138
import.module(),
139-
"watt-0.3",
139+
"watt-0.4",
140140
"Wasm import from unknown module"
141141
);
142142
import::host_func(import.name(), store)

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
//! proc-macro = true
113113
//!
114114
//! [dependencies]
115-
//! watt = "0.3"
115+
//! watt = "0.4"
116116
//! ```
117117
//!
118118
//! And in its src/lib.rs, define real proc macros corresponding to each of the

0 commit comments

Comments
 (0)