diff --git a/crates/iota-graphql-client-build/schema.graphql b/crates/iota-graphql-client-build/schema.graphql index a04b485ba..732f6dd0a 100644 --- a/crates/iota-graphql-client-build/schema.graphql +++ b/crates/iota-graphql-client-build/schema.graphql @@ -2107,7 +2107,7 @@ type MoveModuleEdge { """ The representation of an object as a Move Object, which exposes additional -information (content, module that governs it, version, is transferrable, +information (content, module that governs it, version, is transferable, etc.) about this object. """ type MoveObject implements IMoveObject & IObject & IOwner { diff --git a/crates/iota-sdk/Cargo.toml b/crates/iota-sdk/Cargo.toml new file mode 100644 index 000000000..ab1a19ccf --- /dev/null +++ b/crates/iota-sdk/Cargo.toml @@ -0,0 +1,58 @@ +[package] +name = "iota-sdk" +version = "3.0.0" +authors = ["IOTA Foundation "] +edition = "2021" +license = "Apache-2.0" +description = "The official SDK for IOTA" + +[features] +default = [ + "crypto", + "ed25519", + "secp256r1", + "passkey", + "secp256k1", + "zklogin", + "pem", + "bls12381", + "graphql", + "txn-builder", + "types", + "serde", + "rand", + "hash", + "proptest", + "schemars", +] + +# Crypto +crypto = ["dep:iota-crypto"] +ed25519 = ["crypto", "iota-crypto/ed25519"] +secp256r1 = ["crypto", "iota-crypto/secp256r1"] +passkey = ["crypto", "iota-crypto/passkey"] +secp256k1 = ["crypto", "iota-crypto/secp256k1"] +zklogin = ["crypto", "iota-crypto/zklogin"] +pem = ["crypto", "iota-crypto/pem"] +bls12381 = ["crypto", "iota-crypto/bls12381"] + +# GraphQL +graphql = ["dep:iota-graphql-client"] + +# Transaction Builder +txn-builder = ["dep:iota-transaction-builder"] + +# Types +types = ["dep:iota-sdk-types"] +serde = ["types", "iota-sdk-types/serde"] +rand = ["types", "iota-sdk-types/rand"] +hash = ["types", "iota-sdk-types/hash"] +proptest = ["types", "iota-sdk-types/proptest"] + +schemars = ["iota-sdk-types?/schemars", "iota-transaction-builder?/schemars"] + +[dependencies] +iota-crypto = { path = "../iota-crypto", features = ["ed25519"], optional = true } +iota-graphql-client = { path = "../iota-graphql-client", optional = true } +iota-sdk-types = { path = "../iota-sdk-types", features = ["rand"], optional = true } +iota-transaction-builder = { path = "../iota-transaction-builder", optional = true } diff --git a/crates/iota-sdk/src/lib.rs b/crates/iota-sdk/src/lib.rs new file mode 100644 index 000000000..babbd4cb2 --- /dev/null +++ b/crates/iota-sdk/src/lib.rs @@ -0,0 +1,13 @@ +// Copyright (c) 2025 IOTA Stiftung +// SPDX-License-Identifier: Apache-2.0 + +//! The IOTA Rust SDK + +#[cfg(feature = "crypto")] +pub use iota_crypto as crypto; +#[cfg(feature = "graphql")] +pub use iota_graphql_client as graphql_client; +#[cfg(feature = "types")] +pub use iota_sdk_types as types; +#[cfg(feature = "txn-builder")] +pub use iota_transaction_builder as transaction_builder;