update faas & app-service (#257)

This commit is contained in:
Valery Antopol 2022-04-26 13:12:10 +03:00 committed by GitHub
parent f175b31ffd
commit 298d796c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 248 deletions

299
Cargo.lock generated
View File

@ -216,12 +216,12 @@ version = "0.1.0"
[[package]] [[package]]
name = "avm-server" name = "avm-server"
version = "0.20.0" version = "0.20.1"
dependencies = [ dependencies = [
"air-interpreter-interface", "air-interpreter-interface",
"avm-data-store", "avm-data-store",
"eyre", "eyre",
"fluence-faas 0.16.0", "fluence-faas",
"log", "log",
"maplit", "maplit",
"parking_lot 0.11.2", "parking_lot 0.11.2",
@ -778,13 +778,13 @@ checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d"
[[package]] [[package]]
name = "fluence-app-service" name = "fluence-app-service"
version = "0.10.2" version = "0.17.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "01c66660de99826038c5ec4ad0f5dccf10b1c8a15924aeaa5315ab49d718bfc9"
dependencies = [ dependencies = [
"fluence-faas 0.9.3", "fluence-faas",
"log", "log",
"maplit", "maplit",
"marine-min-it-version",
"serde", "serde",
"serde_derive", "serde_derive",
"serde_json", "serde_json",
@ -794,46 +794,19 @@ dependencies = [
[[package]] [[package]]
name = "fluence-faas" name = "fluence-faas"
version = "0.9.3" version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "2abf1682505636b8c3436a2787df7bbae426d4f5277f5ae4ad193032b318b7f1"
dependencies = [
"cmd_lib",
"itertools 0.9.0",
"log",
"marine-module-interface 0.1.6",
"marine-rs-sdk",
"marine-rs-sdk-main",
"marine-runtime 0.7.2",
"marine-utils 0.2.0",
"safe-transmute",
"serde",
"serde_derive",
"serde_json",
"thiserror",
"toml",
"wasmer-interface-types-fl 0.20.2",
"wasmer-runtime-core-fl",
"wasmer-runtime-fl",
"wasmer-wasi-fl",
]
[[package]]
name = "fluence-faas"
version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d382277889aa36f38cb861e40f91d19e9fe87325d3719a62a18e0d725e5064cc"
dependencies = [ dependencies = [
"bytesize", "bytesize",
"cmd_lib", "cmd_lib",
"it-json-serde", "it-json-serde",
"itertools 0.9.0", "itertools 0.9.0",
"log", "log",
"marine-module-interface 0.4.0", "marine-module-interface",
"marine-rs-sdk", "marine-rs-sdk",
"marine-rs-sdk-main", "marine-rs-sdk-main",
"marine-runtime 0.14.0", "marine-runtime",
"marine-utils 0.4.0", "marine-utils",
"safe-transmute", "safe-transmute",
"serde", "serde",
"serde_derive", "serde_derive",
@ -841,7 +814,7 @@ dependencies = [
"serde_with", "serde_with",
"thiserror", "thiserror",
"toml", "toml",
"wasmer-interface-types-fl 0.23.0", "wasmer-interface-types-fl",
"wasmer-runtime-core-fl", "wasmer-runtime-core-fl",
"wasmer-runtime-fl", "wasmer-runtime-fl",
"wasmer-wasi-fl", "wasmer-wasi-fl",
@ -850,8 +823,7 @@ dependencies = [
[[package]] [[package]]
name = "fluence-it-types" name = "fluence-it-types"
version = "0.3.1" version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/interface-types?branch=bug/allocating-more-than-2gb#dd4d6b7a248e00d94eb9b6ec85d01bc53359833d"
checksum = "047f670b4807cab8872550a607b1515daff08b3e3bb7576ce8f45971fd811a4e"
dependencies = [ dependencies = [
"it-to-bytes", "it-to-bytes",
"nom", "nom",
@ -1055,35 +1027,21 @@ dependencies = [
[[package]] [[package]]
name = "it-json-serde" name = "it-json-serde"
version = "0.3.0" version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "d11e4c01d0c15e4126541261b2ab17375da37d19e5d19bcea549ba236e8b4a82"
dependencies = [ dependencies = [
"serde", "serde",
"serde_derive", "serde_derive",
"serde_json", "serde_json",
"serde_with", "serde_with",
"thiserror", "thiserror",
"wasmer-interface-types-fl 0.23.0", "wasmer-interface-types-fl",
]
[[package]]
name = "it-lilo"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "99ccf40e1e08f6f47ffbafe3cfb2e3adb721ddde80b178240f038d07dc9652fb"
dependencies = [
"fluence-it-types",
"log",
"paste",
"thiserror",
] ]
[[package]] [[package]]
name = "it-lilo" name = "it-lilo"
version = "0.4.0" version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/interface-types?branch=bug/allocating-more-than-2gb#dd4d6b7a248e00d94eb9b6ec85d01bc53359833d"
checksum = "6a39dffcc610873b4c39b0fe04acac5ea77cf2eda9ed3d8a3b970b536d4e24c8"
dependencies = [ dependencies = [
"fluence-it-types", "fluence-it-types",
"it-memory-traits", "it-memory-traits",
@ -1095,8 +1053,7 @@ dependencies = [
[[package]] [[package]]
name = "it-memory-traits" name = "it-memory-traits"
version = "0.3.0" version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/interface-types?branch=bug/allocating-more-than-2gb#dd4d6b7a248e00d94eb9b6ec85d01bc53359833d"
checksum = "ca1799ed89e51a192e80a14ab14589044de9e58f0be86087ae8699cbe59f5c40"
dependencies = [ dependencies = [
"thiserror", "thiserror",
] ]
@ -1104,8 +1061,7 @@ dependencies = [
[[package]] [[package]]
name = "it-to-bytes" name = "it-to-bytes"
version = "0.1.0" version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/interface-types?branch=bug/allocating-more-than-2gb#dd4d6b7a248e00d94eb9b6ec85d01bc53359833d"
checksum = "729c74bb4236418898a219c6d96f14cba77456dd7c04a2e99e65e9c643709b56"
[[package]] [[package]]
name = "itertools" name = "itertools"
@ -1245,95 +1201,45 @@ checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
[[package]] [[package]]
name = "marine-it-generator" name = "marine-it-generator"
version = "0.5.6" version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "890b228b9151e9dff213501986f564445a2f9ca5a706088b5d900f5ecf67f7e7"
dependencies = [ dependencies = [
"cargo_toml", "cargo_toml",
"it-lilo 0.1.0", "it-lilo",
"marine-it-parser 0.6.8", "marine-it-parser",
"marine-macro-impl", "marine-macro-impl",
"once_cell", "once_cell",
"serde", "serde",
"serde_json", "serde_json",
"thiserror", "thiserror",
"walrus", "walrus",
"wasmer-interface-types-fl 0.20.2", "wasmer-interface-types-fl",
]
[[package]]
name = "marine-it-generator"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ebdfd1c29b954fc538e03ba9a7e95a5159175fafa41929587e7fc7bb950f02c"
dependencies = [
"cargo_toml",
"it-lilo 0.4.0",
"marine-it-parser 0.9.0",
"marine-macro-impl",
"once_cell",
"serde",
"serde_json",
"thiserror",
"walrus",
"wasmer-interface-types-fl 0.23.0",
] ]
[[package]] [[package]]
name = "marine-it-interfaces" name = "marine-it-interfaces"
version = "0.4.1" version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "42e229143e72ba20e754de4766ff0d02e0cf176001f7471593f82b16c72dc26d"
dependencies = [ dependencies = [
"multimap", "multimap",
"wasmer-interface-types-fl 0.20.2", "wasmer-interface-types-fl",
]
[[package]]
name = "marine-it-interfaces"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96669170af512d5e204ac3e7ce73691805120b95abfe9e7d247379128be5d9c7"
dependencies = [
"multimap",
"wasmer-interface-types-fl 0.23.0",
] ]
[[package]] [[package]]
name = "marine-it-parser" name = "marine-it-parser"
version = "0.6.8" version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "edd97bd85072fc540763769be153a7c8ee83391e668b37ef96d6c48decec2cd5"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"itertools 0.10.3", "itertools 0.10.3",
"marine-it-interfaces 0.4.1", "marine-it-interfaces",
"marine-module-interface 0.1.6", "marine-module-interface",
"nom", "nom",
"semver 0.11.0", "semver 0.11.0",
"serde", "serde",
"thiserror", "thiserror",
"walrus", "walrus",
"wasmer-interface-types-fl 0.20.2", "wasmer-interface-types-fl",
"wasmer-runtime-core-fl",
]
[[package]]
name = "marine-it-parser"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07385efa5f6779143db076da84fcc786db6060815f828a050a83687d7c58e71f"
dependencies = [
"anyhow",
"itertools 0.10.3",
"marine-it-interfaces 0.7.0",
"marine-module-interface 0.4.0",
"nom",
"semver 0.11.0",
"serde",
"thiserror",
"walrus",
"wasmer-interface-types-fl 0.23.0",
"wasmer-runtime-core-fl", "wasmer-runtime-core-fl",
] ]
@ -1364,8 +1270,7 @@ dependencies = [
[[package]] [[package]]
name = "marine-min-it-version" name = "marine-min-it-version"
version = "0.1.0" version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "890269754a531810b8c16cf00e6161e01c1183ef7ff4ff20117656316e9fdbd1"
dependencies = [ dependencies = [
"once_cell", "once_cell",
"semver 0.11.0", "semver 0.11.0",
@ -1374,8 +1279,7 @@ dependencies = [
[[package]] [[package]]
name = "marine-module-info-parser" name = "marine-module-info-parser"
version = "0.2.2" version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "0ec8f4ab2eeeb5c1d66d9b56fe6b0b5bf39820aa8cc2f1d7be42bdf95654d529"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"chrono", "chrono",
@ -1389,37 +1293,18 @@ dependencies = [
[[package]] [[package]]
name = "marine-module-interface" name = "marine-module-interface"
version = "0.1.6" version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "06bc36ef268bf7436916f1fa9b0c84104692a717ea5eef3c90b9f25c3407f6b7"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"itertools 0.10.3", "itertools 0.10.3",
"marine-it-interfaces 0.4.1", "marine-it-interfaces",
"nom", "nom",
"semver 0.11.0", "semver 0.11.0",
"serde", "serde",
"thiserror", "thiserror",
"walrus", "walrus",
"wasmer-interface-types-fl 0.20.2", "wasmer-interface-types-fl",
"wasmer-runtime-core-fl",
]
[[package]]
name = "marine-module-interface"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d8b91a2c8d7905bad5d8a787a5aaab8fe9ec9efabead2ed031259c385d0b787"
dependencies = [
"anyhow",
"itertools 0.10.3",
"marine-it-interfaces 0.7.0",
"nom",
"semver 0.11.0",
"serde",
"thiserror",
"walrus",
"wasmer-interface-types-fl 0.23.0",
] ]
[[package]] [[package]]
@ -1447,62 +1332,31 @@ dependencies = [
[[package]] [[package]]
name = "marine-runtime" name = "marine-runtime"
version = "0.7.2" version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "983262d394c59d4321b141e303eb55015bc412f319d54bbad7f253e4583253b2"
dependencies = [
"anyhow",
"boolinator",
"it-lilo 0.1.0",
"log",
"marine-it-generator 0.5.6",
"marine-it-interfaces 0.4.1",
"marine-it-parser 0.6.8",
"marine-module-info-parser",
"marine-module-interface 0.1.6",
"marine-utils 0.2.0",
"multimap",
"once_cell",
"parity-wasm 0.41.0",
"paste",
"pwasm-utils 0.12.0",
"semver 0.11.0",
"serde",
"thiserror",
"wasmer-interface-types-fl 0.20.2",
"wasmer-runtime-core-fl",
"wasmer-runtime-fl",
"wasmer-wasi-fl",
]
[[package]]
name = "marine-runtime"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d30e6f7fc6921497e1b7aba3737972fdae856d5c6a3f50eb4781ec9b40ec41b4"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"boolinator", "boolinator",
"bytesize", "bytesize",
"it-lilo 0.4.0", "it-lilo",
"it-memory-traits", "it-memory-traits",
"log", "log",
"marine-it-generator 0.8.0", "marine-it-generator",
"marine-it-interfaces 0.7.0", "marine-it-interfaces",
"marine-it-parser 0.9.0", "marine-it-parser",
"marine-min-it-version", "marine-min-it-version",
"marine-module-info-parser", "marine-module-info-parser",
"marine-module-interface 0.4.0", "marine-module-interface",
"marine-utils 0.4.0", "marine-utils",
"multimap", "multimap",
"once_cell", "once_cell",
"parity-wasm 0.42.2", "parity-wasm",
"paste", "paste",
"pwasm-utils 0.18.2", "pwasm-utils",
"semver 0.11.0", "semver 0.11.0",
"serde", "serde",
"thiserror", "thiserror",
"wasmer-interface-types-fl 0.23.0", "wasmer-interface-types-fl",
"wasmer-runtime-core-fl", "wasmer-runtime-core-fl",
"wasmer-runtime-fl", "wasmer-runtime-fl",
"wasmer-wasi-fl", "wasmer-wasi-fl",
@ -1518,17 +1372,10 @@ dependencies = [
"quote", "quote",
] ]
[[package]]
name = "marine-utils"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8dc5838acba84ce4d802d672afd0814fae0ae7098021ae5b06d975e70d09f812"
[[package]] [[package]]
name = "marine-utils" name = "marine-utils"
version = "0.4.0" version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/marine?branch=update-it#2c920a1fe9aaeda5f4ef288f073973b685269506"
checksum = "1cff7a23a7f3925a712c34dfb9cd87994012d7743f016fd1533e12ab5a8335ca"
[[package]] [[package]]
name = "memchr" name = "memchr"
@ -1663,12 +1510,6 @@ dependencies = [
"winapi", "winapi",
] ]
[[package]]
name = "parity-wasm"
version = "0.41.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ddfc878dac00da22f8f61e7af3157988424567ab01d9920b962ef7dcbd7cd865"
[[package]] [[package]]
name = "parity-wasm" name = "parity-wasm"
version = "0.42.2" version = "0.42.2"
@ -1857,17 +1698,6 @@ dependencies = [
"unicode-xid", "unicode-xid",
] ]
[[package]]
name = "pwasm-utils"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f7a12f176deee919f4ba55326ee17491c8b707d0987aed822682c821b660192"
dependencies = [
"byteorder",
"log",
"parity-wasm 0.41.0",
]
[[package]] [[package]]
name = "pwasm-utils" name = "pwasm-utils"
version = "0.18.2" version = "0.18.2"
@ -1876,7 +1706,7 @@ checksum = "880b3384fb00b8f6ecccd5d358b93bd2201900ae3daad213791d1864f6441f5c"
dependencies = [ dependencies = [
"byteorder", "byteorder",
"log", "log",
"parity-wasm 0.42.2", "parity-wasm",
] ]
[[package]] [[package]]
@ -2563,32 +2393,11 @@ dependencies = [
[[package]] [[package]]
name = "wasmer-interface-types-fl" name = "wasmer-interface-types-fl"
version = "0.20.2" version = "0.23.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/fluencelabs/interface-types?branch=bug/allocating-more-than-2gb#dd4d6b7a248e00d94eb9b6ec85d01bc53359833d"
checksum = "14ba3b5a07989987994b96bf5cc7ac2947005f9ff6123d71b7064232f07d28fa"
dependencies = [ dependencies = [
"fluence-it-types", "fluence-it-types",
"it-lilo 0.1.0", "it-lilo",
"it-to-bytes",
"itertools 0.10.3",
"log",
"nom",
"safe-transmute",
"semver 0.11.0",
"serde",
"serde_json",
"thiserror",
"wast",
]
[[package]]
name = "wasmer-interface-types-fl"
version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1246e98bc1798552556d4ded306c37cbf73b3ffb52183d2605c0129f58fcc98a"
dependencies = [
"fluence-it-types",
"it-lilo 0.4.0",
"it-memory-traits", "it-memory-traits",
"it-to-bytes", "it-to-bytes",
"itertools 0.10.3", "itertools 0.10.3",

View File

@ -32,3 +32,13 @@ panic = "unwind"
[patch.crates-io] [patch.crates-io]
polyplets = { path = "crates/air-lib/polyplets" } polyplets = { path = "crates/air-lib/polyplets" }
it-lilo = {version = "0.4.0", git = "https://github.com/fluencelabs/interface-types", branch = "bug/allocating-more-than-2gb"}
fluence-it-types = {version = "0.3.1", git = "https://github.com/fluencelabs/interface-types", branch = "bug/allocating-more-than-2gb"}
it-memory-traits = {version = "0.3.0", git = "https://github.com/fluencelabs/interface-types", branch = "bug/allocating-more-than-2gb"}
wasmer-interface-types-fl = {version = "0.23.1", git = "https://github.com/fluencelabs/interface-types", branch = "bug/allocating-more-than-2gb"}
marine-runtime = {version = "0.14.1", git = "https://github.com/fluencelabs/marine", branch = "update-it"}
fluence-faas = {version = "0.16.1", git = "https://github.com/fluencelabs/marine", branch = "update-it"}
fluence-app-service = {version = "0.17.1", git = "https://github.com/fluencelabs/marine", branch = "update-it"}

View File

@ -44,7 +44,7 @@ wasm-bindgen = "=0.2.65"
[dev_dependencies] [dev_dependencies]
air-test-utils = { path = "../crates/air-lib/test-utils" } air-test-utils = { path = "../crates/air-lib/test-utils" }
fluence-app-service = "0.10.2" fluence-app-service = "0.17.1"
criterion = "0.3.3" criterion = "0.3.3"
csv = "1.1.5" csv = "1.1.5"

View File

@ -1,7 +1,7 @@
[package] [package]
name = "avm-server" name = "avm-server"
description = "Fluence AIR VM" description = "Fluence AIR VM"
version = "0.20.0" version = "0.20.1"
authors = ["Fluence Labs"] authors = ["Fluence Labs"]
edition = "2018" edition = "2018"
license = "Apache-2.0" license = "Apache-2.0"
@ -18,7 +18,7 @@ path = "src/lib.rs"
[dependencies] [dependencies]
air-interpreter-interface = { version = "0.10.0", path = "../../crates/air-lib/interpreter-interface" } air-interpreter-interface = { version = "0.10.0", path = "../../crates/air-lib/interpreter-interface" }
avm-data-store = { version = "0.1.0", path = "../../crates/data-store" } avm-data-store = { version = "0.1.0", path = "../../crates/data-store" }
fluence-faas = "0.16.0" fluence-faas = "0.16.1"
polyplets = { version = "0.2.0", path = "../../crates/air-lib/polyplets" } polyplets = { version = "0.2.0", path = "../../crates/air-lib/polyplets" }
eyre = "0.6.5" eyre = "0.6.5"