mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 15:20:18 +00:00
fix: update generated code to use new Marine config API (#30)
This commit is contained in:
parent
fb69412161
commit
f63e0806b4
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -697,7 +697,7 @@ checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
|
||||
|
||||
[[package]]
|
||||
name = "marine-build-rs-generator"
|
||||
version = "0.8.0"
|
||||
version = "0.8.1"
|
||||
dependencies = [
|
||||
"marine-test-macro-impl",
|
||||
]
|
||||
@ -883,7 +883,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marine-rs-sdk-test"
|
||||
version = "0.8.0"
|
||||
version = "0.8.1"
|
||||
dependencies = [
|
||||
"fluence-app-service",
|
||||
"marine-build-rs-generator",
|
||||
@ -924,7 +924,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marine-test-macro"
|
||||
version = "0.8.0"
|
||||
version = "0.8.1"
|
||||
dependencies = [
|
||||
"marine-test-macro-impl",
|
||||
"proc-macro-error",
|
||||
@ -935,7 +935,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "marine-test-macro-impl"
|
||||
version = "0.8.0"
|
||||
version = "0.8.1"
|
||||
dependencies = [
|
||||
"darling",
|
||||
"fluence-app-service",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "marine-rs-sdk-test"
|
||||
version = "0.8.0"
|
||||
version = "0.8.1"
|
||||
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-test"
|
||||
@ -21,8 +21,8 @@ doctest = false
|
||||
trybuild = "1.0"
|
||||
|
||||
[dependencies]
|
||||
marine-test-macro = { path = "crates/marine-test-macro", version = "=0.8.0" }
|
||||
marine-build-rs-generator = { path = "crates/marine-build-rs-generator", version = "=0.8.0" }
|
||||
marine-test-macro = { path = "crates/marine-test-macro", version = "=0.8.1" }
|
||||
marine-build-rs-generator = { path = "crates/marine-build-rs-generator", version = "=0.8.1" }
|
||||
fluence-app-service = { version = "0.22.1", features = ["raw-module-api"] }
|
||||
|
||||
serde = { version = "1.0.144", features = ["derive"] }
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "marine-build-rs-generator"
|
||||
version = "0.8.0"
|
||||
version = "0.8.1"
|
||||
edition = "2018"
|
||||
description = "Tools for generating marine_test_env in build scripts"
|
||||
documentation = "https://docs.rs/marine-build-rs-generator"
|
||||
@ -17,4 +17,4 @@ all-features = true
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
marine-test-macro-impl = { path = "../marine-test-macro-impl", version = "=0.8.0" }
|
||||
marine-test-macro-impl = { path = "../marine-test-macro-impl", version = "=0.8.1" }
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#![doc(html_root_url = "https://docs.rs/marine-build-rs-generator/0.8.0")]
|
||||
#![doc(html_root_url = "https://docs.rs/marine-build-rs-generator/0.8.1")]
|
||||
#![deny(
|
||||
dead_code,
|
||||
nonstandard_style,
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "marine-test-macro-impl"
|
||||
version = "0.8.0"
|
||||
version = "0.8.1"
|
||||
edition = "2018"
|
||||
description = "Implementation of the `#[marine_test]` macro"
|
||||
documentation = "https://docs.rs/fluence/marine-test-macro-impl"
|
||||
|
@ -65,7 +65,7 @@ pub(crate) fn generate_app_service_ctor(
|
||||
let mut __m_generated_marine_config = marine_rs_sdk_test::internal::TomlAppServiceConfig::load(&config_path)
|
||||
.unwrap_or_else(|e| panic!("app service config located at `{:?}` can't be loaded: {}", config_path, e));
|
||||
__m_generated_marine_config.service_base_dir = Some(tmp_dir);
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir = Some(modules_dir.to_string());
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir = Some(std::path::PathBuf::from(modules_dir));
|
||||
|
||||
let marine = marine_rs_sdk_test::internal::AppService::new_with_empty_facade(__m_generated_marine_config, service_id, std::collections::HashMap::new())
|
||||
.unwrap_or_else(|e| panic!("app service can't be created: {}", e));
|
||||
|
@ -112,7 +112,7 @@ fn empty_string() {
|
||||
config_path, e
|
||||
));
|
||||
__m_generated_marine_config.service_base_dir = Some(tmp_dir);
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir = Some(modules_dir.to_string());
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir = Some(std::path::PathBuf::from(modules_dir));
|
||||
let marine = marine_rs_sdk_test::internal::AppService::new_with_empty_facade(
|
||||
__m_generated_marine_config,
|
||||
service_id,
|
||||
|
@ -145,7 +145,7 @@ fn test() {
|
||||
)
|
||||
);
|
||||
__m_generated_marine_config.service_base_dir = Some(tmp_dir);
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir = Some(modules_dir.to_string());
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir = Some(std::path::PathBuf::from(modules_dir));
|
||||
let marine = marine_rs_sdk_test::internal::AppService::new_with_empty_facade(
|
||||
__m_generated_marine_config,
|
||||
service_id,
|
||||
|
@ -215,7 +215,7 @@ pub mod tests {
|
||||
);
|
||||
__m_generated_marine_config.service_base_dir = Some(tmp_dir);
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir =
|
||||
Some(modules_dir.to_string());
|
||||
Some(std::path::PathBuf::from(modules_dir));
|
||||
let marine = marine_rs_sdk_test::internal::AppService::new_with_empty_facade(
|
||||
__m_generated_marine_config,
|
||||
service_id,
|
||||
|
@ -215,7 +215,7 @@ fn test() {
|
||||
);
|
||||
__m_generated_marine_config.service_base_dir = Some(tmp_dir);
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir =
|
||||
Some(modules_dir.to_string());
|
||||
Some(std::path::PathBuf::from(modules_dir));
|
||||
let marine = marine_rs_sdk_test::internal::AppService::new_with_empty_facade(
|
||||
__m_generated_marine_config,
|
||||
service_id,
|
||||
@ -459,7 +459,7 @@ fn test() {
|
||||
);
|
||||
__m_generated_marine_config.service_base_dir = Some(tmp_dir);
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir =
|
||||
Some(modules_dir.to_string());
|
||||
Some(std::path::PathBuf::from(modules_dir));
|
||||
let marine = marine_rs_sdk_test::internal::AppService::new_with_empty_facade(
|
||||
__m_generated_marine_config,
|
||||
service_id,
|
||||
|
@ -215,7 +215,7 @@ fn empty_test() {
|
||||
);
|
||||
__m_generated_marine_config.service_base_dir = Some(tmp_dir);
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir =
|
||||
Some(modules_dir.to_string());
|
||||
Some(std::path::PathBuf::from(modules_dir));
|
||||
let marine = marine_rs_sdk_test::internal::AppService::new_with_empty_facade(
|
||||
__m_generated_marine_config,
|
||||
service_id,
|
||||
|
@ -264,7 +264,7 @@ fn empty_string() {
|
||||
)
|
||||
);
|
||||
__m_generated_marine_config.service_base_dir = Some(tmp_dir);
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir = Some(modules_dir.to_string());
|
||||
__m_generated_marine_config.toml_marine_config.modules_dir = Some(std::path::PathBuf::from(modules_dir));
|
||||
let marine = marine_rs_sdk_test::internal::AppService::new_with_empty_facade(
|
||||
__m_generated_marine_config,
|
||||
service_id,
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "marine-test-macro"
|
||||
version = "0.8.0"
|
||||
version = "0.8.1"
|
||||
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.8.0" }
|
||||
marine-test-macro-impl = { path = "../marine-test-macro-impl", version = "=0.8.1" }
|
||||
|
||||
quote = "1.0.21"
|
||||
proc-macro2 = "1.0.43"
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#![doc(html_root_url = "https://docs.rs/marine-test-macro/0.8.0")]
|
||||
#![doc(html_root_url = "https://docs.rs/marine-test-macro/0.8.1")]
|
||||
#![deny(
|
||||
dead_code,
|
||||
nonstandard_style,
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#![doc(html_root_url = "https://docs.rs/marine-rs-sdk-test/0.8.0")]
|
||||
#![doc(html_root_url = "https://docs.rs/marine-rs-sdk-test/0.8.1")]
|
||||
#![deny(
|
||||
dead_code,
|
||||
nonstandard_style,
|
||||
|
Loading…
Reference in New Issue
Block a user