Skip to content

Commit

Permalink
Release 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 16, 2020
1 parent 3067c4f commit d29917a
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.3.0"
version = "0.4.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
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 @@ -10,7 +10,7 @@ Watt is a runtime for executing Rust procedural macros compiled as WebAssembly.

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

*Compiler support: requires rustc 1.35+*
Expand Down Expand Up @@ -113,7 +113,7 @@ a new Cargo.toml, put:
proc-macro = true

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

And in its src/lib.rs, define real proc macros corresponding to each of the ones
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.3"
watt = "0.4"
2 changes: 1 addition & 1 deletion proc-macro/src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::marker::PhantomData;
use std::panic::{self, PanicInfo};
use std::sync::Once;

#[link(wasm_import_module = "watt-0.3")]
#[link(wasm_import_module = "watt-0.4")]
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.3", "Wasm import from unknown module");
assert_eq!(module, "watt-0.4", "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) -> Func {
// TODO: assert `import` is a function import
assert_eq!(
import.module(),
"watt-0.3",
"watt-0.4",
"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 @@ -112,7 +112,7 @@
//! proc-macro = true
//!
//! [dependencies]
//! watt = "0.3"
//! watt = "0.4"
//! ```
//!
//! And in its src/lib.rs, define real proc macros corresponding to each of the
Expand Down

0 comments on commit d29917a

Please sign in to comment.