Skip to content

Commit

Permalink
Rename crates to use underscores (#895)
Browse files Browse the repository at this point in the history
* Rename identity-iota to identity_iota_client

* Rename identity-iota-core to identity_iota_core

* Rename identity-account-storage to identity_account_storage

* Rename identity-account to identity_account

* Rename identity-diff to identity_diff (directory only)

* Rename identity-comm to identity_comm

* Rename identity-did to identity_did

* Rename identity-credential to identity_credential

* Rename identity-core to identity_core

* Rename identity to identity_iota

* Update documentation

* Rename module iota to client

* Update GitHub Actions workflow

* Rename proc-typescript directory to proc_typescript

* Update dependencies, Stronghold bindings Cargo.lock

* Add `release = false` to examples package
  • Loading branch information
cycraig authored Jun 15, 2022
1 parent 5b17609 commit 67f9581
Show file tree
Hide file tree
Showing 362 changed files with 747 additions and 790 deletions.
20 changes: 10 additions & 10 deletions .github/actions/release/bump-versions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ runs:
command: install
args: -f --no-default-features --features "add set-version" --version ^0.8 cargo-edit

- name: Replace identity version in Wasm bindings
- name: Replace identity_iota version in Wasm bindings
shell: bash
if: ${{inputs.release-target == 'rust'}}
working-directory: bindings/wasm
run: |
cargo add identity@=${{ inputs.version }} --path=../../identity
- name: Replace identity version in stronghold nodejs bindings
cargo add identity_iota@=${{ inputs.version }} --path=../../identity_iota
- name: Replace identity versions in stronghold nodejs bindings
shell: bash
if: ${{inputs.release-target == 'rust'}}
working-directory: bindings/stronghold-nodejs
run: |
cargo add identity-core@=${{ inputs.version }} --path=../../identity-core
cargo add identity-iota-core@=${{ inputs.version }} --path=../../identity-iota-core
cargo add identity-account-storage@=${{ inputs.version }} --path=../../identity-account-storage
- name: Bump Rust crate version
cargo add identity_core@=${{ inputs.version }} --path=../../identity_core
cargo add identity_iota_core@=${{ inputs.version }} --path=../../identity_iota_core
cargo add identity_account_storage@=${{ inputs.version }} --path=../../identity_account_storage
- name: Bump Rust crate versions
shell: bash
if: ${{inputs.release-target == 'rust'}}
run: |
Expand Down Expand Up @@ -88,4 +88,4 @@ runs:
run: |
npm version ${{ inputs.version }}
# set peer dependency version
echo "`jq '.peerDependencies."@iota/identity-wasm"="${{ inputs.version }}"' package.json`" > package.json
echo "`jq '.peerDependencies."@iota/identity-wasm"="${{ inputs.version }}"' package.json`" > package.json
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[workspace]
resolver = "2"
members = [
"identity",
# "identity-comm",
"identity-account",
"identity-account-storage",
"identity-core",
"identity-credential",
"identity-did",
"identity-diff",
"identity-iota",
"identity-iota-core",
# "identity_comm",
"identity_account",
"identity_account_storage",
"identity_core",
"identity_credential",
"identity_did",
"identity_diff",
"identity_iota",
"identity_iota_client",
"identity_iota_core",

"examples",
]
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The individual libraries are developed to be agnostic about the utilized [Distri
If you want to include IOTA Identity in your project, simply add it as a dependency in your `Cargo.toml`:
```toml
[dependencies]
identity = { version = "0.6" }
identity_iota = { version = "0.6" }
```

To try out the [examples](https://github.com/iotaledger/identity.rs/blob/HEAD/examples), you can also do this:
Expand All @@ -78,18 +78,18 @@ version = "1.0.0"
edition = "2021"

[dependencies]
identity = { version = "0.6" }
identity_iota = { version = "0.6" }
tokio = { version = "1", features = ["full"] }
```
*main.*<span></span>*rs*
```rust,no_run
use identity::account::Account;
use identity::account::IdentitySetup;
use identity::account::Result;
use identity::account_storage::Stronghold;
use identity::core::ToJson;
use identity::iota::ExplorerUrl;
use identity::iota::ResolvedIotaDocument;
use identity_iota::account::Account;
use identity_iota::account::IdentitySetup;
use identity_iota::account::Result;
use identity_iota::account_storage::Stronghold;
use identity_iota::core::ToJson;
use identity_iota::client::ExplorerUrl;
use identity_iota::client::ResolvedIotaDocument;
#[tokio::main]
async fn main() -> Result<()> {
Expand Down
Loading

0 comments on commit 67f9581

Please sign in to comment.