prepare before publish

This commit is contained in:
vms 2021-04-27 18:00:23 +03:00
parent e8bc1db0df
commit 5fc6cf07d7
10 changed files with 23 additions and 25 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "fluence-sdk-macro"
version = "0.6.0" # remember to update html_root_url
version = "0.6.1" # remember to update html_root_url
edition = "2018"
description = "Definition of the `#[fce]` macro"
documentation = "https://docs.rs/fluence/fluence-sdk-macro"
@ -18,4 +18,4 @@ proc-macro = true
doctest = false
[dependencies]
fluence-sdk-wit = { path = "../wit", version = "0.6.0" }
fluence-sdk-wit = { path = "../wit", version = "=0.6.1" }

View File

@ -1,6 +1,6 @@
[package]
name = "fluence-sdk-test-macro-impl"
version = "0.6.0" # remember to update html_root_url
version = "0.1.0" # remember to update html_root_url
edition = "2018"
description = "Implementation of the `#[fce_test]` macro"
repository = "https://github.com/fluencelabs/rust-sdk/crates/macro-test"
@ -13,8 +13,8 @@ license = "Apache-2.0"
all-features = true
[dependencies]
fluence-app-service = { version = "0.5.2", features = ["raw-module-api"] }
fce-wit-parser = "0.4.0"
fluence-app-service = { version = "0.7.0", features = ["raw-module-api"] }
fce-wit-parser = "0.5.0"
darling = "0.12.2"
quote = "1.0.9"

View File

@ -56,6 +56,8 @@ pub(super) fn itype_to_tokens(itype: &IType, records: &FCERecordTypes) -> TResul
token_stream
}
IType::String => quote! { String },
IType::ByteArray => quote! { Vec<u8> },
IType::Boolean => quote! { bool },
IType::S8 => quote! { i8 },
IType::S16 => quote! { i16 },
IType::S32 => quote! { i32 },
@ -68,9 +70,6 @@ pub(super) fn itype_to_tokens(itype: &IType, records: &FCERecordTypes) -> TResul
IType::I64 => quote! { i64 },
IType::F32 => quote! { f32 },
IType::F64 => quote! { f64 },
IType::Anyref => {
unimplemented!("anyrefs aren't supported and will be deleted from IType soon")
}
};
Ok(token_stream)

View File

@ -1,6 +1,6 @@
[package]
name = "fluence-sdk-test-macro"
version = "0.6.0" # remember to update html_root_url
version = "0.1.0" # remember to update html_root_url
edition = "2018"
description = "Definition of the `#[fce_test]` macro"
repository = "https://github.com/fluencelabs/rust-sdk/crates/macro-test"
@ -17,7 +17,7 @@ proc-macro = true
doctest = false
[dependencies]
fluence-sdk-test-macro-impl = { path = "../fce-test-macro-impl", version = "0.6.0" }
fluence-sdk-test-macro-impl = { path = "../fce-test-macro-impl", version = "0.1.0" }
quote = "1.0.9"
proc-macro2 = "1.0.24"

View File

@ -1,6 +1,6 @@
[package]
name = "fluence-sdk-main"
version = "0.6.0" # remember to update html_root_url
version = "0.6.1" # remember to update html_root_url
edition = "2018"
description = "Rust SDK for applications for the Fluence network"
documentation = "https://docs.rs/fluence/fluence-sdk-macro"
@ -19,7 +19,7 @@ crate-type = ["rlib"]
doctest = false
[dependencies]
fluence-sdk-macro = { path = "../fce-macro", version = "0.6.0" }
fluence-sdk-macro = { path = "../fce-macro", version = "=0.6.1" }
log = { version = "0.4.8", features = ["std"] }
serde = "=1.0.118"

View File

@ -1,6 +1,6 @@
[package]
name = "fce-timestamp-macro"
version = "0.6.0" # remember to update html_root_url
version = "0.6.1" # remember to update html_root_url
edition = "2018"
description = "Definition of the `#[build_timestamp]` macro"
repository = "https://github.com/fluencelabs/rust-sdk/crates/timestamp-macro"

View File

@ -1,6 +1,6 @@
[package]
name = "fluence-sdk-wit"
version = "0.6.0" # remember to update html_root_url
version = "0.6.1" # remember to update html_root_url
edition = "2018"
description = "Webassembly interface-types generator"
documentation = "https://docs.rs/fluence/fluence-sdk-macro"

View File

@ -67,7 +67,6 @@ impl quote::ToTokens for ast_types::AstFn {
objs_savings,
} = epilog_ingredients.generate_fn_epilog();
// here this Option must be Some
let original_func = &self.original;
let glue_code = quote::quote! {
@ -88,7 +87,7 @@ impl quote::ToTokens for ast_types::AstFn {
// return value conversation from Rust type to a Wasm type
#epilog
// save objects to keep them in memory that allows IT side
// save objects to keep them in memory for lifting
#objs_savings
}

View File

@ -1,11 +1,11 @@
[package]
name = "fluence-test"
version = "0.6.0" # remember to update html_root_url
version = "0.1.0" # remember to update html_root_url
description = "Fluence backend SDK for testing"
documentation = "https://docs.rs/fluence/"
repository = "https://github.com/fluencelabs/rust-sdk"
authors = ["Fluence Labs"]
readme = "README.md"
#readme = "README.md"
keywords = ["fluence", "sdk", "webassembly"]
categories = ["api-bindings", "wasm"]
license = "Apache-2.0"
@ -19,8 +19,8 @@ path = "src/lib.rs"
doctest = false
[dependencies]
fluence-sdk-test-macro = { path = "../crates/fce-test-macro", version = "0.6.0" }
fluence-app-service = { version = "0.5.2", features = ["raw-module-api"] }
fluence-sdk-test-macro = { path = "../crates/fce-test-macro", version = "0.1.0" }
fluence-app-service = { version = "0.7.0", features = ["raw-module-api"] }
serde = { version = "1.0.118", features = ["derive"] }
serde_json = "1.0.64"

View File

@ -1,11 +1,11 @@
[package]
name = "fluence"
version = "0.6.0" # remember to update html_root_url
version = "0.6.1" # remember to update html_root_url
description = "Fluence backend SDK for developing backend applications for the Fluence network"
documentation = "https://docs.rs/fluence/"
repository = "https://github.com/fluencelabs/rust-sdk"
authors = ["Fluence Labs"]
readme = "README.md"
#readme = "README.md"
keywords = ["fluence", "sdk", "webassembly"]
categories = ["api-bindings", "wasm"]
license = "Apache-2.0"
@ -19,9 +19,9 @@ path = "src/lib.rs"
doctest = false
[dependencies]
fluence-sdk-macro = { path = "../crates/fce-macro", version = "0.6.0" }
fluence-sdk-main = { path = "../crates/main", version = "0.6.0" }
fce-timestamp-macro = { path = "../crates/timestamp-macro", version = "0.6.0" }
fluence-sdk-macro = { path = "../crates/fce-macro", version = "=0.6.1" }
fluence-sdk-main = { path = "../crates/main", version = "=0.6.1" }
fce-timestamp-macro = { path = "../crates/timestamp-macro", version = "=0.6.1" }
serde = { version = "1.0.118", features = ["derive"]}