-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: break SolInput to its own crate (#578)
* refactor: break SolInputs to its own crate * fix: explicit quote import * nits: cargo.toml keys for new package * nit: newline * refator: push attr down * nit: remove empty file * refactor: introduce ContainsSolAttrs * docs: delete broken link * fix: migrate udt and fix docs
- Loading branch information
Showing
17 changed files
with
327 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[package] | ||
name = "alloy-sol-macro-input" | ||
description = "Input types for sol!-like macros" | ||
keywords = ["ethereum", "abi", "encoding", "evm", "solidity"] | ||
categories = ["encoding", "cryptography::cryptocurrencies"] | ||
homepage = "https://github.com/alloy-rs/core/tree/main/crates/sol-macro-input" | ||
|
||
version.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
authors.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
exclude.workspace = true | ||
|
||
[dependencies] | ||
dunce = "1.0.4" | ||
heck = "0.5.0" | ||
hex.workspace = true | ||
proc-macro2.workspace = true | ||
syn.workspace = true | ||
syn-solidity.workspace = true | ||
quote.workspace = true | ||
|
||
# json | ||
alloy-json-abi = { workspace = true, optional = true } | ||
serde_json = { workspace = true, optional = true } | ||
|
||
[features] | ||
json = ["dep:alloy-json-abi", "dep:serde_json"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use proc_macro2::TokenStream; | ||
|
||
use crate::SolInput; | ||
|
||
/// Expands a `SolInput` into a `TokenStream`. | ||
pub trait SolInputExpander { | ||
/// Expand a `SolInput` into a `TokenStream`. | ||
fn expand(&mut self, input: &SolInput) -> syn::Result<TokenStream>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.