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

Split sui-config crate #11968

Merged
merged 1 commit into from
May 15, 2023
Merged

Split sui-config crate #11968

merged 1 commit into from
May 15, 2023

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented May 12, 2023

sui-config crate started as a crate for the NodeConfig.
However it has grown too much and no longer at the bottom of the dependency chain.
This PR splits some modules out of it:

  1. Split out sui-genesis-builder. This contains all the code to build a genesis, which depends on the execution component. After this PR, sui-config no longer depends on the execution component, which means we can now pass NodeConfig around even into the execution component, which we have wanted to do for a while.
  2. Split out sui-swarm-config. This contains all the configs and builders to create a NetworkConfig for the swarm. It makes it clear now that this is used for swarm, not for production.
  3. Renamed swarm.rs into network_config.rs for clarity.
  4. Renamed builder.rs into network_config_builder.rs for clarity.
  5. Moved FullnodeConfigBuilder out of node.rs into network_config_builder.rs.

@vercel
Copy link

vercel bot commented May 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) May 15, 2023 5:07pm
explorer-storybook ⬜️ Ignored (Inspect) May 15, 2023 5:07pm
sui-wallet-kit ⬜️ Ignored (Inspect) May 15, 2023 5:07pm
wallet-adapter ⬜️ Ignored (Inspect) May 15, 2023 5:07pm

@lxfind lxfind force-pushed the add-genesis-builder-crate branch from ea864ed to e7ea46f Compare May 13, 2023 00:31
@lxfind lxfind changed the title Add sui-genesis-builder crate Split sui-config crate May 13, 2023
@lxfind lxfind force-pushed the add-genesis-builder-crate branch from e7ea46f to 1175dfb Compare May 13, 2023 00:41
@lxfind lxfind marked this pull request as ready for review May 13, 2023 00:41
Copy link
Member

@amnn amnn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lxfind lxfind force-pushed the add-genesis-builder-crate branch from 1175dfb to c610895 Compare May 15, 2023 16:04
@lxfind lxfind enabled auto-merge (squash) May 15, 2023 16:04
@lxfind lxfind force-pushed the add-genesis-builder-crate branch from c610895 to 3ae6d06 Compare May 15, 2023 16:05
@lxfind lxfind force-pushed the add-genesis-builder-crate branch from 3ae6d06 to c99a9cc Compare May 15, 2023 17:07
@lxfind lxfind merged commit 4728caa into main May 15, 2023
@lxfind lxfind deleted the add-genesis-builder-crate branch May 15, 2023 17:38
ronny-mysten pushed a commit that referenced this pull request May 17, 2023
sui-config crate started as a crate for the NodeConfig.
However it has grown too much and no longer at the bottom of the
dependency chain.
This PR splits some modules out of it:
1. Split out sui-genesis-builder. This contains all the code to build a
genesis, which depends on the execution component. After this PR,
sui-config no longer depends on the execution component, which means we
can now pass NodeConfig around even into the execution component, which
we have wanted to do for a while.
2. Split out sui-swarm-config. This contains all the configs and
builders to create a NetworkConfig for the swarm. It makes it clear now
that this is used for swarm, not for production.
3. Renamed swarm.rs into network_config.rs for clarity.
4. Renamed builder.rs into network_config_builder.rs for clarity.
5. Moved FullnodeConfigBuilder out of node.rs into
network_config_builder.rs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants