bug(forge bind
): does not set serde
as dependency when using serde
derives
#10359
Labels
Cmd-forge-bind
Command: forge bind
T-bug
Type: bug
T-to-investigate
Type: to investigate
T-to-reproduce
Type: requires reproduction
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
Commit SHA: e988893
What version of Foundryup are you on?
foundryup: 1.0.1
What command(s) is the bug in?
forge bind --alloy-version 0.13.0
Operating System
Linux
Describe the bug
I wanted to have serializable rust bindings, so I ran the latest nightly version but noticed that the bindings generated wouldn't compile without manually adding serde as a dependency to the Cargo.toml file of the generated crate. The issue #10317, along with the associated PR #10332 added serializable/deserializable derive traits to all types; however, it does not add the dependency to the Cargo file if the bindings are being built with serde derives. The cargo file should have something like this added automatically:
Otherwise, you have to modify the generated crate manually after every run to get it to build.
The text was updated successfully, but these errors were encountered: