Skip to content

Commit

Permalink
feature libp2p->p2p rename
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0rek committed Sep 7, 2023
1 parent 0b06610 commit 1543378
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ rand = "0.8.5"
tokio = { version = "1.32.0", features = ["rt", "macros"] }

[features]
default = ["libp2p"]
libp2p = ["celestia-types/libp2p"]
default = ["p2p"]
p2p = ["celestia-types/p2p"]
6 changes: 3 additions & 3 deletions rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ mod blob;
pub mod client;
mod error;
mod header;
#[cfg(feature = "libp2p")]
#[cfg(feature = "p2p")]
pub mod p2p;
mod share;
mod state;

pub use crate::blob::BlobClient;
pub use crate::error::{Error, Result};
pub use crate::header::HeaderClient;
#[cfg(feature = "libp2p")]
#[cfg(feature = "p2p")]
pub use crate::p2p::P2PClient;
pub use crate::share::ShareClient;
pub use crate::state::StateClient;

pub mod prelude {
pub use crate::BlobClient;
pub use crate::HeaderClient;
#[cfg(feature = "libp2p")]
#[cfg(feature = "p2p")]
pub use crate::P2PClient;
pub use crate::ShareClient;
pub use crate::StateClient;
Expand Down
2 changes: 1 addition & 1 deletion rpc/tests/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use celestia_types::nmt::{Namespace, NS_ID_V0_SIZE};
use rand::{Rng, RngCore};

pub mod client;
#[cfg(feature = "libp2p")]
#[cfg(feature = "p2p")]
pub mod tiny_node;

fn ns_to_u128(ns: Namespace) -> u128 {
Expand Down
4 changes: 2 additions & 2 deletions types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ thiserror = "1.0.40"
serde_json = "1.0.97"

[features]
default = ["libp2p"]
libp2p = ["dep:libp2p-identity", "dep:multiaddr", "dep:serde_repr"]
default = ["p2p"]
p2p = ["dep:libp2p-identity", "dep:multiaddr", "dep:serde_repr"]
2 changes: 1 addition & 1 deletion types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mod error;
mod extended_header;
pub mod fraud_proof;
pub mod nmt;
#[cfg(feature = "libp2p")]
#[cfg(feature = "p2p")]
pub mod p2p;
mod rsmt2d;
mod share;
Expand Down

0 comments on commit 1543378

Please sign in to comment.