-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release "engineering" (rustfmt, cargo, readme) * Revive has_self and update to watt 0.4 This is not a breaking change. I think. * Basic docwork * README: drive-by typo fix
- Loading branch information
1 parent
298b0ff
commit d9c1590
Showing
8 changed files
with
167 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/target | ||
**/*.rs.bk | ||
Cargo.lock | ||
wasm/target | ||
wasm/Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,16 @@ authors = ["Andre Bogus <[email protected]>"] | |
description = "A procedural macro to de-monomorphize generic methods" | ||
edition = "2018" | ||
keywords = ["monomorphization", "compiler-plugin"] | ||
categories = ["development-tools", "wasm", "rust-patterns"] | ||
license = "Apache-2.0" | ||
name = "momo" | ||
readme = "README.md" | ||
repository = "https://github.com/llogiq/momo" | ||
version = "0.2.1" | ||
version = "0.2.2" | ||
|
||
[lib] | ||
proc_macro = true | ||
|
||
[dependencies] | ||
watt = "0.1" | ||
watt = "0.4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
extern crate proc_macro; | ||
|
||
#![doc = include_str!("../README.md")] | ||
use proc_macro::TokenStream; | ||
use watt::WasmMacro; | ||
|
||
static WASM: &[u8] = include_bytes!("momo.wasm"); | ||
static MACRO: WasmMacro = WasmMacro::new(WASM); | ||
|
||
#[proc_macro_attribute] | ||
/// Generate lightweight monomorphized wrapper around main implementation. | ||
/// May be applied to functions and methods. | ||
pub fn momo(attrs: TokenStream, input: TokenStream) -> TokenStream { | ||
watt::proc_macro_attribute("momo", input, attrs, WASM) | ||
MACRO.proc_macro_attribute("momo", input, attrs) | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
[package] | ||
authors = ["Andre Bogus <[email protected]>"] | ||
description = "A procedural macro to de-monomorphize generic methods" | ||
description = "A procedural macro to de-monomorphize generic methods [internal WASM implementation]" | ||
edition = "2018" | ||
keywords = ["monomorphization", "compiler-plugin"] | ||
categories = ["development-tools", "wasm", "rust-patterns"] | ||
license = "Apache-2.0" | ||
name = "momo" | ||
name = "momo-watt" | ||
readme = "README.md" | ||
repository = "https://github.com/llogiq/momo" | ||
version = "0.1.0" | ||
version = "0.2.2" | ||
|
||
[profile.release] | ||
opt-level = "z" | ||
|
@@ -23,4 +24,4 @@ proc-macro2 = { git = "https://github.com/dtolnay/watt" } | |
[dependencies] | ||
syn = { version = "1.0", features = ["full", "fold"] } | ||
quote = "1.0" | ||
proc-macro2 = "1.0" | ||
proc-macro2 = "=1.0.27" # Temporary hack as watt is left at .27 |
Oops, something went wrong.