-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[refactor]: split iroha_torii
from iroha
#4139
[refactor]: split iroha_torii
from iroha
#4139
Conversation
4b3532e
to
c09fd9a
Compare
Pull Request Test Coverage Report for Build 7190952353Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
I'm not sure we need this. I'd like to get others opinions on this. Having multiple crates might speed up compilation, but I don't see it in this case specifically |
Given the rationale, I don't see the compilation speed as a main aspect. I agree with the rationale, and I'm in favour of the change. |
1958afe
to
f726acc
Compare
iroha shouldn't be a library, that's only an artifact of our |
Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com>
Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com>
Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com>
f726acc
to
0c07859
Compare
I just got another idea why using splitting torii might be good idea. |
Well, Torii might be excluded with feature flags anyway, without necessarily being a separate crate. |
* [refactor]: split `iroha_torii` from `iroha` Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com> * [test]: fix doctest Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com> * [refactor]: rename `iroha_torii_<derive>` to `*_<macro>` Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com> --------- Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com>
* [refactor]: split `iroha_torii` from `iroha` Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com> * [test]: fix doctest Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com> * [refactor]: rename `iroha_torii_<derive>` to `*_<macro>` Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com> --------- Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com> Signed-off-by: Asem-Abdelhady <asemshawkey@gmail.com>
* [refactor]: split `iroha_torii` from `iroha` Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com> * [test]: fix doctest Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com> * [refactor]: rename `iroha_torii_<derive>` to `*_<macro>` Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com> --------- Signed-off-by: Dmitry Balashov <43530070+0x009922@users.noreply.github.com>
Description
This PR splits Torii (web server functionality), located in the main CLI, into a separate
iroha_torii
crate.The rationale is to make a step towards making the main CLI exclusively a binary. Currently
iroha
is a library as well, exposing functionality to runIroha
in tests. That includes Torii. Since Torii is quite self-contained, making it a separate crate seem to make sense.A further step would be to move
Iroha
itself andiroha::samples
out of the CLI, so thattest_network
doesn't depend oniroha
anymore, andiroha
might be exclusively a binary.Additionally:
telemetry
feature flag. Torii code didn't compile if this feature was disabled.iroha
CLILinked issue
Addresses #4136, but doesn't close it.