-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make it compile * add rust toolchain * fix CI * fix ci * no need to check tests * fix primitive types * add From * fix scale -bits * clean up * fix CI * remove derive from no_std * fix CI * fix derive feature * do not check tests * add test no std crate * update CI * improve Display * make test no_std compatible * no yet compiling: make derive no_std compatible * fix derive * fix cargo check * fix erive * add doc[hidden] * remove extra vec * fix comment . * add re-export of primitive types * add Display impl to DecodeError * fix unexpected display * udpate testing crate
- Loading branch information
Showing
14 changed files
with
293 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,32 @@ jobs: | |
# we run tests using BitVec<u64,_> which doesn't. | ||
args: --all-features --target wasm32-unknown-unknown | ||
|
||
no_std: | ||
name: Check no_std build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: aarch64-unknown-none | ||
override: true | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
|
||
- name: Check no_std build | ||
uses: actions-rs/[email protected] | ||
with: | ||
command: check | ||
# The aarch64-unknown-none doesn't support `std`, so this | ||
# will fail if the crate is not no_std compatible. | ||
args: --no-default-features --target aarch64-unknown-none --features primitive-types,derive | ||
|
||
fmt: | ||
name: Cargo fmt | ||
runs-on: ubuntu-latest | ||
|
@@ -138,6 +164,12 @@ jobs: | |
command: test | ||
args: --all-targets --workspace | ||
|
||
- name: Cargo test no_std | ||
uses: actions-rs/[email protected] | ||
with: | ||
command: test | ||
args: --all-targets --workspace --no-default-features --features derive,primitive-types | ||
|
||
- name: Cargo test docs | ||
uses: actions-rs/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
members = [ | ||
"scale-decode", | ||
"scale-decode-derive", | ||
"testing/no_std", | ||
] | ||
|
||
[workspace.package] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.