Skip to content

Commit

Permalink
Recursive Derives and Attributes (#10)
Browse files Browse the repository at this point in the history
* change interface

* recursive derives

* added test and comments

* readd test

* formatting adjustment

* fix example and unused dependencies

* add documentation to everything.

* fix bugs in generic recursion of container types

* clippy fix

* fix dependencies

* remove the generated rs code

* make scale_typegen directly accessible

* Debug and Clone  derives on relevant structs

* fix comments in code

* add compact encoding differentiation

* fix pipeline error by hiding scale-typegen in description behind flag

* add access to type registry

* give middleware access to transformer to resolve types

* nit: fix docs on recurse_policy

* add struct prefix, fix variant space bug

* add cargo machete in CI/CD

* remove #![deny(unused_crate_dependencies)] in description crate

* introduce cache hit policy

* fine grained control over cache hit behavior

* remove should_continue and other things

* remove smallvec

* generic arguments are working much better now
  • Loading branch information
tadeohepperle authored Dec 7, 2023
1 parent 09111f2 commit 695b990
Show file tree
Hide file tree
Showing 31 changed files with 1,260 additions and 48,525 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: setup
uses: actions-rs/toolchain@v1
Expand All @@ -32,6 +33,9 @@ jobs:
cargo clippy --version
cargo clippy --all-targets -- -D warnings
- name: machete
uses: bnjbvr/cargo-machete@main

- name: check
run: |
cargo check
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
.idea

Cargo.lock

/artifacts/*.rs
191 changes: 13 additions & 178 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 7 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,18 @@ parity-scale-codec = { version = "3.6.5", features = ["derive"] }
proc-macro2 = "1.0.69"
quote = "1.0.33"
scale-bits = "0.4.0"
scale-info = { version = "2.10.0", features = [
"derive",
"bitvec",
"decode",
"docs",
"serde",
] }
smallvec = "1.11.2"
scale-info = { version = "2.10.0", features = ["derive", "bitvec", "decode", "docs", "serde"] }
smallvec = "1.10.0"
syn = { version = "2.0.38", features = ["full", "extra-traits"] }
thiserror = "1.0.50"
prettyplease = "0.2.15"
scale-decode = "0.9.0"
scale-encode = "0.5.0"
serde = "1.0.192"
serde_json = "1.0.108"
frame-metadata = { version = "16.0.0", default-features = false, features = ["current", "std"] }
bitvec = { version = "1", default-features = false }
pretty_assertions = "1.4.0"
anyhow = "1.0.75"
# crates
peekmore = "1.3.0"
scale-value = { version = "0.13.0" }
rand_chacha = { version = "0.3.1" }
rand = { version = "0.8.5" }
Loading

0 comments on commit 695b990

Please sign in to comment.