-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
23 changed files
with
459 additions
and
622 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,8 @@ jobs: | |
- uses: actions/checkout@v2 | ||
if: ${{ steps.release.outputs.release_created }} | ||
|
||
- name: Install flatbuffers | ||
uses: ./.github/actions/install-flatbuffers | ||
if: ${{ steps.release.outputs.release_created }} | ||
- name: Setup protoc | ||
uses: arduino/[email protected] | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
|
@@ -30,7 +29,7 @@ jobs: | |
toolchain: stable | ||
override: true | ||
|
||
- uses: Swatinem/rust-cache@v1.3.0 | ||
- uses: Swatinem/rust-cache@v2 | ||
if: ${{ steps.release.outputs.release_created }} | ||
|
||
- name: Publish crate | ||
|
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 |
---|---|---|
|
@@ -22,13 +22,8 @@ jobs: | |
override: true | ||
components: rustfmt | ||
|
||
- name: Install flatbuffers | ||
uses: ./.github/actions/install-flatbuffers | ||
|
||
- name: Check format | ||
run: | | ||
flatc -o target/flatbuffers --rust src/world.fbs | ||
rustfmt target/flatbuffers/world_generated.rs | ||
run: | ||
cargo fmt -- --check | ||
|
||
Linting: | ||
|
@@ -46,8 +41,8 @@ jobs: | |
override: true | ||
components: clippy | ||
|
||
- name: Install flatbuffers | ||
uses: ./.github/actions/install-flatbuffers | ||
- name: Setup protoc | ||
uses: arduino/[email protected] | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
|
@@ -95,8 +90,8 @@ jobs: | |
toolchain: stable | ||
override: true | ||
|
||
- name: Install flatbuffers | ||
uses: ./.github/actions/install-flatbuffers | ||
- name: Setup protoc | ||
uses: arduino/[email protected] | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
|
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 |
---|---|---|
|
@@ -12,6 +12,6 @@ perf.* | |
|
||
*.lock | ||
|
||
## Flatbuffers | ||
## Protocolbuffers library | ||
|
||
utils/var |
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 |
---|---|---|
@@ -1,13 +1,6 @@ | ||
// The custom build script, needed as we use flatbuffers. | ||
|
||
use std::path::Path; | ||
// The custom build script, needed as we use prost. | ||
|
||
fn main() { | ||
println!("cargo:rerun-if-changed=src/world.fbs"); | ||
flatc_rust::run(flatc_rust::Args { | ||
inputs: &[Path::new("src/world.fbs")], | ||
out_dir: Path::new("target/flatbuffers/"), | ||
..Default::default() | ||
}) | ||
.expect("flatc"); | ||
println!("cargo:rerun-if-changed=src/db/create/txs/data.proto3"); | ||
prost_build::compile_protos(&["src/db/create/txs/data.proto3"], &["src/"]).unwrap(); | ||
} |
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.