-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform the protobuf encoding and decoding manually (#2326)
* Perform the protobuf encoding and decoding manually * Link to noise protobuf * Remove unused function to fix warning * Restore libc6-dev-i386 on 32bits target CI * Restore cmake in wasm-node-size-diff step * Remove more traces of cmake * Forgot a protobuf file * Add values for with_capacity * Rustfmt * Add tests * Rustfmt
- Loading branch information
Showing
26 changed files
with
1,009 additions
and
933 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 |
---|---|---|
|
@@ -29,7 +29,6 @@ jobs: | |
container: | ||
image: rust:1.60 | ||
steps: | ||
- run: apt-get update && apt install -y cmake # For the `prost-build` library | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v1 | ||
- run: RUSTFLAGS=-Dwarnings cargo test --locked --workspace --all-features | ||
|
@@ -39,7 +38,7 @@ jobs: | |
container: | ||
image: rust:1.60 | ||
steps: | ||
- run: apt-get update && apt install -y libc6-dev-i386 && apt install -y cmake # For the `prost-build` library | ||
- run: apt-get update && apt install -y libc6-dev-i386 | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v1 | ||
- run: rustup target add i686-unknown-linux-gnu | ||
|
@@ -50,7 +49,7 @@ jobs: | |
container: | ||
image: rust:1.60 | ||
steps: | ||
- run: apt-get update && apt install -y binaryen && apt install -y cmake # For `wasm-opt` and the `prost-build` library | ||
- run: apt-get update && apt install -y binaryen # For `wasm-opt` | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: actions/[email protected] | ||
|
@@ -63,7 +62,7 @@ jobs: | |
container: | ||
image: rust:1.60 | ||
steps: | ||
- run: apt-get update && apt install -y cmake # For the `prost-build` library | ||
- run: apt-get update && apt install -y cmake # TODO: remove; temporarily needed to build the `prost-build` library in the "before" comparison | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Necessary to fetch pull request base below | ||
|
@@ -98,7 +97,6 @@ jobs: | |
container: | ||
image: rust:1.60 | ||
steps: | ||
- run: apt-get update && apt install -y cmake # For the `prost-build` library | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v1 | ||
- run: RUSTFLAGS=-Dwarnings cargo check --package smoldot --locked --no-default-features | ||
|
@@ -111,7 +109,6 @@ jobs: | |
container: | ||
image: rust:1.60 | ||
steps: | ||
- run: apt-get update && apt install -y cmake # For the `prost-build` library | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v1 | ||
- run: cargo doc --verbose --workspace --all-features --no-deps --document-private-items | ||
|
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 |
---|---|---|
|
@@ -55,7 +55,7 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
node-version: 14 | ||
- run: apt-get update && apt install -y binaryen && apt install -y cmake # For `wasm-opt` and the `prost-build` library | ||
- run: apt-get update && apt install -y binaryen # For `wasm-opt` | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
# Ideally we don't want to install any toolchain, but the GH action doesn't support this. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ LABEL maintainer "Pierre Krieger <[email protected]>" | |
COPY ./../.. /build | ||
WORKDIR /build | ||
|
||
RUN apt-get update && apt-get install -y musl-tools cmake | ||
RUN apt-get update && apt-get install -y musl-tools | ||
RUN rustup target add x86_64-unknown-linux-musl | ||
RUN cargo build --target x86_64-unknown-linux-musl --package smoldot-full-node --release --verbose | ||
|
||
|
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.