mirror of
https://github.com/fluencelabs/marine.git
synced 2025-07-31 05:51:56 +00:00
update ipfs-node example
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
modules_dir = "artifacts/wasm_modules"
|
||||
modules_dir = "artifacts"
|
||||
|
||||
[[module]]
|
||||
name = "ipfs_node.wasm"
|
||||
name = "ipfs_effector"
|
||||
mem_pages_count = 100
|
||||
logger_enabled = true
|
||||
|
||||
@@ -12,6 +12,6 @@ modules_dir = "artifacts/wasm_modules"
|
||||
envs = ["IPFS_ADDR=/dns4/relay02.fluence.dev/tcp/15001", "timeout=1s"]
|
||||
|
||||
[[module]]
|
||||
name = "ipfs_pure.wasm"
|
||||
name = "ipfs_pure"
|
||||
mem_pages_count = 100
|
||||
logger_enabled = true
|
||||
|
@@ -1 +0,0 @@
|
||||
Hello, world
|
@@ -5,7 +5,7 @@ authors = ["Fluence Labs"]
|
||||
edition = "2018"
|
||||
|
||||
[[bin]]
|
||||
name = "ipfs_node"
|
||||
name = "ipfs_effector"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
|
@@ -54,7 +54,7 @@ pub fn get(hash: String) -> Vec<u8> {
|
||||
}
|
||||
|
||||
#[fce]
|
||||
#[link(wasm_import_module = "ipfs_node.wasm")]
|
||||
#[link(wasm_import_module = "ipfs_effector")]
|
||||
extern "C" {
|
||||
/// Put provided file to ipfs, return ipfs hash of the file.
|
||||
#[link_name = "put"]
|
||||
|
Reference in New Issue
Block a user