Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Remove node/src/main.rs #3969

Merged
merged 1 commit into from
Oct 30, 2019
Merged

Remove node/src/main.rs #3969

merged 1 commit into from
Oct 30, 2019

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Oct 30, 2019

Now that default-run is stable (rust-lang/cargo#7056), I'd like to revisit #3192.
But before re-doing #3192, I'm opening this PR as a preliminary change.

This PR slightly changes the organization of the repo.
Instead of having a root package named "substrate" with a binary, the root Cargo.toml is now purely a virtual workspace. The package named "substrate" no longer exists.

Instead, the Substrate node is now a binary named "substrate" contained within the node-cli package (directory node/cli).
Thanks to the now-stable default-run feature, doing cargo run at the root automatically runs this binary.

One possible breaking change is that cargo b --package substrate will no longer work (as the "substrate" package disappeared), but I don't think anyone was doing that, and I don't see the point in doing that. The rest should stay entirely the same. Most notably, the binary is still located at ./target/debug/substrate or ./target/release/substrate.

@tomaka tomaka added the A0-please_review Pull request needs code review. label Oct 30, 2019
@tomaka tomaka requested a review from bkchr October 30, 2019 14:58
node/cli/Cargo.toml Show resolved Hide resolved
@bkchr bkchr merged commit fc56364 into paritytech:master Oct 30, 2019
@tomaka tomaka deleted the default-run branch October 30, 2019 15:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants