From 1455fd9f4fb1679fa806d4ae56748ff9505ec4f2 Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Thu, 21 Mar 2024 16:05:54 +0100 Subject: [PATCH] bump rust --- Cargo.toml | 2 +- README.md | 4 ++-- adana-db/src/file_lock.rs | 1 + adana-script/src/require_dynamic_lib.rs | 2 +- adana-script/src/tests/foreach.rs | 2 +- rust-toolchain.toml | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 068d486..d8b28ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ description = "namespaces aliases for command lines & basic scripting language" homepage = "https://github.com/nbittich/adana" repository = "https://github.com/nbittich/adana" readme = "README.md" -rust-version = "1.76" +rust-version = "1.77" edition = "2021" license = "MIT" exclude = ["vscode/", "dist/", ".vscode", ".history", ".git", ".github"] diff --git a/README.md b/README.md index ba4c3e5..2d4426c 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ My favorite dish 😋 1. Docker - From the docker hub: - `docker run -it nbittich/adana # latest from master` - - `docker run -it nbittich/adana:v0.17.4 # latest release` + - `docker run -it nbittich/adana:v0.17.8 # latest release` - Manually: - clone the repo - build the docker image: `docker build -t adana .` @@ -384,7 +384,7 @@ If it is not installed yet, you will see instructions on how to install it, e.g: std lib doesn't exist: "/home/nbittich/.local/share/adana/lib/adana-std/fs.so". Try to install it like so: - - wget -P /tmp https://github.com/nbittich/adana-std/releases/download/0.17.0/adana-std.tar.gz + - wget -P /tmp https://github.com/nbittich/adana-std/releases/download/0.17.8/adana-std.tar.gz - mkdir /home/nbittich/.local/share/adana/lib/adana-std && tar xvzf /tmp/adana-std.tar.gz \ -C /home/nbittich/.local/share/adana/lib/adana-std ``` diff --git a/adana-db/src/file_lock.rs b/adana-db/src/file_lock.rs index 2aa2a0a..c3e96c4 100644 --- a/adana-db/src/file_lock.rs +++ b/adana-db/src/file_lock.rs @@ -122,6 +122,7 @@ impl FileLock { let _ = File::options() .write(true) .create(true) + .truncate(true) .open(&self.inner_p) .unwrap(); diff --git a/adana-script/src/require_dynamic_lib.rs b/adana-script/src/require_dynamic_lib.rs index 1aed395..d7161db 100644 --- a/adana-script/src/require_dynamic_lib.rs +++ b/adana-script/src/require_dynamic_lib.rs @@ -1,6 +1,6 @@ #[cfg(not(target_arch = "wasm32"))] const STD_DOWNLOAD_URI: &str = - "https://github.com/nbittich/adana-std/releases/download/0.17.0/adana-std.tar.gz"; + "https://github.com/nbittich/adana-std/releases/download/0.17.8/adana-std.tar.gz"; #[cfg(not(target_arch = "wasm32"))] use std::process::{Command, Stdio}; diff --git a/adana-script/src/tests/foreach.rs b/adana-script/src/tests/foreach.rs index 4f9a265..a1f8aec 100644 --- a/adana-script/src/tests/foreach.rs +++ b/adana-script/src/tests/foreach.rs @@ -371,7 +371,7 @@ fn test_foreach_struct() { let _ = compute(expr, &mut ctx, "N/A").unwrap(); let result = ctx["result"].read().unwrap(); - let _expected = vec![ + let _expected = [ Primitive::String( r#"Id: 0 Key: members Value: ["natalie", "roger", "fred"]"#.into(), ), diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 83a52c3..fcc85b9 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.76" +channel = "1.77"