Tadeo Hepperle
cd5060a5a0
Add Web Feature to Subxt Codegen ( #1175 )
...
* add web feature to subxt codegen
* add getrandom
* remove compile error
* metadata: Generate runtime outer enums if not present in V14 (#1174 )
* metadata: Extend outer enum generation for V14
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Generate outer enums if not present
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Porpagate v14 error instead of panic
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Try to find `RuntimeCall` then `Call` enums
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Ensure the returned type is variant for outer enums
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Replace or with or_else
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Apply clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Return error and generate only `RuntimeError`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Remove modified path
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata/tests: Check missing runtime types
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* add empty use of getrandom
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
Co-authored-by: James Wilson <james@jsdw.me >
2023-09-26 20:02:45 +02:00
Niklas Adolfsson
8b4fea0b07
refactor(rpc): support default port in URL ( #1122 )
...
* refactor: support default port in URL
Update jsonrpsee to v0.20 to support the default port number in URLs.
* fix nit, revert web feature
* fix lightclient code
2023-08-15 09:53:26 +01:00
Alexandru Vasile
c6e4c7294d
codegen: Fetch and decode metadata version then fallback ( #1092 )
...
* codegen: Fetch and decode metadata version then fallback
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Add `unstable-metadata` attribute to the subxt macro
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* docs: Add missing comma
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Add `GenerateRuntimeApi`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update subxt/src/lib.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update macro/src/lib.rs
Co-authored-by: James Wilson <james@jsdw.me >
* subxt: Adjust docs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Import `GenerateRuntimeApi`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: James Wilson <james@jsdw.me >
2023-07-25 12:14:18 +01:00
James Wilson
562f12cd9b
Subxt Guide ( #890 )
...
* WIP Starting to write book; extrinsics first pass done
* cargo fmt
* Ongoing work; events, constants, wip blocks
* at_latest() and wip blocks
* remove need to import parity-scale-codec crate with Subxt for macro to work
* More docs; expanding on setup guide and finish pass of main sections
* Tidy and remove example section for now
* format book lines to 100chars
* Fix example code
* cargo fmt
* cargo fmt
* fix example
* Fix typos
* fix broken doc links, pub mods
* Update Subxt macro docs
* can't link to Subxt here
* move macro docs to Subxt to make linking better and fix example code
* note on macro about docs
* cargo fmt
* document the no_default_derives macro feature
* Address feedback and remove redundant text
* address review comments; minor tweaks
* WIP add Runtime calls to book
* Improve Runtime API docs
* expose thing we forgot to expose and doc link fixes
2023-05-04 15:03:42 +01:00
Andrew Jones
f4eb80e78d
Upgrade to syn 2.0 ( #875 )
...
* WIP updating to syn 2.0.0
* WIP darling compat
* Update darling and syn workspace deps
* NestedMeta::parse_meta_list
* Rename attribute keyword type property to path
* Fmt
* Update more type to path
* Unused darling
* Cargo.lock
* Add missing syn features
2023-05-03 13:14:27 +01:00
Tadeo Hepperle
40339b3415
add no_default_substitutions to the macro and cli ( #936 )
2023-04-27 15:59:57 +01:00
James Wilson
464b4432cf
Move all deps to workspace toml ( #932 )
...
* Move all deps to workspace toml
* cargo fmt and codec 3.4, removing now unneeded 'full' feature
* add wasm-tests to workspace and fix subxt inheritng
* cargo fmt
* wasm-test thing can't be in workspace so revert that
* remove unwanted target dir from wasm-tests
2023-04-26 10:31:59 +01:00
Piotr Mikołajczyk
d3e20e993b
Opt out from default derives and attributes ( #925 )
...
* No default derives
* Clippy
* Clippy
* Review
* Review
* Typo
2023-04-24 14:01:21 +01:00
James Wilson
2a4da618a0
Release 0.28 ( #906 )
...
* wip changelog
* Bump versions and write changelog for 0.28
* typo and wee tweaks
2023-04-12 09:34:59 +01:00
James Wilson
a2b8dde5e6
Add 'Static' type and improve type substitution codegen to accept it ( #886 )
...
* Add Static type which defers to Encode/Decode and impls EncodeAsType/DecodeAsType
* rename to static_type and impl Deref/Mut
* Improve type substitution in codegen so that concrete types can be swapped in
* A couple of comment tweaks and no need for a macro export
* Extend type substitution logic to work recursively on destination type
* cargo fmt
* Fix a couple of comments
* update ui test outpuot
* Add docs and missing_docs lint
* Add test for replacing multiple of Ident
* Update codegen/src/error.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* update copyright year and fix ui test
* simplify another error
---------
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2023-03-31 16:56:19 +01:00
James Wilson
7c252fccf7
cargo fmt with stable defaults ( #876 )
2023-03-21 16:53:47 +00:00
Piotr Mikołajczyk
c9527abaa8
Generate only runtime types ( #845 )
...
* Typos
* Add new macro parameter. Refactor.
* Code generation
* Inline `runtime_types` module
* Documentation
* Can't inline so easily
* Example
* Remove leftover
* Improve clarity of the example
2023-03-21 14:44:14 +00:00
dependabot[bot]
656e696bc8
Bump darling from 0.14.3 to 0.14.4 ( #858 )
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.3 to 0.14.4.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.3...v0.14.4 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Wilson <james@jsdw.me >
2023-03-13 13:37:48 +01:00
Alexandru Vasile
a7b45ef1d1
codegen: Add codegen error ( #841 )
...
* codegen: Add codegen error
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Use codegen error instead of aborts
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Remove `proc-macro-error` dependency
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro/subxt: Transform codegen error into compile_error!
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Pretty printing for `CodegenError`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update cargo.lock
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Adjust testing for codegen error
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Fix documentation example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Export `CodegenError`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Use collect::<Result<_>, _>()
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Adjust comment regarding error printing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Improve error messages
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-03-03 19:57:46 +02:00
Alexandru Vasile
5320ca9d55
codegen: Opt out of documentation ( #843 )
...
* codegen: Opt-out for API documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Add `--no-docs` flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Check no documentation was generated
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update cargo.lock
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Adjust testing for the new codegen API
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Ensure `subxt` macro does not contain documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Expose documentation flag
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* expose_documentation => generate_docs
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: James Wilson <james@jsdw.me >
2023-03-02 21:35:02 +02:00
dependabot[bot]
61457ea873
Bump syn from 1.0.107 to 1.0.109 ( #838 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.107 to 1.0.109.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.107...1.0.109 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 10:55:56 +01:00
Qinxuan Chen
af00f68962
chore: use workspace inheritance for package info ( #832 )
...
* chore: use workspace inheritance for package info
* add rust-version field into workspace package
* .workspace = true
---------
Co-authored-by: James Wilson <james@jsdw.me >
2023-02-21 11:53:32 +00:00
Léa Narzis
6d3c377c16
bump version 0.27.1 ( #827 )
2023-02-15 17:45:47 +00:00
James Wilson
7b0e06cf8a
Release v0.27.0 ( #824 )
...
* Bump substrate deps
* Bump to 0.27.0
* update changelog
* Clone and Debug on TxPayload types
* move item to Changed
* remove chore entirely
2023-02-13 16:13:17 +00:00
dependabot[bot]
b623749dcd
Bump darling from 0.14.2 to 0.14.3 ( #823 )
...
Bumps [darling](https://github.com/TedDriggs/darling ) from 0.14.2 to 0.14.3.
- [Release notes](https://github.com/TedDriggs/darling/releases )
- [Changelog](https://github.com/TedDriggs/darling/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TedDriggs/darling/compare/v0.14.2...v0.14.3 )
---
updated-dependencies:
- dependency-name: darling
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-13 11:48:15 +00:00
James Wilson
d92352ad73
Prep for releasing 0.26.0 ( #802 )
...
* Prep for releasing 0.26.0
* link to new RPC spec
2023-01-24 16:55:27 +00:00
Igor Matuszewski
977f2a3333
Allow for remapping type parameters in type substitutions ( #735 )
...
* feat!: Allow for remapping type parameters in type substitutions
* chore: cargo fmt
* chore: cargo clippy
* chore: Remove some old code
* a little tidy
* address comment nit
Co-authored-by: James Wilson <james@jsdw.me >
2023-01-19 10:49:57 +00:00
Francisco Miguel García
a80d6cfd30
Add --derive-for-type to cli ( #708 )
...
* Add `--derive-for-type` to cli
* Remove clippy warnings
2022-11-23 15:25:32 +00:00
Igor Matuszewski
523534464f
Add and adapt a publish.sh utility script from jsonrpsee ( #723 )
...
* refactor: Explicitly indicate which crates should be published
* chore: Add a convenience publish.sh script
* Update scripts/publish.sh
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Update scripts/publish.sh
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* fix: Don't use unsupported -P flag in BSD grep in publish.sh
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2022-11-23 12:30:13 +01:00
Niklas Adolfsson
428bc35ed8
chore: prep release v0.25 ( #717 )
...
* bump versions 0.25
* update changelog
* adjust RELEASE.md
* fix weird formatting
* rephrase bad english
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
2022-11-16 16:10:31 +01:00
James Wilson
d03e599684
Add runtime_metadata_url to pull metadata directly from a node ( #689 )
...
* Allow metadata to be pulled directly from a node with runtime_metadata_url
* Update docs
* https too, and abstract out block_on fn
* tweak a comment in the example
2022-10-19 11:07:12 +01:00
Michael Müller
f115ff975c
Allow specifying the subxt crate path for generated code ( #664 )
...
* Allow specifying the `subxt` crate path for generated code
* Make `clippy` happy
* Add documentation
* Improve optics
* Remove custom crate path test
* Implement comments
* Update comment
* Make `crate_path` property instead of argument
* Remove unnecessary derives
* Remove `Default` impls in favor of explicit constructors
* Remove unnecessary `into`
* Update codegen/src/types/mod.rs
Co-authored-by: Andrew Jones <ascjones@gmail.com >
Co-authored-by: Andrew Jones <ascjones@gmail.com >
2022-09-27 11:41:36 +01:00
James Wilson
75e383dfcf
Prep for 0.24 release ( #663 )
...
* Bump versions and update changelog
* tweak text
* merge a couple of related changelog entries
2022-09-22 17:16:04 +01:00
James Wilson
a3ea12663e
Update version, tweak docs, and write up changelog ( #616 )
2022-08-11 15:04:50 +01:00
James Wilson
c55b7ba3e3
dual license ( #590 )
2022-06-28 14:09:41 +01:00
Alexandru Vasile
c07b9e4be8
Release v0.22.0 ( #574 )
...
* Bump versions to `v0.22.0`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add missing crates for releasing chore
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update changelog
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update changelog message & remove non-user facing PRs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update CHANGELOG.md
Co-authored-by: James Wilson <james@jsdw.me >
* Update CHANGELOG.md
Co-authored-by: James Wilson <james@jsdw.me >
Co-authored-by: James Wilson <james@jsdw.me >
2022-06-20 17:07:38 +03:00
Alexandru Vasile
e3732e354f
Add subxt documentation ( #546 )
...
* Documentation for cli crate
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Add documentation and simplify calls generation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Add documentation and simplify events generation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Add documentation and simplify constants generation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Add documentation and simplify storage generation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Add lib documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Remove `-f bytes` as this is the default
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt/client: Add examples
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lib_doc: Add documentation to dedicated file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Link documentation from file
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Add more documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Add Storage example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add rpc documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* metadata: Add documentation for errors
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add documentation for the `extrinsic` module
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add documentation for `events` module
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Add `Static Metadata Validation` section
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Add `Runtime Updates` section
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Fix link to documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* readme: Remove hardcoded versions
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Move documentation to dedicated folder
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Spaces between examples
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* More details for `types_mod_ident`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add note for RuntimeGenerator
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Address feedback
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update codegen/src/api/constants.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/lib.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/metadata/metadata_type.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/storage.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Address feedback
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Fix cargo clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update call example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add example for fetching constants
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Link to examples in subxt.md
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update codegen/src/api/calls.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/calls.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/calls.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/constants.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/constants.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/storage.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/storage.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update codegen/src/api/storage.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update docs/subxt.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update docs/subxt.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update docs/subxt.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update docs/subxt.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update docs/subxt.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update subxt/src/extrinsic/mod.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update subxt/src/storage.rs
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update examples/examples/balance_transfer.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/extrinsic/mod.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/rpc.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update subxt/src/updates.rs
Co-authored-by: James Wilson <james@jsdw.me >
* Update docs example with `PolkadotExtrinsicParams`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Remove extrinsic extra documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* examples: Remove similar transfer example
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Apply cargo fmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: James Wilson <james@jsdw.me >
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
2022-06-14 14:23:02 +03:00
Andrew Jones
ec23283d75
Deny unused crate dependencies ( #549 )
...
* subxt unused crate deps
* Deny unused dependencies
2022-05-26 14:12:21 +01:00
Alexandru Vasile
6d73172560
Release v0.21.0 ( #525 )
...
* Bump versions to v0.21.0
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update releasing steps
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add changelog
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* releasing: Add categories for changelog
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update CHANGELOG.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Update CHANGELOG.md
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
2022-05-02 18:54:19 +03:00
Alexandru Vasile
b32cd32c2d
Use minimum amount of dependencies for crates ( #524 )
...
* macro: Reduce dependencies
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* macro: Remove dev-dependencies
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Reduce dependencies
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Reduce dependencies
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2022-04-29 15:35:16 +01:00
Andrew Jones
24317b4311
Add custom derives for specific generated types ( #520 )
...
* WIP implement custom derives per type
* WIP wiring up specific type derives
* Fmt
* Rename GeneratedTypeDerives to Derives
* Fmt
* Fix errors
* Fix test runtime
* Make derives appear in alphabetic order
* Clippy
* Add derive_for_type attribute to example
* Add docs to example
* Rename GeneratedTypeDerive
* Rename ty to type in attribute
* Update darling
* Update codegen/src/types/derives.rs
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
* Update codegen/src/types/mod.rs
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
* Update codegen/src/types/mod.rs
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
* review: update method name
* Add unit tests for combined derives
* Remove out of date docs
* Add macro usage docs
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
2022-04-28 12:26:34 +01:00
James Wilson
dffeee431e
Release prep for 0.20.0 ( #502 )
...
* v0.20.0 release prep
* wee text tweak
* remove dry-run step that doesn't actually work
* Fix typo
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
* No more "in"
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
* Fix "customized" typo
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com >
Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com >
2022-04-06 16:42:10 +01:00
James Wilson
3758c850f3
Release prep for 0.19.0 ( #481 )
...
* prep to release 0.19.0
* fix URLs to https
2022-03-21 11:24:04 +00:00
James Wilson
14ef6c8256
Bump to 0.18.1 ( #467 )
2022-03-04 11:57:00 +00:00
Alexandru Vasile
3baaa01fb1
Release preparation for v0.18.0 ( #464 )
...
* Bump release version to v0.18.0
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update changelog
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update dependency version to v0.18.0
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Modify changelog
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Move changelog entries from added to changed
2022-03-02 21:02:38 +02:00
Andrew Jones
11f24d78f7
Update scale-info and parity-scale-codec requirements ( #462 )
...
* Update scale-info and parity-scale-codec requirements
* Update CHANGELOG
* Update frame-metadata
* Update bitvec
* Fix test
* Update bitvec event decoding
* More bitvec updates
* Update substrate primitives dependencies
* Fix up bitvec errors and decode error
* Fix up bitvec errors
* Update polkadot codegen
2022-03-01 16:36:38 +00:00
Andrew Jones
4bed7eb716
Fix conversion of Call struct names to UpperCamelCase ( #441 )
...
* Fix conversion of `Call` struct names to UpperCamelCase
* Update to latest heck and use ToUpperCamelCase
2022-02-10 13:10:27 +00:00
Alexandru Vasile
e9be43aaff
Release preparation for v0.17.0 ( #434 )
...
* lib: Export `GenericError` to avoid linking to private items
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Bump version to v0.17.0
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* doc: Add crates to bump
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update changelog
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* changelog: Add new line between title and list
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* releasing: Remove extra closing bracket
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* releasing: Fix cargo install typo for cargo-hack
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove subxt version from macro and test-runtime
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* releasing: Change PR link to sort in descending order
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* changelog: Add missing PR
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2022-02-04 15:44:56 +02:00
Andrew Jones
7f3f686cef
Update substrate dependencies ( #429 )
...
* Update substrate dependencies
* Update sp-keyring deps
2022-02-03 17:19:27 +00:00
James Wilson
55f04c20a7
Move Subxt crate into a subfolder ( #424 )
...
* move into subfolder step 1
* Make folders a workspace again
* Move examples into their own workspace crate to make them more visible and easier to run
* clippy fix
* newline
* tweak releasing steps for folder move
* reference exampels more clearly in top level readme
2022-02-02 12:15:44 +00:00
David
667dfa291c
Release prep for v0.16.0 ( #417 )
...
* Draft changelog
* Bump (and normalize version): v0.16.0
* Update changelog
* Update Cargo.toml
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Add not about 0.16 being disruptive
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2022-02-01 10:48:41 +00:00
Andrew Jones
cc0f980d95
Use released substrate dependencies ( #375 )
...
* WIP update dependencies to crates versions
* Use released versions of sp-version and sp-arithmetic
* Attempt to align version of sp-keyring used to correspond to 4.0.0 releases. No luck but closer
* sp-keyring 4.0.0
* also sp-keyring 4.0.0 for macro crate
* simplify cargo.tomls
Co-authored-by: James Wilson <james@jsdw.me >
2022-01-17 14:25:15 +00:00
Andrew Jones
415e1222d2
2022! ( #381 )
2022-01-05 10:26:03 +00:00
Andrew Jones
7aac7dfecf
Implement pre_dispatch for SignedExtensions ( #370 )
...
* Explicitly specify master branch for sp-keyring dev dependency
* Implement pre_dispatch for `SignedExtension`s
* Update macro/Cargo.toml
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2021-12-14 17:17:31 +00:00
James Wilson
4b9ee133ac
Ensure metadata is in sync with running node during tests ( #333 )
...
* add test-runtime crate to dynamically obtain metadata/node_runtime for tests
* cargo fmt
* Download substrate prior to cargo calls (hopefully)
* add README explaining test-runtime
* Fix CI, fmt and clippy
* more clippy
* tweak test-node readme
* fmt the clippied
* A little tidy up in build.rs
* use ureq and raw string
* Don't export unnecessary metadata
* async_std/RpcClient/bytes instead of ureq/Value/hex
* newline
* document try_from_url error unwrap
2021-11-29 09:39:40 +00:00