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

deps: use polkadot-sdk umbrella crate #1786

Merged
merged 20 commits into from
Oct 11, 2024
Merged

Conversation

niklasad1
Copy link
Member

No description provided.

@niklasad1 niklasad1 requested a review from a team as a code owner September 26, 2024 15:53
]
substrate-compat = ["sp-core", "sp-runtime"]
substrate-compat = ["polkadot-sdk/sp-core", "polkadot-sdk/sp-runtime", "polkadot-sdk/std"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

So sp-core wasn't std before and sp-runtime was I think.. I guess std is needed here for it to work?

Copy link
Member Author

@niklasad1 niklasad1 Sep 30, 2024

Choose a reason for hiding this comment

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

sp-runtime was already std, https://github.com/paritytech/subxt/blob/master/Cargo.toml#L143

That's why it's required to be std but yeah it could brings in more dependencies because sp-core/std wasn't enabled before...

Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder how many more deps it ends up bringing in; maybe worth checking?

Copy link
Member Author

Choose a reason for hiding this comment

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

It should only affect --feature --substrate-compat and not the std or no-std which I'm okay with...

Sure, lemme check

Copy link
Member Author

@niklasad1 niklasad1 Sep 30, 2024

Choose a reason for hiding this comment

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

cargo check -p subxt-core --features substrate-compat

this branch brings 351 deps vs 350 on master, I think it's fine :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah that's all good then!

Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

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

The only thing that's a little scary is that if we need to have std enabled for some but not all of the sp crates somewhere then I guess we'll run into issues having this umbrella crate, but on the other hand it makes it much easier to keep these versions in sync and uptodate so I think it's a net win!

@niklasad1
Copy link
Member Author

The only thing that's a little scary is that if we need to have std enabled for some but not all of the sp crates somewhere then

Yupp, good point I didn't think about it before :)

metadata/Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
@niklasad1 niklasad1 changed the title deps: unify usage of polkadot-sdk crates deps: unify usage of polkadot-sdk crates and bump polkadot-sdk to the latest Oct 10, 2024
@niklasad1 niklasad1 merged commit 0e86993 into master Oct 11, 2024
13 checks passed
@niklasad1 niklasad1 deleted the na-unify-polkadot-sdk-deps branch October 11, 2024 12:19
@niklasad1 niklasad1 changed the title deps: unify usage of polkadot-sdk crates and bump polkadot-sdk to the latest deps: use polkadot-sdk umbrella crate Oct 11, 2024
@jsdw jsdw mentioned this pull request Oct 24, 2024
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.

3 participants