-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ping/rust: Refactor into multiple binaries (#72)
By having one Rust binary per version, we can vary the actual binary from version to version and f.e. fix deprecated API calls. It does introduce a bit of duplication between the different versions but I'd rather have that then not being able to adapt the tests to new APIs. Instead of activating a feature per libp2p version, we add them all as dependencies. This ensures all transitive dependencies are properly tracked in `Cargo.lock`. Additionally, this gives us a single place we are can activate all the feature. For `master` and pull-request builds, we replace the git target or rev with the one coming from the CI build. Once we trigger a build, `cargo` will update and resolve the necessary dependencies before that, thus fixing problems such as libp2p/rust-libp2p#2972.
- Loading branch information
1 parent
b97b36a
commit abce1ee
Showing
17 changed files
with
1,293 additions
and
338 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
[master] | ||
CargoFeatures = 'libp2pmaster' | ||
BinaryName = 'testplan_0500' | ||
|
||
[custom] | ||
CargoFeatures = 'libp2pmaster' | ||
BinaryName = 'testplan_0500' | ||
|
||
[[groups]] | ||
Id = '0.49.0' | ||
CargoFeatures = 'libp2pv0490' | ||
BinaryName = 'testplan_0490' | ||
|
||
[[groups]] | ||
Id = '0.48.0' | ||
CargoFeatures = 'libp2pv0480' | ||
BinaryName = 'testplan_0480' | ||
|
||
[[groups]] | ||
Id = "v0.47.0" | ||
CargoFeatures = 'libp2pv0470' | ||
BinaryName = 'testplan_0470' | ||
|
||
[[groups]] | ||
Id = "v0.46.0" | ||
CargoFeatures = 'libp2pv0460' | ||
BinaryName = 'testplan_0460' | ||
|
||
[[groups]] | ||
Id = "v0.45.1" | ||
CargoFeatures = 'libp2pv0450' | ||
BinaryName = 'testplan_0450' | ||
|
||
[[groups]] | ||
Id = "v0.44.0" | ||
CargoFeatures = 'libp2pv0440' | ||
BinaryName = 'testplan_0440' |
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,3 @@ | ||
target/ | ||
Dockerfile | ||
manifest.toml |
Oops, something went wrong.