Compare commits

...

6 Commits

Author SHA1 Message Date
renovate[bot]
db96111c37
chore(deps): update rust crate ed25519-dalek to v2.1.1 (#855)
chore(deps): update rust crate ed25519-dalek to v2.1.1

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-08 22:53:11 +07:00
fluencebot
12db38a6ec
chore: release master (#849)
Co-authored-by: Ivan Boldyrev <ivan@cloudless.dev>
2024-07-23 02:43:42 +07:00
Ivan Boldyrev
8454c48558
chore: Rust channel update dedicated to Panamerican Engineer's Day (#851)
* chore: Rust channel update dedicated to panamerican Engineer's Day

It fixes compilation issues with serde.

* chore(deps): update time to time@0.3.36
2024-07-23 01:45:55 +07:00
Ivan Boldyrev
58a5f3046a
fix(value): remove unused code (#850)
* fix(value): remove unused code

It breaks compilation.
2024-07-22 23:53:16 +07:00
Ivan Boldyrev
b684ca0b82
chore: Rust channel update dedicated to panamerican Engineer's Day (#847)
* chore: Rust channel update dedicated to panamerican Engineer's Day

It fixes compilation issues with serde.

* chore(deps): update time to time@0.3.36
2024-07-22 22:16:34 +07:00
Ivan Boldyrev
50b23c6d9f
fix(avm-server): remove unused AVM code (#848)
It breaks compilation on newer rustc versions.
2024-07-22 22:14:24 +07:00
15 changed files with 69 additions and 115 deletions

View File

@ -2,21 +2,21 @@
"air": "0.64.1",
"air-interpreter": "0.64.1",
"avm/interface": "0.32.1",
"avm/server": "0.38.0",
"avm/server": "0.38.1",
"avm/client": "0.64.1",
"crates/air-lib/air-parser": "0.12.0",
"crates/air-lib/execution-info-collector": "0.7.14",
"crates/air-lib/interpreter-cid": "0.9.0",
"crates/air-lib/interpreter-data": "0.17.2",
"crates/air-lib/test-utils": "0.18.2",
"crates/air-lib/test-utils": "0.18.3",
"crates/air-lib/trace-handler": "0.5.12",
"crates/air-lib/utils": "0.3.0",
"crates/beautifier": "0.5.0",
"crates/data-store": "0.7.9",
"crates/testing-framework": "0.11.2",
"crates/testing-framework": "0.11.3",
"tools/cli/aquavm-air-cli": "0.2.6",
"tools/wasm/air-beautify-wasm": "0.4.0",
"tools/cli/air": "0.9.1",
"tools/cli/air": "0.9.2",
"crates/air-lib/lambda/ast": "0.1.0",
"crates/air-lib/lambda/parser": "0.1.0",
"crates/air-lib/log-targets": "0.1.0",

40
Cargo.lock generated
View File

@ -214,7 +214,7 @@ version = "0.1.0"
[[package]]
name = "air-test-utils"
version = "0.18.2"
version = "0.18.3"
dependencies = [
"air-interpreter-cid",
"air-interpreter-data",
@ -225,7 +225,7 @@ dependencies = [
"aquavm-air",
"avm-interface",
"avm-server",
"ed25519-dalek 2.1.0",
"ed25519-dalek 2.1.1",
"fluence-keypair",
"futures",
"maplit",
@ -244,7 +244,7 @@ dependencies = [
[[package]]
name = "air-testing-framework"
version = "0.11.2"
version = "0.11.3"
dependencies = [
"air-interpreter-signatures",
"air-test-utils",
@ -398,7 +398,7 @@ dependencies = [
"concat-idents",
"criterion 0.3.6",
"csv",
"ed25519-dalek 2.1.0",
"ed25519-dalek 2.1.1",
"env_logger",
"fluence-app-service",
"fluence-keypair",
@ -424,7 +424,7 @@ dependencies = [
[[package]]
name = "aquavm-air-cli"
version = "0.9.1"
version = "0.9.2"
dependencies = [
"air-beautifier",
"air-interpreter-data",
@ -721,7 +721,7 @@ dependencies = [
[[package]]
name = "avm-server"
version = "0.38.0"
version = "0.38.1"
dependencies = [
"air-interpreter-interface",
"air-interpreter-sede",
@ -2060,9 +2060,9 @@ dependencies = [
[[package]]
name = "ed25519-dalek"
version = "2.1.0"
version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f628eaec48bfd21b865dc2950cfa014450c01d2fa2b69a86c2fd5844ec523c0"
checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871"
dependencies = [
"curve25519-dalek 4.1.2",
"ed25519 2.2.3",
@ -2330,7 +2330,7 @@ checksum = "273ecbe8b6757f46e9d2b61f56ac636f27defa88aebc17a4fd6a7b78bf84cca3"
dependencies = [
"asn1_der 0.6.3",
"bs58 0.5.0",
"ed25519-dalek 2.1.0",
"ed25519-dalek 2.1.1",
"eyre",
"lazy_static",
"libp2p-identity",
@ -3122,7 +3122,7 @@ checksum = "999ec70441b2fb35355076726a6bc466c932e9bdc66f6a11c6c0aa17c7ab9be0"
dependencies = [
"asn1_der 0.7.6",
"bs58 0.5.0",
"ed25519-dalek 2.1.0",
"ed25519-dalek 2.1.1",
"hkdf",
"libsecp256k1",
"multihash 0.19.1",
@ -4166,6 +4166,12 @@ dependencies = [
"num-traits",
]
[[package]]
name = "num-conv"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
[[package]]
name = "num-integer"
version = "0.1.45"
@ -5319,7 +5325,7 @@ dependencies = [
"serde",
"serde_json",
"serde_with_macros",
"time 0.3.30",
"time 0.3.36",
]
[[package]]
@ -5801,12 +5807,13 @@ dependencies = [
[[package]]
name = "time"
version = "0.3.30"
version = "0.3.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4a34ab300f2dee6e562c10a046fc05e358b29f9bf92277f30c3c8d82275f6f5"
checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
dependencies = [
"deranged",
"itoa",
"num-conv",
"powerfmt",
"serde",
"time-core",
@ -5821,10 +5828,11 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
[[package]]
name = "time-macros"
version = "0.2.15"
version = "0.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20"
checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
dependencies = [
"num-conv",
"time-core",
]
@ -6027,7 +6035,7 @@ dependencies = [
"sharded-slab",
"smallvec",
"thread_local",
"time 0.3.30",
"time 0.3.36",
"tracing",
"tracing-core",
"tracing-serde",

View File

@ -22,6 +22,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* avm-data-store bumped from 0.7.4 to 0.7.5
* avm-interface bumped from 0.30.0 to 0.31.0
## [0.38.1](https://github.com/fluencelabs/aquavm/compare/avm-server-v0.38.0...avm-server-v0.38.1) (2024-07-22)
### Bug Fixes
* **avm-server:** remove unused AVM code ([#848](https://github.com/fluencelabs/aquavm/issues/848)) ([50b23c6](https://github.com/fluencelabs/aquavm/commit/50b23c6d9f5746acbddbbe93e3d1c02d7582a56a))
## [0.38.0](https://github.com/fluencelabs/aquavm/compare/avm-server-v0.37.0...avm-server-v0.38.0) (2024-04-15)

View File

@ -1,7 +1,7 @@
[package]
name = "avm-server"
description = "Fluence AIR VM"
version = "0.38.0"
version = "0.38.1"
authors = ["Fluence DAO", "Cloudless Labs"]
edition = "2021"
license = "AGPL-3.0-only"

View File

@ -1,68 +0,0 @@
/*
* AquaVM Workflow Engine
*
* Copyright (C) 2024 Fluence DAO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation version 3 of the
* License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
pub struct AquaVMRuntimeLimits {
/// AIR script size limit.
pub air_size_limit: u64,
/// Particle data size limit.
pub particle_size_limit: u64,
/// Service call result size limit.
pub call_result_size_limit: u64,
/// Knob to enable/disable RAM consumption hard limits in AquaVM.
pub hard_limit_enabled: bool,
}
#[derive(Default)]
pub struct AVMRuntimeLimits {
pub air_size_limit: Option<u64>,
pub particle_size_limit: Option<u64>,
pub call_result_size_limit: Option<u64>,
pub hard_limit_enabled: bool,
}
impl AquaVMRuntimeLimits {
pub fn new(
air_size_limit: u64,
particle_size_limit: u64,
call_result_size_limit: u64,
hard_limit_enabled: bool,
) -> Self {
Self {
air_size_limit,
particle_size_limit,
call_result_size_limit,
hard_limit_enabled,
}
}
}
impl From<AVMRuntimeLimits> for AquaVMRuntimeLimits {
fn from(value: AVMRuntimeLimits) -> Self {
use air_interpreter_interface::MAX_AIR_SIZE;
use air_interpreter_interface::MAX_CALL_RESULT_SIZE;
use air_interpreter_interface::MAX_PARTICLE_SIZE;
AquaVMRuntimeLimits::new(
value.air_size_limit.unwrap_or(MAX_AIR_SIZE),
value.particle_size_limit.unwrap_or(MAX_PARTICLE_SIZE),
value.call_result_size_limit.unwrap_or(MAX_CALL_RESULT_SIZE),
value.hard_limit_enabled,
)
}
}

View File

@ -28,7 +28,6 @@
)]
mod avm;
mod avm_runtime_limits;
mod config;
mod errors;
mod runner;

View File

@ -48,7 +48,6 @@
*/
use super::JValue;
use core::fmt::{self, Display};
use core::ops;
use std::string::String;
@ -113,22 +112,6 @@ mod private {
impl<'a, T> Sealed for &'a T where T: ?Sized + Sealed {}
}
/// Used in panic messages.
struct Type<'a>(&'a JValue);
impl<'a> Display for Type<'a> {
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
match *self.0 {
JValue::Null => formatter.write_str("null"),
JValue::Bool(_) => formatter.write_str("boolean"),
JValue::Number(_) => formatter.write_str("number"),
JValue::String(_) => formatter.write_str("string"),
JValue::Array(_) => formatter.write_str("array"),
JValue::Object(_) => formatter.write_str("object"),
}
}
}
// The usual semantics of Index is to panic on invalid indexing.
//
// That said, the usual semantics are for things like Vec and BTreeMap which

View File

@ -83,6 +83,10 @@
* dependencies
* aquavm-air bumped from 0.64.0 to 0.64.1
* The following workspace dependencies were updated
* dependencies
* avm-server bumped from 0.38.0 to 0.38.1
## [0.18.0](https://github.com/fluencelabs/aquavm/compare/air-test-utils-v0.17.1...air-test-utils-v0.18.0) (2024-04-15)

View File

@ -1,6 +1,6 @@
[package]
name = "air-test-utils"
version = "0.18.2"
version = "0.18.3"
description = "Test utils for the AIR interpreter"
authors = ["Fluence DAO", "Cloudless Labs"]
edition = "2021"
@ -22,7 +22,7 @@ air-interpreter-interface = { version = "0.19.0", path = "../interpreter-interfa
air-interpreter-sede = { version = "0.1.0", path = "../interpreter-sede" }
air-interpreter-signatures = { version = "0.1.7", path = "../interpreter-signatures" }
avm-interface = { version = "0.32.1", path = "../../../avm/interface" }
avm-server = { version = "0.38.0", path = "../../../avm/server" }
avm-server = { version = "0.38.1", path = "../../../avm/server" }
marine-rs-sdk = "0.14.0"
object-pool = "0.5.4"

View File

@ -87,6 +87,10 @@
* dependencies
* air-test-utils bumped from 0.18.1 to 0.18.2
* The following workspace dependencies were updated
* dependencies
* air-test-utils bumped from 0.18.2 to 0.18.3
## [0.11.0](https://github.com/fluencelabs/aquavm/compare/air-testing-framework-v0.10.1...air-testing-framework-v0.11.0) (2024-04-15)

View File

@ -1,6 +1,6 @@
[package]
name = "air-testing-framework"
version = "0.11.2"
version = "0.11.3"
description = "AquaVM testing framework"
authors = ["Fluence DAO", "Cloudless Labs"]
edition = "2021"
@ -14,7 +14,7 @@ name = "air_test_framework"
path = "src/lib.rs"
[dependencies]
air-test-utils = { version = "0.18.2", path = "../air-lib/test-utils" }
air-test-utils = { version = "0.18.3", path = "../air-lib/test-utils" }
aquavm-air-parser = { version = "0.12.0", path = "../air-lib/air-parser" }
itertools = "0.10.5"

View File

@ -1,6 +1,6 @@
[toolchain]
# AquaVM can be built with "stable", "nightly" required only to build Marine tests
channel = "nightly-2024-02-15"
channel = "nightly-2024-07-21"
components = [ "rustfmt", "clippy", "rust-src", "llvm-tools-preview" ]
targets = [ "x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "wasm32-wasi", "wasm32-unknown-unknown" ]
profile = "minimal"

View File

@ -148,6 +148,21 @@
* aquavm-air bumped from 0.64.0 to 0.64.1
* air-test-utils bumped from 0.18.1 to 0.18.2
## [0.9.2](https://github.com/fluencelabs/aquavm/compare/aquavm-air-cli-v0.9.1...aquavm-air-cli-v0.9.2) (2024-07-22)
### Bug Fixes
* **value:** remove unused code ([#850](https://github.com/fluencelabs/aquavm/issues/850)) ([58a5f30](https://github.com/fluencelabs/aquavm/commit/58a5f3046adfce9a8c0db6a04afee55318ab600a))
### Dependencies
* The following workspace dependencies were updated
* dependencies
* avm-server bumped from 0.38.0 to 0.38.1
* air-test-utils bumped from 0.18.2 to 0.18.3
## [0.9.0](https://github.com/fluencelabs/aquavm/compare/aquavm-air-cli-v0.8.0...aquavm-air-cli-v0.9.0) (2024-06-26)

View File

@ -1,6 +1,6 @@
[package]
name = "aquavm-air-cli"
version = "0.9.1"
version = "0.9.2"
edition = "2021"
description = "AIR execution and printing tool"
authors = ["Fluence DAO", "Cloudless Labs"]
@ -17,8 +17,8 @@ avm-interface = { version = "0.32.1", path = "../../../avm/interface" }
air-interpreter-interface = { version = "0.19.0", path = "../../../crates/air-lib/interpreter-interface", default-features = false }
air-interpreter-data = { version = "0.17.2", path = "../../../crates/air-lib/interpreter-data" }
air-interpreter-sede = { version = "0.1.0", path = "../../../crates/air-lib/interpreter-sede", default-features = false }
avm-server = { version = "0.38.0", path = "../../../avm/server" }
air-test-utils = { version = "0.18.2",path = "../../../crates/air-lib/test-utils", optional = true }
avm-server = { version = "0.38.1", path = "../../../avm/server" }
air-test-utils = { version = "0.18.3",path = "../../../crates/air-lib/test-utils", optional = true }
clap = { version = "4.4.7", features = ["derive", "env"] }
eyre = "0.6.11"

View File

@ -28,6 +28,8 @@
unused_unsafe,
unreachable_patterns
)]
// risc0 feature flag is commented out, but the code remains for future experiments
#![allow(unexpected_cfgs)]
mod beautify;
mod data;