Skip to content

Commit

Permalink
fix: lint & fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Jan 31, 2024
1 parent 9b282ae commit 0a11a74
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ runs:
toolchain: ${{ inputs.toolchain }}
targets: ${{ inputs.targets }}
components: ${{ inputs.components }}
- name: Add Targets
if: ${{ inputs.targets }}
run: rustup target add ${{ inputs.targets }}
shell: bash
- uses: Swatinem/rust-cache@v2
14 changes: 7 additions & 7 deletions .github/workflows/jwst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,10 @@ jobs:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2

- name: Install latest nextest release
uses: taiki-e/install-action@nextest
Expand All @@ -416,8 +416,8 @@ jobs:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Setup Rust
uses: ./.github/actions/setup-rust

- name: Install latest nextest release
uses: taiki-e/install-action@nextest
Expand All @@ -435,10 +435,10 @@ jobs:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
toolchain: nightly-2023-05-23
- uses: Swatinem/rust-cache@v2
toolchain: nightly-2023-08-19

- name: fuzzing
working-directory: ./libs/jwst-codec-utils
Expand Down
2 changes: 1 addition & 1 deletion libs/jwst-codec-utils/fuzz/fuzz_targets/apply_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fuzz_target!(|crdt_params: Vec<CRDTParam>| {

let trx = doc.transact_mut();
let binary_from_yrs = trx.encode_update_v1().unwrap();
let doc = jwst_codec::Doc::new_from_binary(binary_from_yrs).unwrap();
let doc = jwst_codec::Doc::try_from_binary_v1(binary_from_yrs).unwrap();
let binary = doc.encode_update_v1().unwrap();
assert_eq!(binary, binary_from_yrs);
});
5 changes: 3 additions & 2 deletions libs/jwst-storage/src/entities/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.6

pub use super::blobs::Entity as Blobs;
#[cfg(feature = "bucket")]
pub use super::bucket_blobs::Entity as BucketBlobs;
pub use super::docs::Entity as Docs;
#[cfg(feature = "image")]
pub use super::optimized_blobs::Entity as OptimizedBlobs;
pub use super::{blobs::Entity as Blobs, docs::Entity as Docs};

0 comments on commit 0a11a74

Please sign in to comment.