Skip to content

Commit

Permalink
fix: add missing dependencies for some feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Jan 25, 2024
1 parent 24a09d0 commit 32cb4c9
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [ibc] Add missing dependencies for some feature flags across multiple crates
([\#1059](https://github.com/cosmos/ibc-rs/issues/1059))
1 change: 1 addition & 0 deletions ibc-apps/ics721-nft-transfer/types/src/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use derive_more::From;
use http::Uri;
use ibc_core::host::types::identifiers::{ChannelId, PortId};
use ibc_core::primitives::prelude::*;
#[cfg(feature = "serde")]
use ibc_core::primitives::serializers;
use ibc_proto::ibc::applications::nft_transfer::v1::ClassTrace as RawClassTrace;

Expand Down
4 changes: 3 additions & 1 deletion ibc-apps/ics721-nft-transfer/types/src/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ use core::convert::TryFrom;
use base64::prelude::BASE64_STANDARD;
use base64::Engine;
use ibc_core::primitives::prelude::*;
use ibc_core::primitives::{serializers, Signer};
#[cfg(feature = "serde")]
use ibc_core::primitives::serializers;
use ibc_core::primitives::Signer;
use ibc_proto::ibc::applications::nft_transfer::v1::NonFungibleTokenPacketData as RawPacketData;

use crate::class::{ClassData, ClassUri, PrefixedClassId};
Expand Down
1 change: 1 addition & 0 deletions ibc-apps/ics721-nft-transfer/types/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use core::str::FromStr;

use http::Uri;
use ibc_core::primitives::prelude::*;
#[cfg(feature = "serde")]
use ibc_core::primitives::serializers;

use crate::data::Data;
Expand Down
1 change: 1 addition & 0 deletions ibc-clients/ics08-wasm/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ default = ["std"]
std = [
"ibc-core-client/std",
"ibc-core-host-types/std",
"ibc-primitives/std",
"ibc-proto/std",
"base64/std",
"serde/std"
Expand Down
5 changes: 5 additions & 0 deletions ibc-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ std = [
"ibc-core-host/std",
"ibc-core-router/std",
"ibc-core-handler/std",
"ibc-primitives/std",
]
serde = [
"ibc-core-client/serde",
Expand All @@ -46,6 +47,7 @@ serde = [
"ibc-core-host/serde",
"ibc-core-router/serde",
"ibc-core-handler/serde",
"ibc-primitives/serde",
]
borsh = [
"ibc-core-client/borsh",
Expand All @@ -55,6 +57,7 @@ borsh = [
"ibc-core-host/borsh",
"ibc-core-router/borsh",
"ibc-core-handler/borsh",
"ibc-primitives/borsh",
]
schema = [
"ibc-core-client/schema",
Expand All @@ -64,13 +67,15 @@ schema = [
"ibc-core-host/schema",
"ibc-core-router/schema",
"ibc-core-handler/schema",
"ibc-primitives/schema",
"serde",
"std"
]
parity-scale-codec = [
"ibc-core-client/parity-scale-codec",
"ibc-core-connection/parity-scale-codec",
"ibc-core-channel/parity-scale-codec",
"ibc-core-commitment-types/parity-scale-codec",
"ibc-core-host/parity-scale-codec",
"ibc-core-router/parity-scale-codec",
"ibc-core-handler/parity-scale-codec",
Expand Down
1 change: 1 addition & 0 deletions ibc-core/ics02-client/context/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ schema = [
"ibc-core-client-types/schema",
"ibc-core-host-types/schema",
"ibc-core-handler-types/schema",
"ibc-primitives/schema",
"serde",
"std"
]
Expand Down
3 changes: 2 additions & 1 deletion ibc-core/ics02-client/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ schema = [
parity-scale-codec = [
"dep:parity-scale-codec",
"dep:scale-info",
"ibc-core-commitment-types/parity-scale-codec",
"ibc-core-host-types/parity-scale-codec",
"ibc-core-commitment-types/parity-scale-codec",
"ibc-primitives/parity-scale-codec",
"ibc-proto/parity-scale-codec",
]
1 change: 1 addition & 0 deletions ibc-core/ics03-connection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ schema = [
"ibc-core-client/schema",
"ibc-core-connection-types/schema",
"ibc-core-host/schema",
"ibc-core-handler-types/schema",
"ibc-primitives/schema",
"serde",
"std"
Expand Down
2 changes: 2 additions & 0 deletions ibc-core/ics24-host/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ serde = [
]
schema = [
"ibc-core-client-types/schema",
"ibc-core-client-context/schema",
"ibc-core-connection-types/schema",
"ibc-core-channel-types/schema",
"ibc-core-commitment-types/schema",
Expand All @@ -73,6 +74,7 @@ schema = [
]
borsh = [
"ibc-core-client-types/borsh",
"ibc-core-client-context/borsh",
"ibc-core-connection-types/borsh",
"ibc-core-channel-types/borsh",
"ibc-core-commitment-types/borsh",
Expand Down
1 change: 1 addition & 0 deletions ibc-core/ics24-host/cosmos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ borsh = [
"dep:borsh",
"ibc-client-tendermint/borsh",
"ibc-core-client-types/borsh",
"ibc-core-client-context/borsh",
"ibc-core-connection-types/borsh",
"ibc-core-commitment-types/borsh",
"ibc-core-host-types/borsh",
Expand Down
4 changes: 4 additions & 0 deletions ibc-core/ics25-handler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ std = [
"ibc-core-host/std",
"ibc-core-router/std",
"ibc-core-handler-types/std",
"ibc-primitives/std",
]
serde = [
"ibc-core-client/serde",
Expand All @@ -46,6 +47,7 @@ serde = [
"ibc-core-host/serde",
"ibc-core-router/serde",
"ibc-core-handler-types/serde",
"ibc-primitives/serde",
]
borsh = [
"ibc-core-client/borsh",
Expand All @@ -55,6 +57,7 @@ borsh = [
"ibc-core-host/borsh",
"ibc-core-router/borsh",
"ibc-core-handler-types/borsh",
"ibc-primitives/borsh",
]
schema = [
"ibc-core-client/schema",
Expand All @@ -64,6 +67,7 @@ schema = [
"ibc-core-host/schema",
"ibc-core-router/schema",
"ibc-core-handler-types/schema",
"ibc-primitives/schema",
"serde",
"std"
]
Expand Down
3 changes: 3 additions & 0 deletions ibc-data-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ borsh = [
"ibc-core-client-types/borsh",
"ibc-core-connection-types/borsh",
"ibc-core-channel-types/borsh",
"ibc-core-commitment-types/borsh",
"ibc-core-host-types/borsh",
"ibc-core-router-types/borsh",
"ibc-core-handler-types/borsh",
Expand All @@ -73,6 +74,7 @@ schema = [
"ibc-core-client-types/schema",
"ibc-core-connection-types/schema",
"ibc-core-channel-types/schema",
"ibc-core-commitment-types/schema",
"ibc-core-host-types/schema",
"ibc-core-router-types/schema",
"ibc-core-handler-types/schema",
Expand All @@ -85,6 +87,7 @@ parity-scale-codec = [
"ibc-core-client-types/parity-scale-codec",
"ibc-core-connection-types/parity-scale-codec",
"ibc-core-channel-types/parity-scale-codec",
"ibc-core-commitment-types/parity-scale-codec",
"ibc-core-host-types/parity-scale-codec",
"ibc-core-router-types/parity-scale-codec",
"ibc-core-handler-types/parity-scale-codec",
Expand Down

0 comments on commit 32cb4c9

Please sign in to comment.