Skip to content

Commit

Permalink
revert(thegraph-core): gate the attestation module behind a crate fea…
Browse files Browse the repository at this point in the history
…ture (#392)

This reverts commit 3fa5b3e.

Signed-off-by: Lorenzo Delgado <[email protected]>
  • Loading branch information
LNSD authored Nov 27, 2024
1 parent 3fa5b3e commit f8b62f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions thegraph-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@ edition = "2021"
rust-version = "1.79.0"

[features]
default = ["attestation"]
attestation = ["alloy-eip712", "alloy-signers", "alloy-sol-types"]
default = []
alloy-contract = ["alloy/contract"]
alloy-eip712 = ["alloy/eip712"]
alloy-full = ["alloy/full"]
alloy-rlp = ["alloy/rlp"]
alloy-signer-local = ["alloy/signer-local"]
alloy-signers = ["alloy/signers"]
alloy-sol-types = ["alloy/sol-types"]
async-graphql-support = ["dep:async-graphql"]
serde = ["dep:serde", "dep:serde_with", "alloy/serde"]
subgraph-client = [
Expand All @@ -32,7 +28,7 @@ subgraph-client = [
]

[dependencies]
alloy = "0.6"
alloy = { version = "0.6", features = ["eip712", "signers", "sol-types"] }
async-graphql = { version = "7.0", optional = true }
bs58 = "0.5"
indoc = { version = "2.0.5", optional = true }
Expand Down
6 changes: 1 addition & 5 deletions thegraph-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
// Re-export `alloy` crate
pub use alloy;

#[cfg(feature = "attestation")]
#[cfg_attr(feature = "attestation", doc(hidden))]
pub use self::attestation::Attestation;
#[doc(inline)]
pub use self::{
allocation_id::AllocationId,
attestation::Attestation,
block::BlockPointer,
deployment_id::{DeploymentId, ParseDeploymentIdError},
indexer_id::IndexerId,
Expand All @@ -28,8 +26,6 @@ pub use self::{
};

mod allocation_id;
#[cfg(feature = "attestation")]
#[cfg_attr(docsrs, doc(cfg(feature = "attestation")))]
pub mod attestation;
mod block;
#[deprecated(
Expand Down

0 comments on commit f8b62f2

Please sign in to comment.