Skip to content
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

Remove iroha_crypto, iroha_config and iroha_data_model from Cargo.toml #449

Open
mversic opened this issue Dec 14, 2023 · 0 comments
Open
Labels
A-easy Relatively easy change, good first issues T-rust Rust-related documentation

Comments

@mversic
Copy link
Contributor

mversic commented Dec 14, 2023

Since we have re-exported these dependencies through iroha_client, if any of the documentation examples uses them like in the following Cargo.toml example:

[dependencies]
iroha_client = { version = "=2.0.0-pre-rc.13", path = "~/Git/iroha/client" }
iroha_data_model = { version = "=2.0.0-pre-rc.13", path = "~/Git/iroha/data_model" }
iroha_crypto = { version = "=2.0.0-pre-rc.13", path = "~/Git/iroha/crypto" }
iroha_config = { version = "=2.0.0-pre-rc.13", path = "~/Git/iroha/config" }

replace it with:

[dependencies]
iroha_client = { version = "=2.0.0-pre-rc.13", path = "~/Git/iroha/client" }

this will also require that we access these dependencies:

use iroha_config::client::Configuration;
use iroha_crypto::KeyPair;
use iroha_data_model::prelude::*;

through iroha_client like this:

use iroha_client::{
    config::Configuration,
    crypto::KeyPair,
    data_model::prelude::*,
};
@mversic mversic added the T-rust Rust-related documentation label Dec 14, 2023
@nxsaken nxsaken added A-easy Relatively easy change, good first issues and removed iroha2 labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-easy Relatively easy change, good first issues T-rust Rust-related documentation
Projects
None yet
Development

No branches or pull requests

2 participants