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

add scale_info feauture #175

Merged
merged 5 commits into from
Dec 26, 2021
Merged

add scale_info feauture #175

merged 5 commits into from
Dec 26, 2021

Conversation

mn13
Copy link
Contributor

@mn13 mn13 commented Oct 18, 2021

Description

This pr adds new feature scale_info that adds scale_info::TypeInfo derive for all structs

Justification

Substrate's new Metadata introduces new restriction for runtime types: all encoded with SCALE codec types needs to be annotated with with scale_info::TypeInfo derive.
substrate-fixed trait depends on typenum and wildly used for building Substrate's runtimes so pr is usefull for all Substrate devs

Maks Nabokov added 4 commits October 18, 2021 15:04
- UInt
- B0
- B1
- Greater
- Less
- Equal
- PInt
- NInt
- ATerm
- TArr
@mn13
Copy link
Contributor Author

mn13 commented Oct 27, 2021

@paholg can you force running CI test please?

Copy link
Owner

@paholg paholg left a comment

Choose a reason for hiding this comment

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

Please update CHANGELOG.md as well.

Cargo.toml Outdated
@@ -1,7 +1,7 @@
[package]
name = "typenum"
build = "build/main.rs"
version = "1.14.0" # remember to update html_root_url
version = "1.14.1" # remember to update html_root_url
Copy link
Owner

Choose a reason for hiding this comment

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

As this is a feature addition, it should bump to 1.15. Also note the comment here; the version needs to be bumped in lib.rs as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@paholg can you force running CI test please? (again)

@@ -17,6 +17,9 @@
categories = ["no-std"]
edition = "2018"

[dependencies]
scale-info = { version = "1.0", default-features = false, optional=true }
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
scale-info = { version = "1.0", default-features = false, optional=true }
scale-info = { version = "1.0", default-features = false, optional = true }

@@ -7,6 +7,10 @@ against this Rust version.

### Unreleased

### 1.15.0 (2021-12-06)
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
### 1.15.0 (2021-12-06)
### 1.15.0 (2021-12-25)

@@ -7,6 +7,10 @@ against this Rust version.

### Unreleased

### 1.15.0 (2021-12-06)
- [added] New feauture `scale_info` for using inside [Substrate](https://github.com/paritytech/substrate.git)-based runtimes
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
- [added] New feauture `scale_info` for using inside [Substrate](https://github.com/paritytech/substrate.git)-based runtimes
- [added] New feature `scale_info` for using inside [Substrate](https://github.com/paritytech/substrate.git)-based runtimes

@paholg paholg merged commit 1ff35d4 into paholg:main Dec 26, 2021
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