-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make near-primitives compile (#12608)
`cargo build -pnear-primitives` is [failing and blocks](https://github.com/near/nearcore/actions/runs/12265615118/job/34222072993) 2.4.0 crate release. `itertools` and `rand` were marked as optional in #11597. But recent changes made these libraries required, causing compilation errors. This PR: * Uses a [patch](#11981) that was included in previous release but not in master * Marks `itertools` as non-optional, as we now use it not only in tests / optional features. * Gates some test-only code that uses `rand` by `test_utils` feature. * Increase dependency limit for `near-client-primitives` to `152`. Though I am not really adding new dependencies, just making it compiles, so that I can release crates for 2.4.0. * make `single_shard()` does not use rand, as it is used in production code elsewhere.
- Loading branch information
Showing
8 changed files
with
29 additions
and
12 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
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
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
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