Skip to content

Integrate product core into identity.rs #1658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

chrisgitiota
Copy link
Contributor

Description of change

This PR is the counterpart to the product_core PR
product_core to be used with identity.rs.
Please see there for more details.

This PR is in draft mode and shall facilitate discussing the code changes in identity.rs

Links to any relevant issues

Fixes issue #1636.

Type of change

Add an x to the boxes that are relevant to your changes.

  • Bug fix (a non-breaking change which fixes an issue)
  • Enhancement (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Fix
  • [ x] Architecture-change

How the change has been tested

Local build with identity_iota_core e2e tests

@chrisgitiota chrisgitiota added Wasm Related to Wasm bindings. Becomes part of the Wasm changelog Chore Tedious, typically non-functional change No changelog Excludes PR from becoming part of any changelog Rust Related to the core Rust code. Becomes part of the Rust changelog. labels Apr 29, 2025
@chrisgitiota chrisgitiota self-assigned this Apr 29, 2025
@chrisgitiota chrisgitiota requested a review from a team as a code owner April 29, 2025 07:48
identity_iota_interaction = { version = "=1.6.0-alpha", path = "../identity_iota_interaction", default-features = false }
identity_iota_move_calls = { version = "=1.6.0-alpha", path = "../identity_iota_move_calls", default-features = false }
iota_interaction = { git = "https://github.com/iotaledger/product-core.git", branch = "feat/transaction-client-core-for-identity", package = "iota_interaction", default-features = false }
#iota_interaction = { path = "../../product-core/iota_interaction", default-features = false }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed? ^^

Suggested change
#iota_interaction = { path = "../../product-core/iota_interaction", default-features = false }

@@ -17,7 +17,7 @@
clippy::missing_errors_doc
)]

pub use identity_iota_interaction as iota_interaction;
pub use iota_interaction as iota_interaction;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe?

Suggested change
pub use iota_interaction as iota_interaction;
pub use iota_interaction;

iota_interaction = { git = "https://github.com/iotaledger/product-core.git", branch = "feat/transaction-client-core-for-identity", package = "iota_interaction", optional = true }
#iota_interaction = { path = "../../product-core/iota_interaction", optional = true }
iota_interaction_rust = { git = "https://github.com/iotaledger/product-core.git", branch = "feat/transaction-client-core-for-identity", package = "iota_interaction_rust", optional = true }
#iota_interaction_rust = { path = "../../product-core/iota_interaction_rust", optional = true }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed? ^^

Suggested change
#iota_interaction_rust = { path = "../../product-core/iota_interaction_rust", optional = true }

identity_iota_interaction = { version = "=1.6.0-alpha", path = "../identity_iota_interaction", default-features = false, optional = true }
tokio = { version = "1.43", default-features = false, features = ["sync"] }
iota_interaction = { git = "https://github.com/iotaledger/product-core.git", branch = "feat/transaction-client-core-for-identity", package = "iota_interaction", default-features = false, optional = true }
#iota_interaction = { path = "../../product-core/iota_interaction", default-features = false, optional = true }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed? ^^

Suggested change
#iota_interaction = { path = "../../product-core/iota_interaction", default-features = false, optional = true }

@@ -7,14 +7,14 @@ use std::ops::Deref;
use std::pin::Pin;
use std::str::FromStr;

use crate::rebased::iota;
use crate::rebased::{iota, rebased_err};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like this?

Suggested change
use crate::rebased::{iota, rebased_err};
use crate::rebased::iota;
#[cfg(not(target_arch = "wasm32"))]
use crate::rebased::rebased_err;

iota_interaction.workspace = true
[target.'cfg(target_arch = "wasm32")'.dependencies]
iota_interaction = { git = "https://github.com/iotaledger/product-core.git", branch = "feat/transaction-client-core-for-identity", package = "iota_interaction", default-features = false }
#iota_interaction = { path = "../../product-core/iota_interaction", default-features = false }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed? ^^

Suggested change
#iota_interaction = { path = "../../product-core/iota_interaction", default-features = false }

@@ -37,10 +37,12 @@ tokio = { version = "1.43", default-features = false, features = ["macros", "syn
zkryptium = { workspace = true, optional = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
identity_iota_interaction = { version = "=1.6.0-alpha", path = "../identity_iota_interaction", optional = true }
iota_interaction = { git = "https://github.com/iotaledger/product-core.git", branch = "feat/transaction-client-core-for-identity", package = "iota_interaction", optional = true }
#iota_interaction = { path = "../../product-core/iota_interaction", optional = true }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed? ^^

Suggested change
#iota_interaction = { path = "../../product-core/iota_interaction", optional = true }


[target.'cfg(target_arch = "wasm32")'.dependencies]
identity_iota_interaction = { version = "=1.6.0-alpha", path = "../identity_iota_interaction", default-features = false, optional = true }
iota_interaction = { git = "https://github.com/iotaledger/product-core.git", branch = "feat/transaction-client-core-for-identity", package = "iota_interaction", default-features = false, optional = true }
#iota_interaction = { path = "../../product-core/iota_interaction", default-features = false, optional = true }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed? ^^

Suggested change
#iota_interaction = { path = "../../product-core/iota_interaction", default-features = false, optional = true }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chore Tedious, typically non-functional change No changelog Excludes PR from becoming part of any changelog Rust Related to the core Rust code. Becomes part of the Rust changelog. Wasm Related to Wasm bindings. Becomes part of the Wasm changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants