Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(iroh-cli)!: Use config and logging from iroh-node-utils #2953

Merged
merged 46 commits into from
Nov 20, 2024

Conversation

rklaehn
Copy link
Contributor

@rklaehn rklaehn commented Nov 19, 2024

Description

Move things like figuring out the configuration and data directory into iroh-node-utils as well, so it can be used from other binaries than iroh-cli. E.g. doctor, or a pure blobs bin, or for testing.

Breaking Changes

This affects iroh-cli, which is a bin crate. But nevertheless, here are the changes:

  • module iroh_cli::logging has moved to iroh-node-util to make it available for other people building nodes
  • iroh_config_root, iroh_data_root and iroh_cache_root in iroh-cli have been replaced with generic config_root, data_root and cache_root in iroh-node-util::config

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

dignifiedquire and others added 30 commits October 31, 2024 12:56
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	iroh-cli/Cargo.toml
#	iroh/Cargo.toml
#	iroh/src/client.rs
#	iroh/src/client/docs.rs
#	iroh/src/node/rpc.rs
#	iroh/src/rpc_protocol.rs
# Conflicts:
#	Cargo.lock
#	iroh/src/node/rpc.rs
and move the node and net proto, client and server there
fix feature flags
@rklaehn rklaehn requested a review from Arqu November 19, 2024 17:24
Copy link

github-actions bot commented Nov 19, 2024

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/2953/docs/iroh/

Last updated: 2024-11-20T11:15:10Z

Copy link

github-actions bot commented Nov 19, 2024

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: ea0f0f1

@dignifiedquire dignifiedquire added this to the v0.29.0 milestone Nov 20, 2024
Base automatically changed from extract-node-rpc to main November 20, 2024 10:55
# Conflicts:
#	Cargo.lock
#	iroh-node-util/Cargo.toml
#	iroh-node-util/README.md
#	iroh-node-util/src/lib.rs
#	iroh/Cargo.toml
@rklaehn rklaehn added this pull request to the merge queue Nov 20, 2024
Merged via the queue into main with commit 3ff914d Nov 20, 2024
26 of 27 checks passed
@rklaehn rklaehn deleted the move-dirs-next-stuff branch November 20, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants