Igor Matuszewski
ea5daa444f
ci: Appease Clippy ( #761 )
...
This should make the CI green again, as the lints have been introduced
in a new stable release, outside of the changes made in this repository.
2023-01-10 10:47:07 +00:00
Igor Matuszewski and Niklas Adolfsson
f0ce26db7b
Add bitvec-like generic support to the scale-bits type for use in codegen ( #718 )
...
* Add bitvec-like generic support to the scale-bits type for use in codegen
* Use nightly 1.66 formatting
* Fix reading input while decoding bit sequences
* Add tests for our DecodedBits wrapper
* Add convenience DecodedBits::(in)to_bits functions
* Don't expose DecodedBits::bit_format
* Re-export scale_bits as peer dependency
* Move subxt::utils into a separate file
* Hide DecodedBits internals
* Don't re-export types from the `bits` module
* Update subxt/src/utils/bits.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Update subxt/src/utils/bits.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Address review feedback
* Clarify the byte needed calculation in DecodedBits encoding
* Remove remaining dbg! invocations
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2022-11-24 15:09:20 +01:00
Igor Matuszewski
702e87e58d
Remove a soon-to-be-removed const_err lint ( #731 )
...
Removed in Rust 1.66:
```
warning: lint `const_err` has been removed: converted into hard error, see issue #71800 <https://github.com/rust-lang/rust/issues/71800 > for more information
--> subxt/src/lib.rs:114:5
|
114 | const_err,
| ^^^^^^^^^
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
```
2022-11-23 16:08:26 +01:00
Igor Matuszewski and Niklas Adolfsson
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
Igor Matuszewski and Andrew Jones
8b46f5c786
Retain Rust code items from mod decorated with subxt attribute ( #721 )
...
* refactor: Simplify collecting type substitutes
* Simplify ItemMod::from
* Preserve inner Rust items when expanding the subxt::subxt macro
* No named lifetimes
* Update codegen/src/api/mod.rs
Co-authored-by: Andrew Jones <ascjones@gmail.com >
* Move passing UI tests under `ui_tests`
Co-authored-by: Andrew Jones <ascjones@gmail.com >
2022-11-23 12:28:49 +01:00