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

[pull] master from paritytech:master #3

Open
wants to merge 286 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
286 commits
Select commit Hold shift + click to select a range
5f7145d
Remove unrequired bounds in HasCompact (#219)
gui1117 Jan 22, 2021
33cb920
Fix some docs (#246)
bkchr Jan 25, 2021
e2365be
Implement chaining error (#242)
gui1117 Jan 25, 2021
a5c2293
add EncodedSize that calculates the encoded size more efficiently. (#…
laizy Jan 25, 2021
5593ee7
new release 2.0 (#247)
gui1117 Jan 26, 2021
d7ed503
changelog wording (#248)
gui1117 Jan 26, 2021
1beac25
Fix type inference in derive decode (#254)
gui1117 Feb 26, 2021
1a0a11d
Docs: Update README.md (#260)
Slesarew Mar 29, 2021
ab18de2
Switch array impls to const generics (#261)
austinabell Apr 6, 2021
46c1955
Adds support for custom where bounds (#263)
bkchr Apr 6, 2021
f0341da
Add latest derive crate release as dependency (#265)
bkchr Apr 12, 2021
166d748
Impl Decode/Encode for Range/RangeInclusive (#269)
c410-f3r May 26, 2021
9ab4483
Bump some dependencies (#270)
koushiro May 29, 2021
e71d9c1
improve macro hygiene (#271)
Robbepop Jun 8, 2021
3a552fb
Allow lint attributes to be passed through to the impl block (#272)
KiChjang Jun 14, 2021
4a6caeb
Bump version to 2.1.2 (#273)
KiChjang Jun 14, 2021
c5d9754
Bump version to 2.1.3 (#274)
KiChjang Jun 15, 2021
f590442
Move `MaxEncodedLen` from Substrate (#268)
coriolinus Jun 23, 2021
079a659
Mention new `#[codec(crate = ...)]` attribute for MaxEncodedLen deriv…
Xanewok Jun 23, 2021
459ebe6
Facilitate publishing by removing version in codec dev-dependency (#276)
Xanewok Jun 23, 2021
2dd6dc3
Improve `#[codec(crate = path)]` attribute: path, not string literal …
coriolinus Jun 24, 2021
ddd7960
Bump version to 2.2.0-rc.2 (#278)
Xanewok Jun 24, 2021
4510676
Support custom trait bounds on MaxEncodedLen derive macro (#279)
KiChjang Jun 25, 2021
d889b62
Bump version to 2.2.0 and hide `MaxEncodedLen` behind an additional c…
Xanewok Jul 2, 2021
6213b06
Fix CI failures on master (#288)
KiChjang Sep 9, 2021
205bb1a
Add associated method to DecodeLimit for advancing input index (#286)
KiChjang Sep 11, 2021
4fa5ddf
Minor codegen hygiene improvements and modernizations (#291)
Robbepop Sep 13, 2021
7a845c2
Add test to assert macro hygiene for Encode and Decode derives (#293)
Robbepop Sep 28, 2021
a27e494
Prepare for release 2.3.1 (#294)
Robbepop Sep 28, 2021
ca03f7f
Update codec compact docs links to docs.substrate.io (#296)
ascjones Oct 21, 2021
ce09441
move to rust 2021 (#298)
nuke-web3 Nov 21, 2021
8ba7d5a
Add CODEOWNERS file (#300)
sergejparity Nov 23, 2021
baa5863
Optimised the `Decode::decode` for `[T; N]` (#299)
xgreenx Nov 23, 2021
94f5887
Add some doc for the derive macro (#301)
gui1117 Nov 24, 2021
eb37d20
Add bytes::Bytes implementation (#309)
vorot93 Jan 23, 2022
2bffcf9
Upgrade to BitVec 1.0 (#311)
bkchr Feb 1, 2022
0841cc4
BREAKING CHANGE: DecodeLimit and DecodeAll extensions now advance inp…
wigy-opensource-developer Feb 3, 2022
a989598
Make `CompactRef` public (#320) (#321)
andrenth Feb 12, 2022
4413e9a
Move CI script to new location (#318)
sergejparity Feb 16, 2022
6f13466
[ci] Change image to ci-linux:production with clang13 (#326)
alvicsam Mar 1, 2022
b860411
Add ability to re-export parity-scale-codec crate (#325)
gshep Mar 4, 2022
372d617
BitVec: Improve the encoding and consolidate the implementations (#327)
bkchr Mar 17, 2022
04c7c6e
Fix crate access by putting a leading `::` (#328)
bkchr Mar 17, 2022
5aab13d
Bump versions (#329)
bkchr Mar 17, 2022
9a97f29
[ci] change ci image to latest (#332)
alvicsam Apr 8, 2022
cd63c91
fix CI_IMAGE var (#333)
alvicsam Apr 8, 2022
c16fa8b
No need to use mutable reference (#335)
boundless-forest Apr 18, 2022
c20a298
docs(Decode): fix tense in phrase (#336)
Cardosaum Apr 22, 2022
d70f8d4
Support `f32` and `f64` when the `full` feature is enabled (#340)
koute May 24, 2022
361a0bf
Add `decode_from_bytes` (#342)
koute May 31, 2022
24c4856
Add skip_type_params attribute (#337)
KiChjang Jun 2, 2022
75fab93
Derived code should not emit deprecated warnings (#343)
bkchr Jun 3, 2022
51d0474
Bump crossbeam-utils from 0.8.5 to 0.8.8 (#345)
dependabot[bot] Jun 7, 2022
dc7af67
Bump regex from 1.5.4 to 1.5.6 (#346)
dependabot[bot] Jun 7, 2022
f281968
Bump `parity-scale-codec-derive` to 3.1.3 (#344)
koute Jun 10, 2022
9109135
Respect #[codec(skip)] when deriving MEL (#347)
KiChjang Jun 10, 2022
2a45797
Implement MaxEncodedLen for Box<T> (#349)
KiChjang Jun 10, 2022
9fad598
Bump to 3.1.4
gavofyork Jun 11, 2022
c25f14a
Fix build on no-std and bump version
gavofyork Jun 11, 2022
7f8fdba
Use preimported alloc
gavofyork Jun 11, 2022
d95dca4
Implement MaxEncodedLen on more core lib types (#350)
KiChjang Jun 15, 2022
59b3839
Add dependabot (#339)
sergejparity Jun 17, 2022
c4084fe
Bump s3krit/matrix-message-action from 0.0.2 to 0.0.3 (#351)
dependabot[bot] Jun 17, 2022
a5b5273
Bump trybuild from 1.0.52 to 1.0.63 (#354)
dependabot[bot] Jun 17, 2022
e4a02c3
Bump syn from 1.0.81 to 1.0.98 (#358)
dependabot[bot] Jun 20, 2022
51998e0
Bump serde from 1.0.130 to 1.0.139 (#361)
dependabot[bot] Jul 16, 2022
de2061a
Bump impl-trait-for-tuples from 0.2.1 to 0.2.2 (#362)
dependabot[bot] Jul 17, 2022
af15ea7
Bump byte-slice-cast from 1.2.0 to 1.2.1 (#359)
dependabot[bot] Jul 17, 2022
b5f2b36
Bump generic-array from 0.14.4 to 0.14.5 (#355)
dependabot[bot] Jul 18, 2022
46859b8
Update README.md (#368)
WilfredTA Aug 23, 2022
ccd0f90
Don't include bitvec with std feature unless asked for explicitly (#…
jsdw Sep 13, 2022
c5c64ab
Bump version and bring changelog back uptodate for 3.2.0 release (#376)
jsdw Sep 13, 2022
4b94a47
Use core RangeInclusive instead of std (#378)
JayPavlina Sep 13, 2022
4e8d1ab
Bump to 3.2.1 (#380)
jsdw Sep 14, 2022
47d98a1
Bump bitvec from 1.0.0 to 1.0.1 (#365)
dependabot[bot] Sep 15, 2022
e4e7c9f
Document encode_bound, decode_bound and mel_bound (#374)
KiChjang Oct 20, 2022
b97d19b
[ci] add cargo-nono (#389)
alvicsam Nov 25, 2022
fa0f30c
update compact encoding link (#394)
ashWhiteHat Dec 5, 2022
4993588
Bump derive & codec version (#401)
bkchr Jan 18, 2023
31078e5
Export `decode_vec_with_len` (#403)
mrcnski Jan 26, 2023
c8dc187
[ci] change runners (#406)
alvicsam Jan 31, 2023
400f0fd
Remove `full` feature (#408)
athei Feb 10, 2023
5100ef0
Bump minor version (#409)
athei Feb 10, 2023
d935084
Bump paste from 1.0.6 to 1.0.12 (#411)
dependabot[bot] Mar 8, 2023
1ecacab
Array size (#413)
burdges Mar 18, 2023
da9a6f6
Bump ci image (#422)
Mar 29, 2023
b0099e8
Move back to parity-scale-codec:production image (#423)
Mar 29, 2023
5c201fb
Make tests build (#429)
ggwpez May 3, 2023
4502678
Add `ConstEncodedLen` (#428)
ggwpez May 4, 2023
66b828a
Bump quote from 1.0.10 to 1.0.26 (#420)
dependabot[bot] May 4, 2023
ecb1ae5
Bump proc-macro-crate from 1.1.0 to 1.1.3 (#356)
dependabot[bot] May 4, 2023
3ec380b
Bump bumpalo from 3.8.0 to 3.12.0 (#402)
dependabot[bot] May 5, 2023
f481d79
Bump serde_derive from 1.0.130 to 1.0.162 (#430)
dependabot[bot] May 5, 2023
ceeb59c
Bump byte-slice-cast from 1.2.1 to 1.2.2 (#431)
dependabot[bot] May 6, 2023
2121928
Bump serde from 1.0.139 to 1.0.162 (#433)
dependabot[bot] May 8, 2023
02596c4
Bump trybuild from 1.0.63 to 1.0.80 (#434)
dependabot[bot] May 8, 2023
aaea65a
Bump proc-macro2 from 1.0.54 to 1.0.56 (#436)
dependabot[bot] May 9, 2023
4170fc7
Implement `MaxEncodedLen` for `Arc<T>` (#439)
koute May 16, 2023
b91d05b
Bump quote from 1.0.26 to 1.0.27 (#438)
dependabot[bot] May 16, 2023
dffa5c7
Bump proc-macro2 from 1.0.56 to 1.0.58 (#440)
dependabot[bot] May 17, 2023
3f37288
Bump serde_derive from 1.0.162 to 1.0.163 (#441)
dependabot[bot] May 18, 2023
9f4e452
Bump serde from 1.0.162 to 1.0.163 (#442)
dependabot[bot] May 19, 2023
ad10bdd
Bump bytes from 1.1.0 to 1.4.0 (#437)
dependabot[bot] May 19, 2023
44f2093
Bump generic-array from 0.14.5 to 0.14.7 (#444)
dependabot[bot] May 22, 2023
58bcd72
Bump honggfuzz from 0.5.54 to 0.5.55 (#443)
dependabot[bot] May 22, 2023
155e067
Bump proptest from 1.1.0 to 1.2.0 (#445)
dependabot[bot] May 24, 2023
fa57ead
Bump proc-macro2 from 1.0.58 to 1.0.59 (#447)
dependabot[bot] May 28, 2023
52c9871
Bump quote from 1.0.27 to 1.0.28 (#446)
dependabot[bot] May 28, 2023
766fef1
Bump proc-macro2 from 1.0.59 to 1.0.60 (#450)
dependabot[bot] Jun 13, 2023
26ec559
Bump serde from 1.0.163 to 1.0.164 (#449)
dependabot[bot] Jun 13, 2023
0688c04
Rework decoding of `Box`es, `Rc`s, `Arc`s, arrays and enums (stack ov…
koute Jun 15, 2023
977624d
Bump arrayvec from 0.7.2 to 0.7.3 (#452)
dependabot[bot] Jun 15, 2023
6a81c42
Fix all clippy warnings and add clippy to the CI (#455)
koute Jun 19, 2023
07c7e2c
Bump arrayvec from 0.7.3 to 0.7.4 (#460)
dependabot[bot] Jun 19, 2023
c16f3b1
Bump quote from 1.0.28 to 1.0.29 (#463)
dependabot[bot] Jun 29, 2023
86e5162
Fix stack overflow when decoding big array newtypes wrapped in a `Box…
koute Jun 30, 2023
a7c0049
Fix prelude imports in `decode_into` (#464)
pmikolajczyk41 Jul 3, 2023
dbdab60
Bump serde from 1.0.164 to 1.0.165 (#466)
dependabot[bot] Jul 3, 2023
d7b505a
Bump paste from 1.0.12 to 1.0.13 (#469)
dependabot[bot] Jul 5, 2023
705f4c3
Bump serde from 1.0.165 to 1.0.166 (#468)
dependabot[bot] Jul 5, 2023
5b4aee4
Bump trybuild from 1.0.80 to 1.0.81 (#470)
dependabot[bot] Jul 6, 2023
2ed83ff
code cleanup (#474)
StackOverflowExcept1on Jul 7, 2023
cbd1fa8
Bump serde from 1.0.166 to 1.0.167 (#476)
dependabot[bot] Jul 7, 2023
10dea5e
Bump serde from 1.0.167 to 1.0.171 (#478)
dependabot[bot] Jul 10, 2023
00d7339
Bump proc-macro2 from 1.0.63 to 1.0.64 (#477)
dependabot[bot] Jul 10, 2023
04558a3
feat(derive): implement `size_hint()` method for `struct` and `enum` …
StackOverflowExcept1on Jul 14, 2023
d43c30f
ci-unified:bullseye-1.70.0-2023-05-23 image for ci (#473)
AndWeHaveAPlan Jul 17, 2023
9e42a5e
Bump quote from 1.0.29 to 1.0.30 (#483)
dependabot[bot] Jul 17, 2023
b6ad0c1
chore(versioning): bump version to 3.6.4 and fill the changelog (#481)
StackOverflowExcept1on Jul 18, 2023
0b1a104
Bump paste from 1.0.13 to 1.0.14 (#482)
dependabot[bot] Jul 18, 2023
a9bc815
Bump proc-macro2 from 1.0.64 to 1.0.66 (#484)
dependabot[bot] Jul 18, 2023
45dd8a3
Move CI_IMAGE to external snippet via !reference
AndWeHaveAPlan Jul 18, 2023
4eda080
Bump quote from 1.0.30 to 1.0.31 (#486)
dependabot[bot] Jul 19, 2023
779772d
Bump serde from 1.0.171 to 1.0.173 (#487)
dependabot[bot] Jul 21, 2023
12e99c0
Bump serde from 1.0.173 to 1.0.174 (#489)
dependabot[bot] Jul 21, 2023
e960eb9
Bump trybuild from 1.0.81 to 1.0.82 (#488)
dependabot[bot] Jul 21, 2023
621993b
Bump serde from 1.0.174 to 1.0.183 (#497)
dependabot[bot] Aug 8, 2023
ac88df0
Bump quote from 1.0.31 to 1.0.32 (#491)
dependabot[bot] Aug 14, 2023
03f6c23
Bump trybuild from 1.0.82 to 1.0.83 (#500)
dependabot[bot] Aug 17, 2023
8d141aa
Bump quote from 1.0.32 to 1.0.33 (#501)
dependabot[bot] Aug 17, 2023
4cbd87b
Prevent serde from bringing in `std` unless the `std` feature is enab…
eranrund Aug 17, 2023
b93b5cc
Bump serde from 1.0.183 to 1.0.185 (#502)
dependabot[bot] Aug 21, 2023
6a50b9f
Bump serde from 1.0.185 to 1.0.186 (#503)
dependabot[bot] Aug 25, 2023
6f9d7f5
Bump serde from 1.0.186 to 1.0.188 (#504)
dependabot[bot] Aug 28, 2023
690b2d7
`EncodeLike` for `NonZero*` (#505)
nazar-pc Aug 29, 2023
76c5c4a
Release 3.6.5 (#506)
bkchr Aug 29, 2023
1516bb9
Use unique encoded generic parameter names in derive (#509)
bkchr Sep 4, 2023
ddf9439
Fix max_encoded_len for Compact fields (#508)
pgherveou Sep 4, 2023
3f933df
Release 3.6.6 (#510)
pgherveou Sep 4, 2023
1e3f80c
Update MaxEncodedLen derive macro (#512)
pgherveou Sep 8, 2023
e2c4ff3
Bump to 3.6.7 (#515)
pgherveou Sep 8, 2023
37a6e76
impl compact<()> for MaxEncodedLen (#516)
pgherveou Sep 9, 2023
38d18bd
bump 3.6.8 (#518)
pgherveou Sep 11, 2023
b4da5fb
Bump trybuild from 1.0.83 to 1.0.84 (#519)
dependabot[bot] Sep 13, 2023
4d635fc
Bump proc-macro2 from 1.0.66 to 1.0.67 (#523)
dependabot[bot] Sep 29, 2023
3f27161
Bump trybuild from 1.0.84 to 1.0.85 (#524)
dependabot[bot] Oct 3, 2023
b312896
Bump proptest from 1.2.0 to 1.3.1 (#525)
dependabot[bot] Oct 4, 2023
8326256
Bump bytes from 1.4.0 to 1.5.0 (#513)
dependabot[bot] Oct 4, 2023
02593af
Bump proc-macro2 from 1.0.67 to 1.0.68 (#526)
dependabot[bot] Oct 6, 2023
3abbdf9
Update UI tests for 1.73.0 (#530)
bkchr Oct 13, 2023
36d4bf6
Bump arbitrary from 1.0.3 to 1.3.1 (#528)
dependabot[bot] Oct 13, 2023
60ab5fb
Bump serde from 1.0.188 to 1.0.189 (#531)
dependabot[bot] Oct 14, 2023
9b9037f
Bump proc-macro2 from 1.0.68 to 1.0.69 (#527)
dependabot[bot] Oct 15, 2023
984c981
Bump rustix from 0.37.18 to 0.37.25 (#533)
dependabot[bot] Oct 20, 2023
802af25
[ci] Add job to publish crates (#517)
alvicsam Oct 23, 2023
8dff7a1
Bump serde from 1.0.189 to 1.0.190 (#534)
dependabot[bot] Oct 26, 2023
017f72e
Bump `proc-macro-crate` to `2.0.0` (#535)
ascjones Oct 27, 2023
577b112
Adding gitspiegel-trigger workflow (#537)
mutantcornholio Oct 30, 2023
28c066d
Bump arbitrary from 1.3.1 to 1.3.2 (#538)
dependabot[bot] Nov 2, 2023
fb12c07
Bump serde from 1.0.190 to 1.0.192 (#540)
dependabot[bot] Nov 9, 2023
c781ce0
Fixing gitspiegel trigger workflow (#541)
mutantcornholio Nov 13, 2023
060be35
Bump serde from 1.0.192 to 1.0.193 (#543)
dependabot[bot] Nov 21, 2023
e9e396c
Bump proc-macro2 from 1.0.69 to 1.0.70 (#544)
dependabot[bot] Nov 28, 2023
d0f04b4
Bump proc-macro-crate from 2.0.0 to 2.0.1 (#547)
dependabot[bot] Dec 6, 2023
5fc75b9
[ci] fix publish job (#548)
alvicsam Dec 8, 2023
c191496
Switch CI from GitLab to GitHub Actions (#546)
sergejparity Dec 13, 2023
d368670
Bump trybuild from 1.0.85 to 1.0.86 (#549)
dependabot[bot] Dec 20, 2023
cb5c4fc
Bump proc-macro2 from 1.0.70 to 1.0.73 (#553)
dependabot[bot] Jan 1, 2024
d404bcf
Bump quote from 1.0.33 to 1.0.34 (#552)
dependabot[bot] Jan 1, 2024
d7e3553
Bump proc-macro2 from 1.0.73 to 1.0.74 (#554)
dependabot[bot] Jan 2, 2024
ae31325
Bump quote from 1.0.34 to 1.0.35 (#556)
dependabot[bot] Jan 3, 2024
42e3a75
Bump proc-macro-crate from 2.0.1 to 3.0.0 (#558)
dependabot[bot] Jan 4, 2024
2ca4d1c
Bump proc-macro2 from 1.0.74 to 1.0.75 (#557)
dependabot[bot] Jan 4, 2024
da3e932
Bump serde from 1.0.193 to 1.0.194 (#559)
dependabot[bot] Jan 5, 2024
9c73bc5
Bump serde from 1.0.194 to 1.0.195 (#561)
dependabot[bot] Jan 8, 2024
ca25960
Bump proc-macro2 from 1.0.75 to 1.0.76 (#560)
dependabot[bot] Jan 8, 2024
805816a
Bump trybuild from 1.0.86 to 1.0.88 (#563)
dependabot[bot] Jan 9, 2024
f85a1aa
Bump trybuild from 1.0.88 to 1.0.89 (#566)
dependabot[bot] Jan 15, 2024
6d73596
Bump proc-macro-crate from 3.0.0 to 3.1.0 (#567)
dependabot[bot] Jan 18, 2024
b8ce1f5
Bump proc-macro2 from 1.0.76 to 1.0.78 (#568)
dependabot[bot] Jan 22, 2024
8c3cc7f
Bump serde from 1.0.195 to 1.0.196 (#570)
dependabot[bot] Jan 29, 2024
a1c9b02
Bump serde from 1.0.196 to 1.0.197 (#571)
dependabot[bot] Feb 21, 2024
c77ea40
Bump proc-macro2 from 1.0.78 to 1.0.79 (#572)
dependabot[bot] Mar 18, 2024
ca68d2e
Bump trybuild from 1.0.89 to 1.0.90 (#573)
dependabot[bot] Mar 19, 2024
0eb6d82
Bump bytes from 1.5.0 to 1.6.0 (#574)
dependabot[bot] Mar 26, 2024
42db790
Bump trybuild from 1.0.90 to 1.0.91 (#577)
dependabot[bot] Apr 3, 2024
f70e66b
Bump quote from 1.0.35 to 1.0.36 (#578)
dependabot[bot] Apr 12, 2024
9c11cfc
Bump serde from 1.0.197 to 1.0.198 (#580)
dependabot[bot] Apr 18, 2024
5f4fb36
Bump proc-macro2 from 1.0.79 to 1.0.81 (#581)
dependabot[bot] Apr 18, 2024
94cfe52
Bump serde from 1.0.198 to 1.0.199 (#584)
dependabot[bot] Apr 29, 2024
faac8cc
Source code formatting (#583)
kalaninja Apr 30, 2024
fa95ed8
Fix PrefixInput read (#582)
kalaninja Apr 30, 2024
a7d323c
Bump serde from 1.0.199 to 1.0.200 (#585)
dependabot[bot] May 2, 2024
d8e3e9f
Bump trybuild from 1.0.91 to 1.0.94 (#589)
dependabot[bot] May 7, 2024
65c58b3
Bump proc-macro2 from 1.0.81 to 1.0.82 (#588)
dependabot[bot] May 7, 2024
8c922a5
Bump serde from 1.0.200 to 1.0.201 (#592)
dependabot[bot] May 9, 2024
0c5c1c4
Bump trybuild from 1.0.94 to 1.0.95 (#593)
dependabot[bot] May 10, 2024
463fae1
Bump paste from 1.0.14 to 1.0.15 (#594)
dependabot[bot] May 13, 2024
24e3877
Add the repository field to Cargo.toml (#595)
szabgab May 14, 2024
00ca619
Bump serde from 1.0.201 to 1.0.202 (#596)
dependabot[bot] May 15, 2024
9dd3f40
Bump trybuild from 1.0.95 to 1.0.96 (#597)
dependabot[bot] May 16, 2024
684c34c
Bump proc-macro2 from 1.0.82 to 1.0.83 (#598)
dependabot[bot] May 20, 2024
5e58275
--- (#599)
dependabot[bot] May 21, 2024
056d5d6
Bump proc-macro2 from 1.0.83 to 1.0.84 (#600)
dependabot[bot] May 27, 2024
1b3e594
Bump serde from 1.0.202 to 1.0.203 (#601)
dependabot[bot] May 28, 2024
51106c8
Bump proc-macro2 from 1.0.84 to 1.0.85 (#604)
dependabot[bot] Jun 3, 2024
f8e228a
Bump proc-macro2 from 1.0.85 to 1.0.86 (#606)
dependabot[bot] Jun 21, 2024
2f4fdaa
Bump proptest from 1.3.1 to 1.5.0 (#607)
dependabot[bot] Jun 24, 2024
4682c52
Bump serde from 1.0.203 to 1.0.204 (#611)
dependabot[bot] Jul 8, 2024
3ab5624
Bump trybuild from 1.0.96 to 1.0.97 (#612)
dependabot[bot] Jul 8, 2024
5af99fc
Bump bytes from 1.6.0 to 1.6.1 (#614)
dependabot[bot] Jul 15, 2024
36baa4f
Use `MAX_PREALLOCATION` consistently (#605)
serban300 Jul 19, 2024
a388fa9
Follow-up on #605 (#615)
serban300 Jul 23, 2024
4687bb5
Bump trybuild from 1.0.97 to 1.0.98 (#617)
dependabot[bot] Jul 30, 2024
ec0a8e1
Bump bytes from 1.6.1 to 1.7.1 (#620)
dependabot[bot] Aug 12, 2024
bc65979
Bump trybuild from 1.0.98 to 1.0.99 (#619)
dependabot[bot] Aug 12, 2024
1dba1fa
Fix `MaxEncodedLen` derive macro for enum with skipped variant (#622)
gui1117 Aug 23, 2024
230c7da
Bump serde from 1.0.204 to 1.0.209 (#625)
dependabot[bot] Aug 26, 2024
5b66501
Bump arrayvec from 0.7.4 to 0.7.6 (#624)
dependabot[bot] Aug 26, 2024
fb00f2e
Bump quote from 1.0.36 to 1.0.37 (#626)
dependabot[bot] Aug 27, 2024
224b834
Bump serde from 1.0.209 to 1.0.210 (#627)
dependabot[bot] Sep 9, 2024
f8f2d9c
Bump bytes from 1.7.1 to 1.7.2 (#629)
dependabot[bot] Sep 18, 2024
2c61d4a
Introduce `CountedInput`. a wrapper which counts the number of bytes …
gui1117 Sep 24, 2024
f2823c3
Bump proc-macro2 from 1.0.86 to 1.0.87 (#632)
dependabot[bot] Oct 8, 2024
be670ab
Decode with mem limit (#616)
serban300 Oct 9, 2024
a530799
Bump trybuild from 1.0.99 to 1.0.100 (#635)
dependabot[bot] Oct 15, 2024
5011274
Bump rustversion from 1.0.17 to 1.0.18 (#634)
dependabot[bot] Oct 15, 2024
d2a986a
Bump proc-macro2 from 1.0.87 to 1.0.88 (#636)
dependabot[bot] Oct 16, 2024
b34477a
Bump trybuild from 1.0.100 to 1.0.101 (#637)
dependabot[bot] Oct 21, 2024
234c7c7
Bump bytes from 1.7.2 to 1.8.0 (#638)
dependabot[bot] Oct 22, 2024
34e7e70
Bump serde from 1.0.210 to 1.0.211 (#639)
dependabot[bot] Oct 22, 2024
348027f
Bump serde from 1.0.211 to 1.0.213 (#644)
dependabot[bot] Oct 23, 2024
c8afea4
Bump proc-macro2 from 1.0.88 to 1.0.89 (#642)
dependabot[bot] Oct 23, 2024
438eca0
chore(deps): Update to syn 2 (#640)
jsdw Oct 24, 2024
3093640
Bump syn from 2.0.82 to 2.0.85 (#647)
dependabot[bot] Oct 24, 2024
91d436e
Bump arbitrary from 1.3.2 to 1.4.0 (#651)
dependabot[bot] Nov 5, 2024
c5e402c
Bump syn from 2.0.85 to 2.0.87 (#650)
dependabot[bot] Nov 5, 2024
63c634e
Bump arbitrary from 1.4.0 to 1.4.1 (#652)
dependabot[bot] Nov 6, 2024
642430e
Bump serde from 1.0.213 to 1.0.214 (#648)
dependabot[bot] Nov 6, 2024
2ef70dc
Bump serde from 1.0.214 to 1.0.215 (#654)
dependabot[bot] Nov 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2

updates:
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: daily
- package-ecosystem: cargo
directory: '/'
schedule:
interval: 'daily'
225 changes: 225 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
name: Rust CI/CD

on:
push:
branches:
- master
pull_request:

env:
IMAGE: paritytech/ci-unified:bullseye-1.81.0
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
set-image:
# GitHub Actions does not allow using 'env' in a container context.
# This workaround sets the container image for each job using 'set-image' job output.
runs-on: ubuntu-latest
outputs:
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
steps:
- id: set_image
run: echo "IMAGE=${{ env.IMAGE }}" >> $GITHUB_OUTPUT

# Checks
fmt:
runs-on: ubuntu-latest
needs: [ set-image ]
container: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Show Cargo version
run: cargo +nightly -vV

- name: Cargo fmt
run: cargo +nightly fmt --all -- --check

clippy:
runs-on: ubuntu-latest
needs: [ set-image ]
container: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout code/.
uses: actions/checkout@v4

- name: Show Rust version
run: |
cargo -vV
rustc -vV
rustup show

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}

- name: Run Clippy
run: |
cargo +stable clippy --locked -- -Dwarnings
cargo +stable clippy --locked -p parity-scale-codec-derive -- -Dwarnings
cargo +stable clippy --locked --test clippy -- -Dwarnings

checks:
runs-on: ubuntu-latest
needs: [ set-image ]
container: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Show Rust version
run: |
cargo -vV
rustc -vV
rustup show

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}

- name: Check Rust Stable (no_derive_no_std)
run: time cargo +stable check --verbose --no-default-features --features bit-vec,bytes,generic-array

- name: Check Rust Stable (no_std-chain-error)
run: |
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
time cargo +stable check --verbose --no-default-features --features chain-error

- name: check-rust-stable-no_derive
run: |
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
time cargo +stable check --verbose --features bit-vec,bytes,generic-array

- name: check-rust-stable-only_mel
run: |
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
time cargo +stable check --verbose --features max-encoded-len

# Tests
tests:
runs-on: ubuntu-latest
needs: [ set-image ]
container: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Show Rust version
run: |
cargo -vV
rustc -vV
rustup show

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}

- name: Test Rust Stable
run: |
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
time cargo +stable test --verbose --all --features bit-vec,bytes,generic-array,derive,max-encoded-len

- name: Test Rust Stable (no_derive)
run: |
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
time cargo +stable test --verbose --features bit-vec,bytes,generic-array

- name: Test Rust Stable (only_mel)
run: |
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
time cargo +stable test --verbose --features max-encoded-len

- name: Test Rust Stable (only_mel-no_default_std)
run: |
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
time cargo +stable test --verbose --features max-encoded-len,std --no-default-features

- name: Run Nightly Tests
run: |
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
time cargo +nightly test --verbose --lib btree_utils

# Benches
bench-rust-nightly:
runs-on: ubuntu-latest
needs: [ set-image ]
strategy:
matrix:
feature: [ bit-vec,bytes,generic-array,derive,max-encoded-len ]
container: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}

- name: Bench Rust Nightly
run: |
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
time cargo +nightly bench --features ${{ matrix.feature }}

miri:
runs-on: ubuntu-latest
needs: [ set-image ]
strategy:
matrix:
feature: [ bit-vec,bytes,generic-array,arbitrary ]
container: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}

- name: Run Miri
run: |
export RUST_BACKTRACE=1
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
export MIRIFLAGS='-Zmiri-disable-isolation'
time cargo +nightly miri test --features ${{ matrix.feature }} --release

# Build

build-linux-ubuntu-amd64:
runs-on: ubuntu-latest
needs: [ set-image, clippy, checks, tests ]
container: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}

- name: Build for Linux (Ubuntu, AMD64)
run: cargo build --verbose --release --features bit-vec,bytes,generic-array,derive

publish-dry-run:
runs-on: ubuntu-latest
needs: [ set-image, build-linux-ubuntu-amd64 ]
container: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}

- name: Dry Run Publish
if: github.event_name == 'pull_request'
run: cargo publish -p parity-scale-codec --dry-run
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish release to crates.io

on:
release:
types:
- published

jobs:
publish-crate:
runs-on: ubuntu-latest
environment: release
container: paritytech/ci-unified:bullseye-1.79.0
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}

- name: Publish Crate
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p parity-scale-codec
18 changes: 18 additions & 0 deletions .github/workflows/release-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pushes release updates to a pre-defined Matrix room
on:
release:
types:
- edited
- prereleased
- published
jobs:
ping_matrix:
runs-on: ubuntu-latest
steps:
- name: send message
uses: s3krit/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "**${{github.event.repository.full_name}}:** A release has been ${{github.event.action}}<br/>Release version [${{github.event.release.tag_name}}](${{github.event.release.html_url}})<br/><br/>***Description:***<br/>${{github.event.release.body}}<br/>"
server: "matrix.parity.io"
Loading