Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fluencelabs/marine-rs-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: marine-rs-sdk-v0.13.0
Choose a base ref
...
head repository: fluencelabs/marine-rs-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: marine-rs-sdk-v0.14.0
Choose a head ref
  • 2 commits
  • 16 files changed
  • 2 contributors

Commits on Feb 21, 2024

  1. feat!: rename lambda to lens (#159)

    rename lambda to lens
    ValeryAntopol authored Feb 21, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9bb739a View commit details
  2. chore(master): release marine-rs-sdk 0.14.0 (#160)

    * chore(master): release marine-rs-sdk 0.14.0
    
    * chore: Bump version to 0.14.0
    fluencebot authored Feb 21, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d94bf3a View commit details
2 changes: 1 addition & 1 deletion .github/release-please/manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.13.0"
".": "0.14.0"
}
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [0.14.0](https://github.com/fluencelabs/marine-rs-sdk/compare/marine-rs-sdk-v0.13.0...marine-rs-sdk-v0.14.0) (2024-02-21)


### ⚠ BREAKING CHANGES

* rename lambda to lens ([#159](https://github.com/fluencelabs/marine-rs-sdk/issues/159))

### Features

* rename lambda to lens ([#159](https://github.com/fluencelabs/marine-rs-sdk/issues/159)) ([9bb739a](https://github.com/fluencelabs/marine-rs-sdk/commit/9bb739a6e733cbaef2ab850dfd6d890b478342b5))

## [0.13.0](https://github.com/fluencelabs/marine-rs-sdk/compare/marine-rs-sdk-v0.12.0...marine-rs-sdk-v0.13.0) (2024-02-20)


14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "marine-rs-sdk"
version = "0.13.0"
version = "0.14.0"
description = "Fluence backend SDK for developing backend applications for the Fluence network"
documentation = "https://docs.rs/fluence"
repository = "https://github.com/fluencelabs/marine-rs-sdk"
@@ -18,10 +18,10 @@ path = "src/lib.rs"
doctest = false

[dependencies]
marine-call-parameters = { path = "crates/call-parameters", version = "=0.13.0" }
marine-macro = { path = "crates/marine-macro", version = "=0.13.0" }
marine-rs-sdk-main = { path = "crates/main", version = "=0.13.0" } # warning: silent compilation break on minor verison bump. See docs/update-guide.md for details
marine-timestamp-macro = { path = "crates/timestamp-macro", version = "=0.13.0" }
marine-call-parameters = { path = "crates/call-parameters", version = "=0.14.0" }
marine-macro = { path = "crates/marine-macro", version = "=0.14.0" }
marine-rs-sdk-main = { path = "crates/main", version = "=0.14.0" } # warning: silent compilation break on minor verison bump. See docs/update-guide.md for details
marine-timestamp-macro = { path = "crates/timestamp-macro", version = "=0.14.0" }

serde = { version = "1.0.189", features = ["derive"]}

6 changes: 3 additions & 3 deletions crates/call-parameters/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "marine-call-parameters"
version = "0.13.0"
version = "0.14.0"
edition = "2021"
description = "Contains CallParameters and SecurityTetralets structures for marine-rs-sdk"
documentation = "https://docs.rs/fluence"
@@ -15,8 +15,8 @@ rkyv = { version = "0.7.43", features = ["validation", "strict"], optional = tru
serde = "1.0.189"

[target.'cfg(target_arch = "wasm32")'.dependencies]
marine-macro = { path = "../marine-macro", version = "=0.13.0" }
marine-rs-sdk-main = { path = "../main", version = "=0.13.0" }
marine-macro = { path = "../marine-macro", version = "=0.14.0" }
marine-rs-sdk-main = { path = "../main", version = "=0.14.0" }

[features]
default = ["marine-abi"]
22 changes: 11 additions & 11 deletions crates/call-parameters/src/lib.rs
Original file line number Diff line number Diff line change
@@ -38,22 +38,22 @@ pub struct SecurityTetraplet {
/// Name of a function that returned corresponding value.
pub function_name: String,

/// Value was produced by applying this `lambda` to the output from `call_service`.
pub lambda: String,
/// Value was produced by applying this `lens` to the output from `call_service`.
pub lens: String,
}

impl SecurityTetraplet {
pub fn new(
peer_pk: impl Into<String>,
service_id: impl Into<String>,
function_name: impl Into<String>,
lambda: impl Into<String>,
lens: impl Into<String>,
) -> Self {
Self {
peer_pk: peer_pk.into(),
service_id: service_id.into(),
function_name: function_name.into(),
lambda: lambda.into(),
lens: lens.into(),
}
}

@@ -65,13 +65,13 @@ impl SecurityTetraplet {
peer_pk: init_peer_id.into(),
service_id: String::new(),
function_name: String::new(),
// lambda can't be applied to the string literals
lambda: String::new(),
// lens can't be applied to the string literals
lens: String::new(),
}
}

pub fn add_lambda(&mut self, lambda: &str) {
self.lambda.push_str(lambda)
pub fn add_lens(&mut self, lens: &str) {
self.lens.push_str(lens)
}
}

@@ -138,8 +138,8 @@ impl fmt::Display for SecurityTetraplet {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"peer_pk: {}, service_id: {}, function_name: {}, lambda: {}",
self.peer_pk, self.service_id, self.function_name, self.lambda
"peer_pk: {}, service_id: {}, function_name: {}, lens: {}",
self.peer_pk, self.service_id, self.function_name, self.lens
)
}
}
@@ -162,7 +162,7 @@ pub fn get_call_parameters() -> CallParameters {
}

#[cfg(all(feature = "marine-abi", target_arch = "wasm32"))]
#[link(wasm_import_module = "__marine_host_api_v2")]
#[link(wasm_import_module = "__marine_host_api_v3")]
#[allow(improper_ctypes)]
extern "C" {
// returns serialized current call parameters
2 changes: 1 addition & 1 deletion crates/macro-testing-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "marine-macro-testing-utils"
version = "0.13.0"
version = "0.14.0"
edition = "2018"
description = "Some functions for testing procedural macros"
documentation = "https://docs.rs/fluence/marine-macro-testing-utils"
2 changes: 1 addition & 1 deletion crates/main/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "marine-rs-sdk-main"
version = "0.13.0"
version = "0.14.0"
edition = "2018"
description = "Contains logger, allocators and several other modules for marine-rs-sdk"
documentation = "https://docs.rs/marine-rs-sdk-main"
2 changes: 1 addition & 1 deletion crates/main/src/lib.rs
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
#![allow(clippy::missing_safety_doc)]
#![allow(clippy::needless_doctest_main)]
#![doc(html_root_url = "https://docs.rs/marine-rs-sdk-main/0.13.0")] // x-release-please-version
#![doc(html_root_url = "https://docs.rs/marine-rs-sdk-main/0.14.0")] // x-release-please-version
#![deny(
dead_code,
nonstandard_style,
2 changes: 1 addition & 1 deletion crates/main/src/logger.rs
Original file line number Diff line number Diff line change
@@ -242,7 +242,7 @@ pub fn log_utf8_string(level: i32, target: i32, msg_ptr: i32, msg_size: i32) {
/// TODO: mark `log_utf8_string_impl` as #[wasm_bindgen], so it is polyfilled by bindgen
/// log_utf8_string should be provided directly by a host.
#[cfg(all(feature = "marine-abi", target_arch = "wasm32"))]
#[link(wasm_import_module = "__marine_host_api_v2")]
#[link(wasm_import_module = "__marine_host_api_v3")]
extern "C" {
// Writes a byte string of size bytes that starts from ptr to a logger
#[link_name = "log_utf8_string"]
2 changes: 1 addition & 1 deletion crates/marine-macro-impl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "marine-macro-impl"
version = "0.13.0"
version = "0.14.0"
edition = "2018"
description = "Implementation of the `#[marine]` macro"
documentation = "https://docs.rs/fluence/marine-macro-impl"
2 changes: 1 addition & 1 deletion crates/marine-macro-impl/src/lib.rs
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
* limitations under the License.
*/

#![doc(html_root_url = "https://docs.rs/marine-macro-impl/0.13.0")] // x-release-please-version
#![doc(html_root_url = "https://docs.rs/marine-macro-impl/0.14.0")] // x-release-please-version
#![deny(
dead_code,
nonstandard_style,
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ use syn::spanned::Spanned;
const LINK_NAME_DIRECTIVE_NAME: &str = "link_name";
const HOST_IMPORT_DIRECTIVE_NAME: &str = "host_import";
const MODULE_IMPORT_DIRECTIVE_NAME: &str = "module_import";
const HOST_IMPORT_NAMESPACE: &str = "__marine_host_api_v2";
const HOST_IMPORT_NAMESPACE: &str = "__marine_host_api_v3";

impl ParseMacroInput for syn::ItemForeignMod {
fn parse_macro_input(self) -> Result<MarineAst> {
6 changes: 3 additions & 3 deletions crates/marine-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "marine-macro"
version = "0.13.0"
version = "0.14.0"
edition = "2018"
description = "Definition of the `#[marine]` macro"
documentation = "https://docs.rs/fluence/marine-macro"
@@ -18,5 +18,5 @@ proc-macro = true
doctest = false

[dependencies]
marine-macro-impl = { path = "../marine-macro-impl", version = "=0.13.0" }
marine-rs-sdk-main = { path = "../main", version = "=0.13.0" }
marine-macro-impl = { path = "../marine-macro-impl", version = "=0.14.0" }
marine-rs-sdk-main = { path = "../main", version = "=0.14.0" }
2 changes: 1 addition & 1 deletion crates/timestamp-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "marine-timestamp-macro"
version = "0.13.0"
version = "0.14.0"
edition = "2018"
description = "Definition of the `#[build_timestamp]` macro"
documentation = "https://docs.rs/fluence/marine-timestamp-macro"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@
//! pub fn curl_get(url: String) -> String;
//! }
//! ```
#![doc(html_root_url = "https://docs.rs/sdk/0.13.0")] // x-release-please-version
#![doc(html_root_url = "https://docs.rs/sdk/0.14.0")] // x-release-please-version
#![deny(
dead_code,
nonstandard_style,