mirror of
https://github.com/fluencelabs/examples
synced 2025-06-02 12:41:19 +00:00
* upadte demo * init repo * update curl params * add string sub alteantive, update aqua * update * bump versions, remove unused files * update aqua * Add section 5: Decentralized Oracles With Fluence And Aqua (#35) * init quickstart-5 * update consensus calc, tests * update serivce, aqua * update service and deploymnt * update aqua, air * add seq version * update aquq * update examples * add fold, no fold to aqua * update par * update service, aqua with err value * update tests with err_val * add connect check, remove peer.connect funcs * update Readme * move body to gitbook * update fldist run_air to aqua run * bump versions * add fldist disclaimer, update version in fluence js client * update services, fjs node * update urls * update dialer * change multiaddr * Add 'tcp' to multiaddr * Aqua examples: checking npm version in aqua-ipfs-integration (#37) * update service id * update signer and services, readme * add functon * move repo * update docs * update Marine section * Update README.md * update error mapping * remove contract.rs Co-authored-by: folex <0xdxdy@gmail.com> Co-authored-by: Pavel <Pavel.Murygin@gmail.com>
40 lines
1.0 KiB
Rust
40 lines
1.0 KiB
Rust
/*
|
|
* Copyright 2021 Fluence Labs Limited
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#![allow(improper_ctypes)]
|
|
|
|
use marine_rs_sdk::marine;
|
|
use marine_rs_sdk::module_manifest;
|
|
use marine_rs_sdk::MountedBinaryResult;
|
|
use marine_rs_sdk::WasmLoggerBuilder;
|
|
|
|
module_manifest!();
|
|
|
|
pub fn main() {
|
|
WasmLoggerBuilder::new().build().ok();
|
|
}
|
|
|
|
#[marine]
|
|
pub fn curl_request(cmd: Vec<String>) -> MountedBinaryResult {
|
|
curl(cmd)
|
|
}
|
|
|
|
#[marine]
|
|
#[link(wasm_import_module = "host")]
|
|
extern "C" {
|
|
fn curl(cmd: Vec<String>) -> MountedBinaryResult;
|
|
}
|