Skip to content

Commit

Permalink
Fix Tilt setup (#199)
Browse files Browse the repository at this point in the history
* Rename xtask

* Compatibility fixes for 2021 edition

* Fix Clippy

* Update Cargo config

* Update Discord links
  • Loading branch information
arendjr authored Sep 26, 2023
1 parent 4e95816 commit 51e50d1
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .cargo/config
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[alias]
xtask = "run --package xtask --"
xtask = "run --package fp-bindgen-xtask --"
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"
exclude = [
"examples/example-plugin",
"examples/example-rust-wasmer2-runtime",
Expand All @@ -19,7 +20,7 @@ fp-bindgen-macros = { version = "3.0.0", path = "macros" }
[workspace.package]
version = "3.0.0"
authors = ["Fiberplane <[email protected]>"]
edition = "2018"
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/fiberplane/fp-bindgen/"
repository = "https://github.com/fiberplane/fp-bindgen/"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# fp-bindgen

[![Crates.io](https://img.shields.io/crates/v/fp-bindgen.svg)](https://crates.io/crates/fp-bindgen)
[![Discord Shield](https://discordapp.com/api/guilds/950489382626951178/widget.png?style=shield)](https://discord.gg/fAt2xgMSGS)
[![Discord Shield](https://discordapp.com/api/guilds/950489382626951178/widget.png?style=shield)](https://discord.gg/MJr7pYzZQ4)

Bindings generator for full-stack WASM plugins.

Expand Down
2 changes: 1 addition & 1 deletion fp-bindgen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# fp-bindgen
[![Crates.io](https://img.shields.io/crates/v/fp-bindgen.svg)](https://crates.io/crates/fp-bindgen)
[![Discord Shield](https://discordapp.com/api/guilds/950489382626951178/widget.png?style=shield)](https://discord.gg/fAt2xgMSGS)
[![Discord Shield](https://discordapp.com/api/guilds/950489382626951178/widget.png?style=shield)](https://discord.gg/MJr7pYzZQ4)
Bindings generator for full-stack WASM plugins.
Expand Down
2 changes: 1 addition & 1 deletion macros/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl ToTokens for Primitive {
U64 => "U64",
};
let ident = Ident::new(ident_str, Span::call_site());
tokens.extend(vec![TokenTree::Ident(ident)].into_iter());
tokens.extend(vec![TokenTree::Ident(ident)]);
}
}

Expand Down
4 changes: 2 additions & 2 deletions macros/src/serializable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub(crate) fn impl_derive_serializable(item: TokenStream) -> TokenStream {
});
quote! {
where
#( #params#param_bounds ),*
#( #params #param_bounds ),*
}
};

Expand All @@ -131,7 +131,7 @@ pub(crate) fn impl_derive_serializable(item: TokenStream) -> TokenStream {
};

let implementation = quote! {
impl#generics fp_bindgen::prelude::Serializable for #item_name#generics#where_clause {
impl #generics fp_bindgen::prelude::Serializable for #item_name #generics #where_clause {
fn ident() -> fp_bindgen::prelude::TypeIdent {
#ident
}
Expand Down
2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "xtask"
name = "fp-bindgen-xtask"
version = "0.1.0"
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion xtask/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn cargo(args: impl IntoIterator<Item = impl Into<OsString>>) -> Expression

pub fn deno(args: impl IntoIterator<Item = impl Into<OsString>>) -> Expression {
let args: VecDeque<OsString> = args.into_iter().map(|os| os.into()).collect();
cmd("deno", &args)
cmd("deno", args)
}

pub fn from_root(path: impl Into<PathBuf>) -> PathBuf {
Expand Down

0 comments on commit 51e50d1

Please sign in to comment.