diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4da8856d..1bfd749e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - name: Install rust uses: hecrj/setup-rust-action@v1 with: - rust-version: 1.43.1 + rust-version: 1.44.0 - name: Install clippy and rustfmt run: | rustup component add clippy @@ -33,7 +33,7 @@ jobs: - name: Install Deno uses: denolib/setup-deno@master with: - deno-version: 1.0.5 + deno-version: 1.2.0 - name: Log versions run: | deno --version diff --git a/Cargo.lock b/Cargo.lock index c03424c9..905bc5aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -198,9 +198,9 @@ dependencies = [ [[package]] name = "deno_core" -version = "0.48.3" +version = "0.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4963ddfdb287602928b8847242884840381bb896fba2dda83f7408952451a3eb" +checksum = "7dd484caae7e2e2109c37c01adeaee4d821c7460a594540508b1894b171758c0" dependencies = [ "downcast-rs", "futures 0.3.5", @@ -209,6 +209,7 @@ dependencies = [ "log", "rusty_v8", "serde_json", + "smallvec", "url", ] diff --git a/Cargo.toml b/Cargo.toml index 09986eac..1226f7cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,5 +13,5 @@ bson = "0.14.1" serde_json = "1.0.52" serde = "1.0.106" futures = "0.3.5" -deno_core = "0.48.3" +deno_core = "0.49.0" lazy_static = "1.4.0" diff --git a/deps.ts b/deps.ts index fa24e977..b05fb1b3 100644 --- a/deps.ts +++ b/deps.ts @@ -1 +1 @@ -export { prepare } from "https://deno.land/x/plugin_prepare@v0.6.0/mod.ts"; +export { prepare } from "https://deno.land/x/plugin_prepare@v0.7.0/mod.ts"; diff --git a/src/lib.rs b/src/lib.rs index c6bbc175..5bf8f947 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -105,10 +105,11 @@ pub(crate) fn get_client(client_id: usize) -> Client { map.get(&client_id).unwrap().clone() } -fn op_command(_interface: &mut dyn Interface, data: &[u8], zero_copy: &mut [ZeroCopyBuf]) -> Op { - let args = CommandArgs::new(data); +fn op_command(_interface: &mut dyn Interface, zero_copy: &mut [ZeroCopyBuf]) -> Op { + let (first, rest) = zero_copy.split_first().unwrap(); + let args = CommandArgs::new(first); let args2 = args.clone(); - let command = Command::new(args, zero_copy.to_vec()); + let command = Command::new(args, rest.to_vec()); match args2.command_type { CommandType::ConnectWithOptions => util::sync_op(command::connect_with_options, command), CommandType::ConnectWithUri => util::sync_op(command::connect_with_uri, command), diff --git a/test.deps.ts b/test.deps.ts index 72533d84..f386835c 100644 --- a/test.deps.ts +++ b/test.deps.ts @@ -1,7 +1,7 @@ -export { exists } from "https://deno.land/std@v0.53.0/fs/mod.ts"; +export { exists } from "https://deno.land/std@0.61.0/fs/mod.ts"; export { assert, assertEquals, assertThrows, assertThrowsAsync, -} from "https://deno.land/std@v0.53.0/testing/asserts.ts"; +} from "https://deno.land/std@0.61.0/testing/asserts.ts";