Open brickpop opened 16 hours ago
Copying the other attempts separately due to comment size limits
As a workaround, I managed to get a usable binary with docker run -it nixos/nix
and launching nix-shell -p bulloak
(cargo install bulloak@0.6.1
still failed on Mac). Still, I assume that this is not the expected way to use it.
Oooh, interesting, I got a very similar error today when installing a different crate. Let me try to reproduce.
Dang it's a serde bug. See here
Let me know if you can fix locally. I tried installing bulloak
on my machine without issues.
I must be doing something wrong, but I'm unable to install bulloak with
cargo install
. I am onrustc
1.82 and I have tried on 5 different environments:MacOS (arm)
``` $ cargo install bulloak Updating crates.io index Installing bulloak v0.8.0 Updating crates.io index Locking 358 packages to latest compatible versions Adding alloy-primitives v0.3.3 (latest: v0.8.9) [...] Adding zstd-safe v5.0.2+zstd.1.5.2 (latest: v7.2.1) Compiling proc-macro2 v1.0.88 [...] Compiling ariadne v0.2.0 error[E0424]: expected value, found module `self` --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/mod.rs:165:33 | 165 | #[serde(default, with = "serde_helpers::display_from_str_opt")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` value is a keyword only available in methods with a `self` parameter | ::: /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/macros.rs:13:47 | 13 | #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] | --------- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters error[E0425]: cannot find value `__s` in this scope --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/mod.rs:165:33 | 165 | #[serde(default, with = "serde_helpers::display_from_str_opt")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `__deserializer` in this scope --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/mod.rs:165:33 | 165 | #[serde(default, with = "serde_helpers::display_from_str_opt")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `__deserializer` in this scope --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/mod.rs:203:45 | 203 | #[serde(default, deserialize_with = "serde_helpers::default_for_null")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `__deserializer` in this scope --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/macros.rs:41:53 | 41 | #[serde(default, deserialize_with = "serde_helpers::default_for_null")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope | ::: /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/mod.rs:209:1 | 209 | / expr_node!( 210 | | /// An assignment expression. 211 | | struct Assignment { 212 | | #[serde(rename = "leftHandSide")] ... | 217 | | } 218 | | ); | |_- in this macro invocation | = note: this error originates in the macro `expr_node` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find value `__deserializer` in this scope --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/macros.rs:41:53 | 41 | #[serde(default, deserialize_with = "serde_helpers::default_for_null")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope | ::: /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/mod.rs:335:1 | 335 | / expr_node!( 336 | | /// A conditional expression. 337 | | struct Conditional { 338 | | /// The condition. ... | 344 | | } 345 | | ); | |_- in this macro invocation | = note: this error originates in the macro `expr_node` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find value `__deserializer` in this scope --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/macros.rs:41:53 | 41 | #[serde(default, deserialize_with = "serde_helpers::default_for_null")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope | ::: /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/mod.rs:347:1 | 347 | / expr_node!( 348 | | struct ElementaryTypeNameExpression { 349 | | type_name: ElementaryOrRawTypeName, 350 | | } 351 | | ); | |_- in this macro invocation | = note: this error originates in the macro `expr_node` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find value `__deserializer` in this scope --> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/macros.rs:41:53 | 41 | #[serde(default, deserialize_with = "serde_helpers::default_for_null")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope | ::: /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ethers-solc-2.0.10/src/artifacts/ast/mod.rs:375:1 | 375 | / expr_node!( 376 | | /// A function call expression. 377 | | struct FunctionCall { 378 | | arguments: VecSee the others linked right below:
Am I missing something? Thank you