Skip to content

Commit

Permalink
Fix core compilation bug when using stable rust version in cloud build
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet committed Sep 1, 2023
1 parent 43c53e5 commit 4a6a202
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.71.1
toolchain: stable

- name: checkout
uses: actions/checkout@v3
Expand Down
94 changes: 73 additions & 21 deletions core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ qdrant-client = "1.4"
tower-http = {version = "0.4", features = ["full"]}
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
deno_core = "0.181"
deno_core = "0.197"
3 changes: 1 addition & 2 deletions core/src/deno/script.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::Result;
use deno_core::{op, Extension, JsRuntime, OpState, ZeroCopyBuf};
use deno_core::{op, Extension, JsRuntime, OpState};
use serde::de::DeserializeOwned;
use serde::Serialize;
use std::borrow::Cow;
Expand Down Expand Up @@ -155,7 +155,6 @@ impl deno_core::Resource for ResultResource {
fn op_return(
state: &mut OpState,
args: serde_json::Value,
_buf: Option<ZeroCopyBuf>,
) -> Result<serde_json::Value, deno_core::error::AnyError> {
let entry = ResultResource { json_value: args };
let resource_table = &mut state.resource_table;
Expand Down

0 comments on commit 4a6a202

Please sign in to comment.