From 60cc4fbd9f550bcd7ebd4769b19ea27b409ed7e7 Mon Sep 17 00:00:00 2001 From: Valery Antopol Date: Tue, 5 Oct 2021 16:17:53 +0300 Subject: [PATCH] Bump crate versions and add changelog for sdk-test (#66) --- Cargo.lock | 6 +++--- crates/marine-test-macro-impl/Cargo.toml | 2 +- .../src/marine_test/glue_code_generator.rs | 4 ++-- crates/marine-test-macro/Cargo.toml | 4 ++-- crates/marine-test-macro/src/lib.rs | 2 +- sdk-test/CHANGELOG.md | 9 +++++++++ sdk-test/Cargo.toml | 4 ++-- sdk-test/src/lib.rs | 2 +- 8 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 sdk-test/CHANGELOG.md diff --git a/Cargo.lock b/Cargo.lock index db8312a..ffa826d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -879,7 +879,7 @@ dependencies = [ [[package]] name = "marine-rs-sdk-test" -version = "0.2.0" +version = "0.3.0" dependencies = [ "fluence-app-service", "marine-test-macro", @@ -921,7 +921,7 @@ dependencies = [ [[package]] name = "marine-test-macro" -version = "0.2.0" +version = "0.3.0" dependencies = [ "marine-test-macro-impl", "proc-macro-error", @@ -932,7 +932,7 @@ dependencies = [ [[package]] name = "marine-test-macro-impl" -version = "0.2.0" +version = "0.3.0" dependencies = [ "darling", "fluence-app-service", diff --git a/crates/marine-test-macro-impl/Cargo.toml b/crates/marine-test-macro-impl/Cargo.toml index 9d3a074..e00da2a 100644 --- a/crates/marine-test-macro-impl/Cargo.toml +++ b/crates/marine-test-macro-impl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "marine-test-macro-impl" -version = "0.2.0" # remember to update html_root_url +version = "0.3.0" # remember to update html_root_url edition = "2018" description = "Implementation of the `#[marine_test]` macro" documentation = "https://docs.rs/fluence/marine-test-macro-impl" diff --git a/crates/marine-test-macro-impl/src/marine_test/glue_code_generator.rs b/crates/marine-test-macro-impl/src/marine_test/glue_code_generator.rs index 70b12b3..efc6ca7 100644 --- a/crates/marine-test-macro-impl/src/marine_test/glue_code_generator.rs +++ b/crates/marine-test-macro-impl/src/marine_test/glue_code_generator.rs @@ -119,7 +119,7 @@ pub(super) fn generate_test_glue_code( ) -> TResult { match attrs { MTestAttributes::MultipleServices(services) => { - generate_test_glue_code_multiple_eservices(func_item, services, test_file_path) + generate_test_glue_code_multiple_services(func_item, services, test_file_path) } MTestAttributes::SingleService(service) => { generate_test_glue_code_single_service(func_item, service, test_file_path) @@ -184,7 +184,7 @@ fn generate_test_glue_code_single_service( Ok(glue_code) } -fn generate_test_glue_code_multiple_eservices( +fn generate_test_glue_code_multiple_services( func_item: syn::ItemFn, services: HashMap, test_file_path: PathBuf, diff --git a/crates/marine-test-macro/Cargo.toml b/crates/marine-test-macro/Cargo.toml index 0d51a4f..74639a2 100644 --- a/crates/marine-test-macro/Cargo.toml +++ b/crates/marine-test-macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "marine-test-macro" -version = "0.2.0" # remember to update html_root_url +version = "0.3.0" # remember to update html_root_url edition = "2018" description = "Definition of the `#[marine_test]` macro" documentation = "https://docs.rs/fluence/marine-test-macro" @@ -18,7 +18,7 @@ proc-macro = true doctest = false [dependencies] -marine-test-macro-impl = { path = "../marine-test-macro-impl", version = "=0.2.0" } +marine-test-macro-impl = { path = "../marine-test-macro-impl", version = "=0.3.0" } quote = "1.0.9" proc-macro2 = "1.0.24" diff --git a/crates/marine-test-macro/src/lib.rs b/crates/marine-test-macro/src/lib.rs index 754d3ac..4befd57 100644 --- a/crates/marine-test-macro/src/lib.rs +++ b/crates/marine-test-macro/src/lib.rs @@ -14,7 +14,7 @@ * limitations under the License. */ -#![doc(html_root_url = "https://docs.rs/sdk-test-macro/0.2.0")] +#![doc(html_root_url = "https://docs.rs/sdk-test-macro/0.3.0")] #![deny( dead_code, nonstandard_style, diff --git a/sdk-test/CHANGELOG.md b/sdk-test/CHANGELOG.md new file mode 100644 index 0000000..6c436d9 --- /dev/null +++ b/sdk-test/CHANGELOG.md @@ -0,0 +1,9 @@ +## Version 0.3.0 (2021-10-04) +[PR 61](https://github.com/fluencelabs/marine-rs-sdk/pull/61): + +Implemented the first part of [Issue 57](https://github.com/fluencelabs/marine-rs-sdk/issues/57): `marine_test` now can take several named services in attributes, then define interface to the services in `marine_test_env`. + +## Version 0.2.0 (2021-09-01) +[PR 54](https://github.com/fluencelabs/marine-rs-sdk/pull/54): +- previously test function accessed module interfaces through externally defined variables, now module interfaces are passed as arguments. +- introduced generated module `marine_test_env` which provides interface for generated structs and functions. diff --git a/sdk-test/Cargo.toml b/sdk-test/Cargo.toml index b0a92d2..2024628 100644 --- a/sdk-test/Cargo.toml +++ b/sdk-test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "marine-rs-sdk-test" -version = "0.2.0" # remember to update html_root_url +version = "0.3.0" # remember to update html_root_url description = "Backend SDK that allows testing modules for the Marine runtime" documentation = "https://docs.rs/marine-rs-sdk-test" repository = "https://github.com/fluencelabs/marine-rs-sdk/tree/master/fluence-test" @@ -21,7 +21,7 @@ doctest = false trybuild = "1.0" [dependencies] -marine-test-macro = { path = "../crates/marine-test-macro", version = "=0.2.0" } +marine-test-macro = { path = "../crates/marine-test-macro", version = "=0.3.0" } fluence-app-service = { version = "0.9.0", features = ["raw-module-api"] } serde = { version = "1.0.118", features = ["derive"] } diff --git a/sdk-test/src/lib.rs b/sdk-test/src/lib.rs index 4a0b6dc..1d3b080 100644 --- a/sdk-test/src/lib.rs +++ b/sdk-test/src/lib.rs @@ -14,7 +14,7 @@ * limitations under the License. */ -#![doc(html_root_url = "https://docs.rs/sdk-test/0.2.0")] +#![doc(html_root_url = "https://docs.rs/sdk-test/0.3.0")] #![deny( dead_code, nonstandard_style,