-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(jsonrpc-primitives): move adversarial to own specialized cra…
…te (#4912) #4651 successfully removed `near-jsonrpc-primitives`-s heavy dependency on `near-network` which in turn depended on `rocksdb`. #4112 reintroduced that dependency on `near-network`, though optionally, this hinders the publishing process. This PR extracts the adversarial features that depend on `near-network` into a private, specialized crate: `near-jsonrpc-adversarial-primitives` and sets us right on track for publishing `jsonrpc-primitives`.
- Loading branch information
Showing
8 changed files
with
55 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,23 @@ | ||
[package] | ||
name = "near-jsonrpc-adversarial-primitives" | ||
version = "0.2.0" | ||
authors = ["Near Inc <hello@nearprotocol.com>"] | ||
publish = false | ||
edition = "2018" | ||
|
||
[dependencies] | ||
serde = { version = "1", features = ["derive"], optional = true } | ||
serde_json = { version = "1", optional = true } | ||
near-primitives = { path = "../../core/primitives" } | ||
|
||
near-jsonrpc-primitives = { path = "../jsonrpc-primitives", optional = true } | ||
near-network = { path = "../network" } | ||
|
||
|
||
[features] | ||
ser_de = [ | ||
"serde_json", | ||
"serde", | ||
"near-jsonrpc-primitives", | ||
"near-network/adversarial" | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#[cfg(feature = "adversarial")] | ||
pub mod adversarial; | ||
pub mod blocks; | ||
pub mod changes; | ||
pub mod chunks; | ||
|
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