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

Parity as a library #8337

Closed
wants to merge 12 commits into from
Closed

Parity as a library #8337

wants to merge 12 commits into from

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Apr 9, 2018

cc #4842

This extracts most of the content of the parity crate into a new crate named parity-lib.
The parity crate mostly contains the main function, plus everything that is related to restarting the binary and applying updates.

The API of parity-lib consists in a single start function that accepts a list of CLI arguments as strings.
While accepting arguments as strings is not a great thing to do, it is the most straight-forward solution for now and can always be improved in the future.

Also for now start just blocks until we Ctrl+C or an update is ready or an RPC request to change the chain happens. This is obviously not great either and will be changed in the future. However I don't want to introduce too many changes at once because of conflicts with other PRs (eg. #8262) and the hell of solving conflicts.

I recommend reviewing commits one by one for an easier review. The first commit simply moves files, and the other ones apply some changes.

@tomaka tomaka added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Apr 9, 2018
@5chdn 5chdn added this to the 1.11 milestone Apr 10, 2018
@tomaka
Copy link
Contributor Author

tomaka commented Apr 11, 2018

Going to restart from scratch, I'm in a clusterfuck of merge conflicts.

@tomaka tomaka closed this Apr 11, 2018
@tomaka tomaka deleted the parity-lib branch April 11, 2018 11:59
@5chdn 5chdn added A8-looksgood 🦄 Pull request is reviewed well. A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. and removed A0-pleasereview 🤓 Pull request needs code review. A8-looksgood 🦄 Pull request is reviewed well. labels May 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants